arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.05806cs.LGstat.ML
收藏

关于深度分类器的温度缩放与保形预测

On Temperature Scaling and Conformal Prediction of Deep Classifiers

Bar-Ilan University(巴伊兰大学)

Lahav Dabah, Tom Tirer

AI总结:

本文研究了温度缩放校准对保形预测(CP)的影响,发现其能改善类条件覆盖率但会增大预测集,并揭示了两者间的非单调权衡趋势,提供了结合自适应CP与校准的实用指南。

摘要:

在许多分类应用中,基于深度神经网络(DNN)的分类器的预测需要伴随某种置信度指示。为此有两种流行的方法:1)校准:修改分类器的 softmax 值,使得最大值能更好地估计正确概率;2)保形预测(CP):生成包含候选标签的预测集,该集合以用户指定的概率包含真实标签,保证边缘覆盖率但不保证例如每类的覆盖率。在实践中,这两种指示都是理想的,但迄今为止它们之间的相互作用尚未被研究。聚焦于无处不在的温度缩放(TS)校准,本文首先广泛实证研究了其对 prominent CP 方法的影响。我们表明,虽然 TS 校准改善了自适应 CP 方法的类条件覆盖率,但令人惊讶的是,它对其预测集大小产生了负面影响。受此行为启发,我们探索了 TS 对 CP 的影响(超越其校准应用),揭示了一个有趣的趋势,在该趋势下它允许权衡自适应 CP 方法的预测集大小和条件覆盖率。然后,我们建立了一个解释整个非单调趋势的数学理论。最后,基于我们的实验和理论,我们为实践者提供了简单的指南,以有效地将自适应 CP 与校准结合,符合用户定义的目标。

英文摘要:

In many classification applications, the prediction of a deep neural network (DNN) based classifier needs to be accompanied by some confidence indication. Two popular approaches for that aim are: 1) Calibration: modifies the classifier's softmax values such that the maximal value better estimates the correctness probability; and 2) Conformal Prediction (CP): produces a prediction set of candidate labels that contains the true label with a user-specified probability, guaranteeing marginal coverage but not, e.g., per class coverage. In practice, both types of indications are desirable, yet, so far the interplay between them has not been investigated. Focusing on the ubiquitous Temperature Scaling (TS) calibration, we start this paper with an extensive empirical study of its effect on prominent CP methods. We show that while TS calibration improves the class-conditional coverage of adaptive CP methods, surprisingly, it negatively affects their prediction set sizes. Motivated by this behavior, we explore the effect of TS on CP beyond its calibration application and reveal an intriguing trend under which it allows to trade prediction set size and conditional coverage of adaptive CP methods. Then, we establish a mathematical theory that explains the entire non-monotonic trend. Finally, based on our experiments and theory, we offer simple guidelines for practitioners to effectively combine adaptive CP with calibration, aligned with user-defined goals.

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

↑