arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2507.07780cs.CVcs.AI
收藏

图像分类中数据集偏移下的校准研究进展如何?

Where are we with calibration under dataset shift in image classification?

Imperial College London(帝国理工学院伦敦分校)

Mélanie Roschewitz, Raghav Mehta, Fabio de Sousa Ribeiro, Ben Glocker

AI总结:

该研究针对图像分类数据集偏移下的校准问题开展广泛实验,对比多种校准技术的效果,得出校准方法选择、集成策略等相关结论,为从业者提供实用指南。

摘要:

我们针对图像分类在真实世界数据集偏移下的校准现状开展了广泛研究。本研究为事后校准技术与训练中校准技术的选择提供了重要洞见,并为所有关注偏移下鲁棒校准的从业者给出了实用指南。我们在多个成像领域的8项不同分类任务上,横跨各类自然偏移场景,对比了多种事后校准方法,以及它们与常见训练中校准策略(如标签平滑)的相互作用。我们发现:(i)同时应用熵正则化与标签平滑,能在数据集偏移下得到校准效果最佳的原始概率;(ii)接触过少量语义分布外(与任务无关)数据的事后校准器,在偏移下的鲁棒性最强;(iii)专门针对提升偏移下校准效果的近期校准方法,未必能比更简单的事后校准方法带来显著提升;(iv)提升偏移下的校准效果往往以恶化分布内校准为代价。重要的是,这些结论既适用于随机初始化的分类器,也适用于从基础模型微调得到的分类器,后者的校准效果始终优于从头训练的模型。最后,我们对集成效应开展了深入分析,发现:(i)在集成前(而非集成后)应用校准,对偏移下的校准更有效;(ii)对于集成模型,分布外数据暴露会恶化分布内-偏移校准的权衡关系;(iii)集成仍然是提升校准鲁棒性的最有效方法之一,与基础模型微调结合后,能得到整体最优的校准结果。

英文摘要:

We conduct an extensive study on the state of calibration under real-world dataset shift for image classification. Our work provides important insights on the choice of post-hoc and in-training calibration techniques, and yields practical guidelines for all practitioners interested in robust calibration under shift. We compare various post-hoc calibration methods, and their interactions with common in-training calibration strategies (e.g., label smoothing), across a wide range of natural shifts, on eight different classification tasks across several imaging domains. We find that: (i) simultaneously applying entropy regularisation and label smoothing yield the best calibrated raw probabilities under dataset shift, (ii) post-hoc calibrators exposed to a small amount of semantic out-of-distribution data (unrelated to the task) are most robust under shift, (iii) recent calibration methods specifically aimed at increasing calibration under shifts do not necessarily offer significant improvements over simpler post-hoc calibration methods, (iv) improving calibration under shifts often comes at the cost of worsening in-distribution calibration. Importantly, these findings hold for randomly initialised classifiers, as well as for those finetuned from foundation models, the latter being consistently better calibrated compared to models trained from scratch. Finally, we conduct an in-depth analysis of ensembling effects, finding that (i) applying calibration prior to ensembling (instead of after) is more effective for calibration under shifts, (ii) for ensembles, OOD exposure deteriorates the ID-shifted calibration trade-off, (iii) ensembling remains one of the most effective methods to improve calibration robustness and, combined with finetuning from foundation models, yields best calibration results overall.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑