# Anchor Box Optimization for Object Detection

arXiv: https://arxiv.org/abs/1812.00469 · HTML: https://mlsanity.com/paper/1812.00469/

## Key facts

- Cited by 8 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 2 Dec 2018.

## Built on by (most cited first, 8 of 8)

- [Learning Domain Adaptive Object Detection with Probabilistic Teacher](https://mlsanity.com/paper/2206.06293/) (2022)
- [AGAR a microbial colony dataset for deep learning detection](https://mlsanity.com/paper/2108.01234/) (2021)
- [Anchor Pruning for Object Detection](https://mlsanity.com/paper/2104.00432/) (2021)
- [Mask-aware IoU for Anchor Assignment in Real-time Instance Segmentation](https://mlsanity.com/paper/2110.09734/) (2021)
- [Survey and Systematization of 3D Object Detection Models and Methods](https://mlsanity.com/paper/2201.09354/) (2022)
- [Improving the performance of object detection by preserving label distribution](https://mlsanity.com/paper/2308.14466/) (2023)
- [PESFormer: Boosting Macro- and Micro-expression Spotting with Direct Timestamp Encoding](https://mlsanity.com/paper/2410.18695/) (2024)
- [A Study on Real-time Object Detection using Deep Learning](https://mlsanity.com/paper/2602.15926/) (2026)

## Abstract (arXiv)

In this paper, we propose a general approach to optimize anchor boxes for object detection. Nowadays, anchor boxes are widely adopted in state-of-the-art detection frameworks. However, these frameworks usually pre-define anchor box shapes in heuristic ways and fix the sizes during training. To improve the accuracy and reduce the effort of designing anchor boxes, we propose to dynamically learn the anchor shapes, which allows the anchors to automatically adapt to the data distribution and the network learning capability. The learning approach can be easily implemented with stochastic gradient descent and can be plugged into any anchor box-based detection framework. The extra training cost is almost negligible and it has no impact on the inference time or memory cost. Exhaustive experiments demonstrate that the proposed anchor optimization method consistently achieves significant improvement (≥ 1% mAP absolute gain) over the baseline methods on several benchmark datasets including Pascal VOC 07+12, MS COCO and Brainwash. Meanwhile, the robustness is also verified towards different anchor initialization methods and the number of anchor shapes, which greatly simplifies the problem of anchor box design.
