[Paper Review] Is Sampling Heuristics Necessary in Training Deep Object Detectors
This paper proposes a sampling-free training mechanism for deep object detectors that eliminates the need for heuristic hard or soft sampling methods like OHEM or Focal Loss. By introducing guided loss scaling, optimal model initialization, and adaptive thresholding, the method stabilizes training and improves accuracy across one-stage, two-stage, multi-stage, and anchor-free detectors on COCO and PASCAL VOC without hyperparameter tuning.
In training deep object detectors, the problem of foreground-background imbalance has been addressed by several heuristic methods, such as online hard example mining (OHEM), Focal Loss, and gradient harmonizing mechanism (GHM). These methods either re-sample the training examples (i.e. hard sampling), or re-weight them discriminatively (i.e. soft sampling). In this paper, we challenge the necessity of such hard/soft sampling heuristics in training deep object detectors. First, without hard/soft sampling, we reveal that the scale and the stability of the classification loss greatly influence the final accuracy. Thus, we propose a guided loss scaling technique to control the classification loss during training, without using any hyper-parameter. We also propose to optimally initialize the model to ensure the stability of the classification loss. Moreover, we propose an adaptive thresholding technique to refine predictions during inference. These three ingredients constitute our Sampling-Free mechanism, which is fully data diagnostic and avoids the laborious hyper-parameter search for hard/soft sampling. We verify the effectiveness of our Sampling-Free mechanism in training one-stage, two-stage, multi-stage, and anchor-free object detectors, where our method always achieves higher accuracy on COCO and PASCAL VOC datasets. We also use the Sampling-Free mechanism for instance segmentation to demonstrate its generalization ability. Code is released at: this https URL
Motivation & Objective
- To challenge the necessity of heuristic sampling methods such as OHEM, Focal Loss, and GHM in training deep object detectors.
- To identify that loss scale and stability are critical factors affecting detection accuracy when sampling heuristics are removed.
- To propose a sampling-free training mechanism that avoids hyperparameter tuning and maintains training stability.
- To demonstrate generalization across diverse detector architectures, including one-stage, two-stage, multi-stage, and anchor-free detectors.
- To extend the method to instance segmentation, validating its broader applicability.
Proposed method
- Proposes guided loss scaling to dynamically control the magnitude of classification loss during training, eliminating the need for manual hyperparameter tuning.
- Introduces optimal model initialization to stabilize the classification loss from the start of training, reducing training variance.
- Employs an adaptive thresholding technique during inference to refine objectness predictions without modifying the network.
- Designs a fully data-diagnostic framework that relies on intrinsic data statistics rather than heuristic sampling strategies.
- Combines loss scaling, initialization, and inference thresholding into a unified Sampling-Free mechanism.
- Ensures end-to-end training stability and performance gains without modifying the backbone or neck architecture.
Experimental results
Research questions
- RQ1Is heuristic sampling necessary for training deep object detectors, or can performance be achieved without it?
- RQ2How do the scale and stability of classification loss affect detection accuracy in the absence of sampling heuristics?
- RQ3Can a sampling-free training mechanism achieve state-of-the-art performance across diverse object detector architectures?
- RQ4Can the proposed method generalize beyond object detection to other dense prediction tasks like instance segmentation?
- RQ5Can the method eliminate the need for extensive hyperparameter tuning in loss weighting or hard example mining?
Key findings
- The proposed Sampling-Free mechanism achieves higher average precision than baseline models with heuristic sampling on COCO and PASCAL VOC datasets.
- The method improves accuracy across one-stage, two-stage, multi-stage, and anchor-free object detectors without requiring any hyperparameter tuning.
- Guided loss scaling effectively stabilizes training and improves convergence, even without hard or soft sampling.
- Optimal initialization significantly reduces training instability and accelerates convergence.
- Adaptive thresholding during inference further enhances detection performance by refining objectness scores.
- The method generalizes to instance segmentation, demonstrating its robustness and broad applicability beyond object detection.
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.