[Paper Review] Reduced Focal Loss: 1st Place Solution to xView object detection in Satellite Imagery
This paper introduces Reduced Focal Loss (RFL), a novel loss function that mitigates class imbalance in satellite object detection by softening the focus on hard and mislabeled samples while preserving hard example mining. RFL improves recall for rare classes and achieved 1st place in the xView 2018 Detection Challenge with 31.74 mAP on public leaderboard and 29.32 on private leaderboard using an ensemble of models with test-time augmentation.
This paper describes our approach to the DIUx xView 2018 Detection Challenge [1]. This challenge focuses on a new satellite imagery dataset. The dataset contains 60 object classes that are highly imbalanced. Due to the imbalanced nature of the dataset, the training process becomes significantly more challenging. To address this problem, we introduce a novel Reduced Focal Loss function, which brought us 1st place in the DIUx xView 2018 Detection Challenge.
Motivation & Objective
- Address the extreme class imbalance in the xView satellite imagery dataset, where rare classes like Railway Vehicles (100 instances) are vastly outnumbered by common classes like Small Cars (200K+ instances).
- Overcome the limitations of standard Focal Loss, which reduces RPN recall due to excessive focus on hard samples, undermining the two-stage Faster R-CNN pipeline's design.
- Develop a loss function that maintains hard example mining while reducing sensitivity to mislabeled and hard samples, improving performance on rare classes.
- Improve model generalization and mAP for rare classes through a combination of modified loss functions and data-level regularization via random undersampling of frequent classes.
Proposed method
- Propose Reduced Focal Loss (RFL), a modified version of Focal Loss that applies a threshold-based cut-off factor to reduce the loss gradient for positive samples with confidence below a threshold (e.g., 0.5 for RPN, 0.25 for Fast R-CNN).
- Define the cut-off factor f(pt, th) such that for pt < th, the loss is scaled by 1, and for pt ≥ th, it is scaled by (1-pt)^γ / th^γ, effectively softening the loss for low-confidence predictions.
- Integrate a built-in switch between Focal Loss and Cross Entropy in the low-loss zone (pt < 0.5), reducing extreme impact from rare or mislabeled samples while still suppressing well-classified examples.
- Apply random undersampling of the most frequent classes (Small Cars and Buildings) during training to further reduce class imbalance, using a configurable probability to remove samples from these classes.
- Train a Faster R-CNN model with FPN and ResNet-50 backbone using a two-stage training process: initial 24-hour training with learning rate decay, followed by fine-tuning on combined train+val data.
- Use test-time augmentation and model ensembling with a modified voting strategy across multiple models (e.g., different scales, rotations, and architectures) to boost final performance.
Experimental results
Research questions
- RQ1How does standard Focal Loss affect RPN recall in two-stage object detectors when applied to highly imbalanced satellite imagery?
- RQ2Can a modified loss function reduce the negative impact of hard and mislabeled samples on training without sacrificing hard example mining?
- RQ3To what extent can random undersampling of frequent classes improve mAP for rare classes in object detection on satellite imagery?
- RQ4Does combining Reduced Focal Loss with data-level regularization (undersampling) lead to better performance than either method alone?
- RQ5Can an ensemble of models with test-time augmentation further improve mAP beyond individual model performance on the xView dataset?
Key findings
- Reduced Focal Loss achieved 28.32 mAP on the validation set, a significant improvement over standard Focal Loss (19.01 mAP) and baseline SSD (21.78 mAP).
- The model using Reduced Focal Loss achieved 31.74 mAP on the public leaderboard and 29.32 mAP on the private leaderboard, securing 1st place in the xView 2018 Detection Challenge.
- RFL improved mean recall for rare classes by 10.5 percentage points (from 0.66 to 0.775 mRecall) compared to standard Focal Loss, demonstrating its effectiveness in handling class imbalance.
- Random undersampling of Small Cars and Buildings further improved mAP for rare classes, outperforming models trained on the full dataset without this technique.
- The final ensemble model with test-time augmentation achieved a 31.74 mAP on public LB, showing that combining multiple models with diverse augmentations significantly boosts performance.
- The ablation study confirmed that RFL mitigates the drop in RPN recall caused by standard Focal Loss, preserving the two-stage detector’s design principle of maximizing recall in RPN.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.