Guide-linked quiz · Medium Level
Focal Loss for Imbalanced Detection Quiz
Checks the focal-loss modulator, class imbalance, the role of alpha and gamma, and how well-classified and hard examples differ.
Question 1 of 8
What core problem in one-stage object detection was focal loss designed to address?
Preview every question8 questions
Answers and explanations appear as you take the quiz.
- What core problem in one-stage object detection was focal loss designed to address?
- Extreme imbalance between rare foreground objects and abundant easy background
- Slow inference speed of two-stage detectors
- Lack of labeled training data
- Overfitting to large objects
- What is the modulating factor that focal loss multiplies onto cross-entropy?
- log(p_t)
- (1 - p_t)^gamma
- p_t^2 only
- 1 / p_t
- What happens to focal loss when the focusing parameter gamma is set to 0?
- It becomes mean squared error
- It ignores all positive examples
- It becomes ordinary cross-entropy
- It diverges to infinity
- What does increasing gamma do to easy, well-classified examples?
- Increases their loss contribution
- Leaves their contribution unchanged
- Removes them from the dataset
- Suppresses their loss contribution more strongly
- Which detector architecture introduced focal loss?
- RetinaNet
- YOLOv1
- Faster R-CNN
- AlexNet
- What role does the alpha parameter typically play alongside gamma?
- It sets the learning rate
- It balances the relative weight of positive versus negative classes
- It controls image resolution
- It defines the number of anchor boxes
- For a hard example with p_t close to zero, what is the focal modulating factor (1 − p_t)^gamma likely to do?
- Drive the factor to zero
- Turn the example into a positive label
- Keep the factor relatively close to one so the example retains substantial loss weight
- Replace the cross-entropy term with alpha
- A dense detector has many easy background locations. What effect does focal loss aim to have on their combined training influence?
- Increase their count by duplicating them
- Remove all positive object examples
- Make every example receive an identical loss
- Reduce their dominance so training can focus more on sparse hard examples
Keep testing yourself
More quizzes picked for your level.