Bucketed Ranking-based Losses for Efficient Training of Object Detectors
Not on the map. Why?
Abstract (arXiv)
Ranking-based loss functions, such as Average Precision Loss and Rank&Sort Loss, outperform widely used score-based losses in object detection. These loss functions better align with the evaluation criteria, have fewer hyperparameters, and offer robustness against the imbalance between positive and negative classes. However, they require pairwise comparisons among P positive and N negative predictions, introducing a time complexity of O(PN), which is prohibitive since N is often large (e.g., 108 in ATSS). Despite their advantages, the widespread adoption of ranking-based losses has been hindered by their high time and space complexities. In this paper, we focus on improving the efficiency of ranking-based loss functions. To this end, we propose Bucketed Ranking-based Losses which group negative predictions into B buckets (B ll N) in order to reduce the number of pairwise comparisons so that time complexity can be reduced. Our method enhances the time complexity, reducing it to O(max (N log(N), P2)). To validate our method and show its generality, we conducted experiments on 2 different tasks, 3 different datasets, 7 different detectors. We show that Bucketed Ranking-based (BR) Losses yield the same accuracy with the unbucketed versions and provide 2× faster training on average. We also train, for the first time, transformer-based object detectors using ranking-based losses, thanks to the efficiency of our BR. When we train CoDETR, a state-of-the-art transformer-based object detector, using our BR Loss, we consistently outperform its original results over several different backbones. Code is available at https://github.com/blisgard/BucketedRankingBasedLosses
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 33 of its 37 references that are in the map. First posted on arXiv 19 Jul 2024.
Builds on
33 of 37 references.
References · 33
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
- 2017Mask R-CNNcited by 7,277
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
- 2015SSD: Single Shot MultiBox Detectorcited by 3,130
- 2019Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regressioncited by 1,368
- 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,276
- 2019LVIS: A Dataset for Large Vocabulary Instance Segmentationcited by 1,217
- 2021Grounded Language-Image Pre-trainingcited by 1,156
21 more
- 2018CornerNet: Detecting Objects as Paired Keypointscited by 763
- 2016Training Region-based Object Detectors with Online Hard Example Miningcited by 579
- 2019Bridging the Gap Between Anchor-based and Anchor-free Detection via Adaptive Training Sample Selectioncited by 540
- 2020Sparse R-CNN: End-to-End Object Detection with Learnable Proposalscited by 495
- 2022DN-DETR: Accelerate DETR Training by Introducing Query DeNoisingcited by 488
- 2019Hybrid Task Cascade for Instance Segmentationcited by 481
- 2019Distance-IoU Loss: Faster and Better Learning for Bounding Box Regressioncited by 459
- 2022DETRs with Collaborative Hybrid Assignments Trainingcited by 274
- 2019Libra R-CNN: Towards Balanced Learning for Object Detectioncited by 255
- 2020Probabilistic Anchor Assignment with IoU Prediction for Object Detectioncited by 150
- 2019Imbalance Problems in Object Detection: A Reviewcited by 118
- 2020Smooth-AP: Smoothing the Path Towards Large-Scale Image Retrievalcited by 98
- 2019FreeAnchor: Learning to Match Anchors for Visual Object Detectioncited by 90
- 2019Towards Accurate One-Stage Object Detection with AP-Losscited by 36
- 2020A Ranking-based, Balanced Loss Function Unifying Classification and Localisation in Object Detectioncited by 25
- 2019DR Loss: Improving Object Detection by Distributional Rankingcited by 24
- 2020AP-Loss for Accurate One-Stage Object Detectioncited by 24
- 2021Rank & Sort Loss for Object Detection and Instance Segmentationcited by 22
- 2016Efficient Optimization for Rank-based Loss Functionscited by 15
- 2020UP-DETR: Unsupervised Pre-training for Object Detection with Transformerscited by 7
- 2021Mask-aware IoU for Anchor Assignment in Real-time Instance Segmentationcited by 5
Built on by
Citing papers per year: 2025: 3.
3 papers.
- 2025QAMRO: Quality-aware Adaptive Margin Ranking Optimization for Human-aligned Assessment of Audio Generation Systemscited by 3
- 2025Foundation Models for Trajectory Planning in Autonomous Driving: A Review of Progress and Open Challengescited by 3
- 2025Improving Transformer Based Line Segment Detection with Matched Predicting and Re-rankingcited by 1
- 2025Foundation Models for Trajectory Planning in Autonomous Driving: A Review of Progress and Open Challenges31 Oct 2025
- 2025QAMRO: Quality-aware Adaptive Margin Ranking Optimization for Human-aligned Assessment of Audio Generation Systems12 Aug 2025
- 2025Improving Transformer Based Line Segment Detection with Matched Predicting and Re-ranking25 Feb 2025