Lune

NeurIPS2023Top-tier venue

Cal-DETR: Calibrated Detection Transformer

Muhammad Akhtar Munir, Salman H. Khan, Muhammad Haris Khan, Mohsen Ali, Fahad Shahbaz Khan

Abstract

Albeit revealing impressive predictive performance for several computer vision tasks, deep neural networks (DNNs) are prone to making overconfident predictions. This limits the adoption and wider utilization of DNNs in many safety-critical applications. There have been recent efforts toward calibrating DNNs, however, almost all of them focus on the classification task. Surprisingly, very little attention has been devoted to calibrating modern DNN-based object detectors, especially detection transformers, which have recently demonstrated promising detection performance and are influential in many decision-making systems. In this work, we address the problem by proposing a mechanism for calibrated detection transformers (Cal-DETR), particularly for Deformable-DETR, UP-DETR and DINO. We pursue the train-time calibration route and make the following contributions. First, we propose a simple yet effective approach for quantifying uncertainty in transformer-based object detectors. Second, we develop an uncertainty-guided logit modulation mechanism that leverages the uncertainty to modulate the class logits. Third, we develop a logit mixing approach that acts as a regularizer with detection-specific losses and is also complementary to the uncertainty-guided logit modulation technique to further improve the calibration performance. Lastly, we conduct extensive experiments across three in-domain and four out-domain scenarios. Results corroborate the effectiveness of Cal-DETR against the competing train-time methods in calibrating both in-domain and out-domain detections while maintaining or even improving the detection performance. Our codebase and pre-trained models can be accessed at https://github.com/akhtarvision/cal-detr.

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.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Expectation Consistency Loss: Rethink Confidence Calibration under Covariate Shift cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Expectation Consistency Loss: Rethink Confidence Calibration under Covariate Shift cites Combining Priors with Experience: Confidence Calibration Based on Binomial Process Modeling
  • Cocoon: Robust Multi-Modal Perception with Uncertainty-Aware Sensor Fusion cites Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Combining Priors with Experience: Confidence Calibration Based on Binomial Process ModelingJinzong Dong, Zhaohui Jiang, Dong Pan, Haoyang YuAAAI 2025 · 4 citations
  2. Attack-inspired Calibration Loss for Calibrating Crack RecognitionZhuangzhuang Chen, Qiangyu Chen, Jiahao Zhang, Zhiliang Lin et al.AAAI 2025 · 2 citations
  3. Query2Uncertainty: Robust Uncertainty Quantification and Calibration for 3D Object Detection under Distribution ShiftTill Beemelmanns, Alexey Nekrasov, Stefan Vilceanu, Jonas Steinhaus et al.CVPR 2026 · 1 citation
  4. Expectation Consistency Loss: Rethink Confidence Calibration under Covariate ShiftJinzong Dong, Zhaohui Jiang, Bo YangICML 2026
  5. Cocoon: Robust Multi-Modal Perception with Uncertainty-Aware Sensor FusionMinkyoung Cho, Yulong Cao, Jiachen Sun, Qingzhao Zhang et al.ICLR 2025

Builds on21

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. SegFormer: Simple and Efficient Design for Semantic Segmentation with TransformersEnze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar et al.NeurIPS 2021 · 9,661 citations
  4. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
  5. Deformable DETR: Deformable Transformers for End-to-End Object DetectionXizhou Zhu, Weijie Su, Lewei Lu, Bin Li et al.ICLR 2021 · 7,353 citations

Related papers

  1. Multiclass Confidence and Localization Calibration for Object DetectionBimsara Pathiraja, Malitha Gunawardhana, Muhammad Haris KhanCVPR 2023
  2. Towards Improving Calibration in Object Detection Under Domain ShiftMuhammad Akhtar Munir, Muhammad Haris Khan, M. Saquib Sarfraz, Mohsen AliNeurIPS 2022 · 37 citations
  3. Bridging Precision and Confidence: A Train-Time Loss for Calibrating Object DetectionMuhammad Akhtar Munir, Muhammad Haris Khan, Salman H. Khan, Fahad Shahbaz KhanCVPR 2023
  4. Rank-DETR for High Quality Object DetectionYifan Pu, Weicong Liang, Yiduo Hao, Yuhui Yuan et al.NeurIPS 2023 · 138 citations
  5. Detection Transformer with Stable MatchingShilong Liu, Tianhe Ren, Jiayu Chen, Zhaoyang Zeng et al.ICCV 2023 · 62 citations
Dusk over the sea between two cliffs drawn in fine vertical lines