Rank & Sort Loss for Object Detection and Instance Segmentation
Kemal Oksuz, Baris Can Cam, Emre Akbas, Sinan Kalkan
Abstract
We propose Rank & Sort (RS) Loss, a ranking-based loss function to train deep object detection and instance segmentation methods (i.e. visual detectors). RS Loss supervises the classifier, a sub-network of these methods, to rank each positive above all negatives as well as to sort positives among themselves with respect to (wrt.) their localisation qualities (e.g. Intersection-over-Union - IoU). To tackle the non-differentiable nature of ranking and sorting, we reformulate the incorporation of error-driven update with back-propagation as Identity Update, which enables us to model our novel sorting error among positives. With RS Loss, we significantly simplify training: (i) Thanks to our sorting objective, the positives are prioritized by the classifier without an additional auxiliary head (e.g. for centerness, IoU, mask-IoU), (ii) due to its ranking-based nature, RS Loss is robust to class imbalance, and thus, no sampling heuristic is required, and (iii) we address the multi-task nature of visual detectors using tuning-free task-balancing coefficients. Using RS Loss, we train seven diverse visual detectors only by tuning the learning rate, and show that it consistently outperforms baselines: e.g. our RS Loss improves (i) Faster R-CNN by ∼ 3 box AP and aLRP Loss (ranking-based baseline) by ∼ 2 box AP on COCO dataset, (ii) Mask R-CNN with repeat factor sampling (RFS) by 3.5 mask AP (∼ 7 AP for rare classes) on LVIS dataset; and also outperforms all counterparts. Code is available at: https://github.com/kemaloksuz/RankSortLoss.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Rank-DETR for High Quality Object Detection cites FCOS: Fully Convolutional One-Stage Object Detection
- Rank-DETR for High Quality Object Detection cites Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection
- Reconciling Object-Level and Global-Level Objectives for Long-Tail Detection cites Revisiting AP Loss for Dense Object Detection: Adaptive Ranking Pair Selection
- YOLOv12: Attention-Centric Real-Time Object Detectors cites Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection
- Learning Equivariant Segmentation with Instance-Unique Querying cites FCOS: Fully Convolutional One-Stage Object Detection
- Learning Equivariant Segmentation with Instance-Unique Querying cites SOLOv2: Dynamic and Fast Instance Segmentation
- Learning Equivariant Segmentation with Instance-Unique Querying cites YOLACT: Real-Time Instance Segmentation
- Revisiting AP Loss for Dense Object Detection: Adaptive Ranking Pair Selection cites FCOS: Fully Convolutional One-Stage Object Detection
- Revisiting AP Loss for Dense Object Detection: Adaptive Ranking Pair Selection cites Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection
- Revisiting AP Loss for Dense Object Detection: Adaptive Ranking Pair Selection cites YOLACT: Real-Time Instance Segmentation
- SOLOv2: Dynamic and Fast Instance Segmentation cites FCOS: Fully Convolutional One-Stage Object Detection
- SOLOv2: Dynamic and Fast Instance Segmentation cites YOLACT: Real-Time Instance Segmentation
- Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection cites FCOS: Fully Convolutional One-Stage Object Detection
- Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection cites Scale-Aware Trident Networks for Object Detection
Cited by top-tier papers12
- YOLOv12: Attention-Centric Real-Time Object DetectorsYunjie Tian, Qixiang Ye, David S. DoermannNeurIPS 2025 · 2,652 citations
- Rank-DETR for High Quality Object DetectionYifan Pu, Weicong Liang, Yiduo Hao, Yuhui Yuan et al.NeurIPS 2023 · 138 citations
- Learning Equivariant Segmentation with Instance-Unique QueryingWenguan Wang, James Liang, Dongfang LiuNeurIPS 2022 · 99 citations
- Reconciling Object-Level and Global-Level Objectives for Long-Tail DetectionShaoyu Zhang, Chen Chen, Silong PengICCV 2023 · 9 citations
- Revisiting AP Loss for Dense Object Detection: Adaptive Ranking Pair SelectionDongli Xu, Jinhong Deng, Wen LiCVPR 2022 · 9 citations
Builds on20
- FCOS: Fully Convolutional One-Stage Object DetectionZhi Tian, Chunhua Shen, Hao Chen, Tong HeICCV 2019 · 6,042 citations
- Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object DetectionXiang Li, Wenhai Wang, Lijun Wu, Shuo Chen et al.NeurIPS 2020 · 2,118 citations
- YOLACT: Real-Time Instance SegmentationDaniel Bolya, Chong Zhou, Fanyi Xiao, Yong Jae LeeICCV 2019 · 2,075 citations
- SOLOv2: Dynamic and Fast Instance SegmentationXinlong Wang, Rufeng Zhang, Tao Kong, Lei Li et al.NeurIPS 2020 · 1,193 citations
- Scale-Aware Trident Networks for Object DetectionYanghao Li, Yuntao Chen, Naiyan Wang, Zhaoxiang ZhangICCV 2019 · 1,031 citations
Related papers
- A Ranking-based, Balanced Loss Function Unifying Classification and Localisation in Object DetectionKemal Oksuz, Baris Can Cam, Emre Akbas, Sinan KalkanNeurIPS 2020 · 48 citations
- Correlation Loss: Enforcing Correlation between Classification and LocalizationFehmi Kahraman, Kemal Oksuz, Sinan Kalkan, Emre AkbasAAAI 2023 · 10 citations
- Equalization Loss v2: A New Gradient Balance Approach for Long-Tailed Object DetectionJingru Tan, Xin Lu, Gang Zhang, Changqing Yin et al.CVPR 2021
- RankDetNet: Delving Into Ranking Constraints for Object DetectionJi Liu, Dong Li, Rongzhang Zheng, Lu Tian et al.CVPR 2021
- iFS-RCNN: An Incremental Few-shot Instance SegmenterKhoi Nguyen, Sinisa TodorovicCVPR 2022 · 23 citations
