Papers › Bridging Precision and Confidence: A Train-Time Loss for Calibrating Object Detection

Bridging Precision and Confidence: A Train-Time Loss for Calibrating Object Detection

25 Mar 2023CVPR 2023 1arXiv:2303.14404archive 2025-07-28

Muhammad Akhtar Munir, Muhammad Haris Khan, Salman Khan, Fahad Shahbaz Khan

Deep neural networks (DNNs) have enabled astounding progress in several vision-based problems. Despite showing high predictive accuracy, recently, several works have revealed that they tend to provide overconfident predictions and thus are poorly calibrated. The majority of the works addressing the miscalibration of DNNs fall under the scope of classification and consider only in-domain predictions. However, there is little to no progress in studying the calibration of DNN-based object detection models, which are central to many vision-based safety-critical applications. In this paper, inspired by the train-time calibration methods, we propose a novel auxiliary loss formulation that explicitly aims to align the class confidence of bounding boxes with the accurateness of predictions (i.e. precision). Since the original formulation of our loss depends on the counts of true positives and false positives in a minibatch, we develop a differentiable proxy of our loss that can be used during training with other application-specific loss functions. We perform extensive experiments on challenging in-domain and out-domain scenarios with six benchmark datasets including MS-COCO, Cityscapes, Sim10k, and BDD100k. Our results reveal that our train-time loss surpasses strong calibration baselines in reducing calibration error for both in and out-domain scenarios. Our source code and pre-trained models are available at https://github.com/akhtarvision/bpc_calibration

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2303.14404")

Code

Syntology Ran 12 of 18 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · honoured contract; 1 ran · violated contract; 5 ran · our draft was wrong; 3 ran · fixture could not drive it.

By repository: official repository: 17 samples from 1 repository, 11 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

akhtarvision/bpc_calibration officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 12 ran; 3 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
1ran · violated contract
5ran · our draft was wrong
3ran · fixture could not drive it
6unverified

Licence: 1 of the 18 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from akhtarvision/bpc_calibration. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

_compute_ap_recall akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 7aa4e421ee805f42 · report
_evaluate_image akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · our draft was wrong MIT (permissive) · 3311eefa83dfc00b · report
_get_area akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · honoured contract MIT (permissive) · 2910190caab7b66c · report
_group_detections akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · our draft was wrong MIT (permissive) · b871b728fb3bca2a · report
_jaccard akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · honoured contract MIT (permissive) · 48bbfd6a17032332 · report
box_iou akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · honoured contract fingerprinted MIT (permissive) · ce749f837424dd8c · report
dice_loss akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · violated contract fingerprinted MIT (permissive) · ac8fe530cdad4d8c · report
generalized_box_iou akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 6097d6378e7d3046 · report
get_coco_metrics akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · our draft was wrong MIT (permissive) · 9f4690f675176640 · report
interpolate akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · fixture could not drive it MIT (permissive) · 9705264816e566d9 · report
nested_tensor_from_tensor_list akhtarvision/bpc_calibration/models/deformable_detr.py official repository ran · our draft was wrong MIT (permissive) · 07a415e6bef6b5cf · report
BBFormat akhtarvision/bpc_calibration/models/deformable_detr.py official repository unverified MIT (permissive) · 72d9dc8fd5fb3ce4 · report
BBType akhtarvision/bpc_calibration/models/deformable_detr.py official repository unverified MIT (permissive) · c7b3326fb084b72d · report
PostProcess_grad akhtarvision/bpc_calibration/models/deformable_detr.py official repository unverified MIT (permissive) · 29cf19c6e7a43150 · report
SetCriterion akhtarvision/bpc_calibration/models/deformable_detr.py official repository unverified MIT (permissive) · 62b1926bc1824609 · report
_compute_ious akhtarvision/bpc_calibration/models/deformable_detr.py official repository unverified MIT (permissive) · ada48ab6a8e8dd76 · report
accuracy akhtarvision/bpc_calibration/models/deformable_detr.py official repository unverified MIT (permissive) · 9724d55577f6ca2c · report
sigmoid_focal_loss identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 5c0711aada67957e · report

Tasks

Object Detectionobject-detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGN

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections