关于目标检测器的校准:陷阱、评估与基线
On Calibration of Object Detectors: Pitfalls, Evaluation and Baselines
AI总结:
本文指出现有目标检测器校准评估框架及事后温度缩放存在缺陷,提出了一种联合测量校准与准确性的原则性评估框架,并定制了高效的Platt Scaling和Isotonic Regression事后校准方法,实验证明其优于训练时校准方法。
摘要:
可靠地使用目标检测器要求它们被校准——这是一个需要仔细关注的关键问题。近期针对此问题的方法包括:(1)设计新的损失函数,通过从零开始训练来获得校准的检测器;(2)事后温度缩放(Temperature Scaling, TS),学习缩放已训练检测器的似然以输出校准的预测。随后,这些方法基于检测期望校准误差(Detection Expected Calibration Error, D-ECE)和平均精度(Average Precision)的组合进行评估。在本研究中,通过广泛的分析与洞察,我们强调这些近期的评估框架、评估指标以及 TS 的使用存在显著缺陷,会导致得出错误的结论。作为解决这些问题的一步,我们提出了一个有原则的评估框架,以联合测量目标检测器的校准和准确性。我们还专门针对目标检测任务,定制了高效且易于使用的事后校准方法,如 Platt Scaling 和 Isotonic Regression。与普遍观念相反,我们的实验表明,一旦经过适当的设计和评估,构建和使用成本极低的事后校准器比近期的训练时校准方法更强大、更有效。举例来说,在 COCO 数据集上,带有我们事后 Isotonic Regression 校准器的 D-DETR 在 D-ECE 上比近期训练时最先进的校准方法 Cal-DETR 高出 7 个点以上。此外,我们提出了最近提出的 Localization-aware ECE 的改进版本,并展示了我们的方法在这些指标上的有效性。代码可在 https://github.com/fiveai/detection_calibration 获取。
英文摘要:
Reliable usage of object detectors require them to be calibrated -- a crucial problem that requires careful attention. Recent approaches towards this involve (1) designing new loss functions to obtain calibrated detectors by training them from scratch, and (2) post-hoc Temperature Scaling (TS) that learns to scale the likelihood of a trained detector to output calibrated predictions. These approaches are then evaluated based on a combination of Detection Expected Calibration Error (D-ECE) and Average Precision. In this work, via extensive analysis and insights, we highlight that these recent evaluation frameworks, evaluation metrics, and the use of TS have notable drawbacks leading to incorrect conclusions. As a step towards fixing these issues, we propose a principled evaluation framework to jointly measure calibration and accuracy of object detectors. We also tailor efficient and easy-to-use post-hoc calibration approaches such as Platt Scaling and Isotonic Regression specifically for object detection task. Contrary to the common notion, our experiments show that once designed and evaluated properly, post-hoc calibrators, which are extremely cheap to build and use, are much more powerful and effective than the recent train-time calibration methods. To illustrate, D-DETR with our post-hoc Isotonic Regression calibrator outperforms the recent train-time state-of-the-art calibration method Cal-DETR by more than 7 D-ECE on the COCO dataset. Additionally, we propose improved versions of the recently proposed Localization-aware ECE and show the efficacy of our method on these metrics as well. Code is available at: https://github.com/fiveai/detection_calibration.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。