Introduction
In computer vision, object detection involves two primary tasks: classification (identifying the object) and localization (drawing the bounding box). While classification accuracy has improved significantly, localization techniques have largely relied on regression-based methods that often struggle to achieve high precision. Standard detectors like Faster R-CNN or SSD typically predict continuous offsets ($t_x, t_y, t_w, t_h$) to refine candidate boxes using $Smooth\ L_1$ loss. However, regression can be sensitive to outliers or fail to penalize large errors sufficiently, leading to "close but not perfect" bounding boxes.
Rethinking Localization as Classification
A team from the University of Electronic Science and Technology of China proposed a shift in perspective at CVPR 2020: treating bounding box localization as a classification problem rather than a regression one. Their approach, the Offset Bin Classification Network, discretizes the continuous offset range into several "bins."
Core Methodology
The proposed method breaks down the localization process into four key steps:
- Discretization (Binning): The possible offset range (e.g., $[-3, 3]$) is divided into $n$ discrete bins.
- Classification Loss: Instead of a single scalar, the network predicts a probability distribution across these bins using Cross-Entropy loss. This provides more stable training and allows for nuanced penalties for different error types.
- Expectation-based Prediction: To recover a precise continuous value, the model calculates the "expected value"—a weighted average—across the softmax probability distribution. This allows for "infinite resolution" between bin centers.
- Hierarchical Focusing: To maintain high precision without an excessive number of bins, a coarse-to-fine strategy is employed. An initial stage identifies a coarse bin, and subsequent stages refine the offset within that specific region.
Experimental Results
The researchers evaluated the Offset Bin Classification module on the PASCAL VOC and MS-COCO benchmarks. The method demonstrated significant improvements in "tightness" and overall detection accuracy.
- PASCAL VOC 2007: Using a ResNet-50 backbone, the approach improved Average Precision (AP) from 45.0% to 49.0%.
- High-IoU Performance: The most notable gains occurred at high Intersection-over-Union (IoU) thresholds. On the COCO dataset, the $AP_{90}$ (requiring 90% overlap) more than doubled in certain configurations, jumping from 6.6 to 19.6.
Conclusion
The Offset Bin Classification Network demonstrates that classification can be a more effective optimization target than regression for high-precision localization. By predicting probability distributions and using weighted averages, the model captures uncertainty and achieves superior bounding box tightness. While the hierarchical approach adds some complexity, its "plug-and-play" nature makes it a versatile addition to existing detector architectures like Faster R-CNN and Cascade R-CNN. Future research may extend this binning strategy to anchor-free detection frameworks.
Summary updated