Abstract
In object detection, multi-level prediction (e.g., FPN) and reweighting skills (e.g., focal loss) have drastically improved one-stage detector performance. However, the synergy between these two techniques is not fully explored in a unified framework. We find that, during training, the one-stage detector's optimization is not only restricted to the static hard-case mining loss (gradient drift) but also suffered from the diverse positive samples' proportions split by different pyramid levels (level discrepancy). Under this concern, we propose Hierarchical Progressive Focus (HPF) consisting of two key designs: 1) progressive focus, a more flexible hard-case mining setting calculated adaptive to the convergence progress, 2) hierarchical sampling, automatically generating a set of progressive focus for level-specific target optimization. Based on focal loss with ATSS-R50, our approach achieves 40.5 AP, surpassing the state-of-the-art QFL (Quality Focal Loss, 39.9 AP) and VFL (Varifocal Loss, 40.1 AP). Our best model achieves 55.1 AP on COCO test-dev, obtaining excellent results with only a typical training setting. Moreover, as a plug-and-play scheme, HPF can cooperate well with recent advances, providing a stable performance improvement on nine mainstream detectors.
Introduction
Modern one-stage object detectors rely on two primary pillars: Feature Pyramid Networks (FPN) to handle objects of different scales and Focal Loss to manage the extreme imbalance between foreground objects and background clutter. Despite their individual successes, a "synergy gap" exists between these components. Standard Focal Loss typically utilizes static hyperparameters ($\alpha$ and $\gamma$) that remain fixed throughout training and are applied globally across all pyramid levels. This static approach fails to account for the dynamic nature of the learning process and the unique sample distributions inherent to different feature levels.
The HPF Framework
To bridge this gap, we introduce Hierarchical Progressive Focus (HPF), a training-time-only modification that adaptively tunes hard-case mining parameters. HPF consists of two main components:
- Progressive Focus (PF): Instead of a fixed $\gamma$, HPF calculates an adaptive $\gamma_{ad}$ based on current prediction quality (measured via KL distance or cross-entropy). As the model converges, the focus shifts dynamically to ensure hard cases consistently provide sufficient gradients. It also adaptively tunes $\alpha$ to keep classification loss balanced with other tasks like bounding box regression.
- Hierarchical Sampling (HS): Rather than a global parameter set, HPF performs sampling level-by-level. It automatically generates level-specific focus parameters, allowing optimization to adapt to the unique sample distribution of each pyramid level (e.g., P3 for small objects vs. P7 for large ones).
Addressing Gradient Drift and Level Discrepancy
The motivation for HPF stems from two critical observations. First, Gradient Drift: early in training, hard cases provide the most useful gradients, but as training progresses, "easy" cases (which the model has mastered) can dominate the total loss, causing optimization to drift away from difficult samples. Second, Level Discrepancy: empirical evidence using Wasserstein distance shows that different pyramid levels have significantly different sample distributions. Treating all levels identically during optimization is inherently sub-optimal.
Experimental Results
Evaluated on the MS COCO dataset, HPF demonstrates significant performance gains. Adding HPF to the ATSS-R50 detector improved its performance from 39.3 AP to 40.5 AP, surpassing state-of-the-art losses like Quality Focal Loss (QFL) and Varifocal Loss (VFL).
Key highlights include:
- Universal Improvement: HPF provided stable gains across nine mainstream detectors (including FCOS, GFL, and RepPoints), with improvements ranging from +0.2 to +1.2 AP.
- Level-Specific Gains: The hierarchical approach particularly benefited higher pyramid levels; for instance, the AP for level P7 (large objects) increased by 3.4 points compared to the baseline.
- Efficiency: Our best model achieved 55.1 AP on COCO test-dev using a Swin-L backbone. Notably, this was achieved using only 5% of the training resources required by models like EfficientDet-D7x, proving that smarter optimization can outperform brute-force compute.
Conclusion
HPF offers a robust, plug-and-play solution to the limitations of static loss functions in object detection. By making the optimization process adaptive to both convergence progress and feature level characteristics, it achieves state-of-the-art results without architectural changes or inference overhead. Future work may explore extending these progressive strategies to bounding box regression and multi-task learning frameworks.
Summary updated