arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.04344cs.LG
收藏

置信度校准是否能改进共形预测?

Does confidence calibration improve conformal prediction?

Southern University of Science and Technology(南方科技大学);Nanyang Technological University(南洋理工大学);University of Macau(澳门大学);Singapore University of Technology and Design(新加坡科技设计大学)

Huajun Xi, Jianguo Huang, Kangdao Liu, Lei Feng, Hongxin Wei

AI总结:

本文研究了置信度校准对自适应共形预测的影响,发现传统温度缩放会增大预测集,并提出带有新型损失函数的 ConfTS 方法以提升预测集效率,在分类任务尤其是 LLMs 中表现更优。

摘要:

共形预测是一种新兴的不确定性量化技术,它构建的预测集保证以预定义的概率包含真实标签。以往的研究通常采用温度缩放来校准分类器,假设置信度校准有益于共形预测。然而,置信度校准对共形预测的具体影响仍有待深入探索。在本研究中,我们关于置信度校准方法对自适应共形预测的影响得出了两个关键发现。首先,我们通过实证表明,当前的置信度校准方法(例如温度缩放)通常会在自适应共形预测中导致更大的预测集。其次,通过研究温度值的作用,我们观察到高置信度预测能够提升自适应共形预测的效率。在理论上,我们证明了更高置信度的预测在期望上会产生更小的预测集。这一发现意味着,这些校准方法中的重缩放参数在使用交叉熵损失进行优化时,可能会与生成高效预测集的目标相悖。为了解决这一问题,我们提出了 Conformal Temperature Scaling (ConfTS),这是温度缩放的一种变体,其带有旨在提升预测集效率的新型损失函数。该方法可扩展用于优化其他事后置信度校准方法的参数。大量实验表明,我们的方法改进了现有的自适应共形预测方法在分类任务中的表现,尤其是在使用 LLMs 时。

英文摘要:

Conformal prediction is an emerging technique for uncertainty quantification that constructs prediction sets guaranteed to contain the true label with a predefined probability. Previous works often employ temperature scaling to calibrate classifiers, assuming that confidence calibration benefits conformal prediction. However, the specific impact of confidence calibration on conformal prediction remains underexplored. In this work, we make two key discoveries about the impact of confidence calibration methods on adaptive conformal prediction. Firstly, we empirically show that current confidence calibration methods (e.g., temperature scaling) typically lead to larger prediction sets in adaptive conformal prediction. Secondly, by investigating the role of temperature value, we observe that high-confidence predictions can enhance the efficiency of adaptive conformal prediction. Theoretically, we prove that predictions with higher confidence result in smaller prediction sets on expectation. This finding implies that the rescaling parameters in these calibration methods, when optimized with cross-entropy loss, might counteract the goal of generating efficient prediction sets. To address this issue, we propose Conformal Temperature Scaling (ConfTS), a variant of temperature scaling with a novel loss function designed to enhance the efficiency of prediction sets. This approach can be extended to optimize the parameters of other post-hoc methods of confidence calibration. Extensive experiments demonstrate that our method improves existing adaptive conformal prediction methods in classification tasks, especially with LLMs.

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

↑