TL;DR
This paper introduces HPS-Det, a novel approach to object detection that dynamically assigns positive samples to ground truths by searching for optimal hyper-parameters. By framing sample assignment as a hyper-parameter optimization problem and employing surrogate optimization, HPS-Det significantly improves detection performance across various baselines without increasing inference complexity.
What Problem Does This Paper Address?
Object detection models rely heavily on "sample assignment" strategies to determine which parts of an image are considered positive (containing an object of interest) and which are negative. Current methods typically use manual, fixed rules for this assignment, which have two main drawbacks:
- They don't explicitly link the assignment strategy to the final detection performance (e.g., accuracy).
- Once assigned, positive samples remain fixed throughout training, potentially hindering optimization.
This paper aims to address these limitations by proposing a dynamic and data-driven approach to sample assignment that can adapt during training and is optimized for better detection results.
Methods
The core innovation of HPS-Det lies in its two-pronged approach:
- Hyper-Parameter Definition and Search: Instead of manually setting the number of positive samples assigned to each ground truth (GT), the authors treat this number as a hyper-parameter. To manage the complexity, they group GTs by their scale and aspect ratio into bins, defining a hyper-parameter for each bin. This significantly reduces the search space. They then employ a surrogate optimization algorithm (specifically, using Radial Basis Functions (RBF) and a dynamic coordinate search strategy) to efficiently find the optimal hyper-parameter values. This process involves iteratively building a surrogate model to approximate the detection performance (Average Precision - AP) and using it to select promising hyper-parameter candidates for evaluation.
- Dynamic Sample Assignment (DSA): Once the optimal hyper-parameters are found, HPS-Det uses them to dynamically select positive samples during each training iteration. For each GT, the algorithm considers candidate positive samples (anchors for RetinaNet, points for FCOS) and calculates both classification and regression losses. Based on the learned hyper-parameters (which dictate the number of positives per GT bin) and the combined loss, the algorithm selects the top-k samples with the lowest losses as positive samples for that iteration. This dynamic selection allows the model to adapt its focus during training.
Datasets
The authors evaluate their method on two widely used object detection datasets:
- MS COCO 2017: A large-scale dataset with 80 object classes.
- VOC 2007: A dataset with 20 object classes.
They train on the respective training splits and evaluate on validation and test-dev sets.
Key Insights and Ideas
- Sample Assignment as Optimization: The most significant insight is reframing sample assignment not as a fixed rule, but as an optimization problem where the goal is to maximize detection performance (AP).
- Hyper-Parameter Reusability: The paper demonstrates that hyper-parameters optimized on one dataset or with a smaller backbone can often be effectively reused for other datasets or larger backbones, significantly reducing the search cost for new scenarios.
- Dynamic Adaptation: Dynamically selecting positive samples based on learned hyper-parameters and current training losses allows the model to adapt its learning process, potentially leading to better convergence and performance.
- Versatility: HPS-Det is shown to be compatible with both anchor-based (RetinaNet) and anchor-free (FCOS) object detection frameworks, highlighting its broad applicability.
Key Results
- Performance Improvements: HPS-Det consistently improves performance over baseline detectors. For example, it boosts RetinaNet-ResNet-50 by 2.4% AP and FCOS-ResNet-50 by 1.5% AP on the COCO 2017 validation set. Similar gains are observed with larger backbones like ResNet-101 and ResNeXt.
- No Inference Overhead: The dynamic sample assignment happens during training. Once trained, the model uses the standard inference pipeline without any additional computational cost.
- Effective Hyper-Parameter Search: The surrogate optimization approach efficiently finds optimal hyper-parameters, with AP curves showing convergence within a reasonable number of iterations.
- Reusability Benefits: Using pre-searched hyper-parameters from a proxy dataset or backbone can achieve comparable performance gains while saving significant search time. For instance, using hyper-parameters searched on ResNet-18 for a ResNet-101 target backbone saves 0.3h per iteration.
Limitations and Future Work
- Search Cost: While surrogate optimization is efficient, the initial hyper-parameter search still requires computational resources and time. The paper mitigates this by demonstrating reusability.
- Future Work: The authors suggest extending their method to more complex object detection frameworks, such as two-stage detectors, and exploring its application in other computer vision tasks. They also hint at investigating different hyper-parameter search algorithms and configurations.
Summary updated