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

有用的信心措施:超越最高分数

Useful Confidence Measures: Beyond the Max Score

Weizmann Institute(魏茨曼研究所);Columbia University(哥伦比亚大学);Google(谷歌)

Gal Yona, Amir Feder, Itay Laish

摘要:

在安全批评应用程序中部署机器学习(ML)的一个重要组成部分是对ML模型的预测具有可靠的置信度测量。对于在候选类上产生概率向量$f(x)$的分类器$f$,置信度通常被认为是$\max_i f(x)_i$。这种方法可能是有限的,因为它忽略了概率向量的其余部分。在这项工作中,我们得出了几个置信度的措施,依赖于信息超出最大分数,如基于边际和基于熵的措施,并实证评估其有用性,专注于NLP任务与分布偏移和基于变换器的模型。我们表明,当模型进行评估的分布外的数据“开箱即用”,只使用最大分数来告知置信度是非常次优的。在后处理方案中(其中$f$的评分可以使用额外的分发中保留数据来改善),这仍然是正确的,尽管不太显著。总的来说,我们的研究结果表明,基于熵的信心是一个令人惊讶的有用措施。

英文摘要:

An important component in deploying machine learning (ML) in safety-critic applications is having a reliable measure of confidence in the ML model's predictions. For a classifier $f$ producing a probability vector $f(x)$ over the candidate classes, the confidence is typically taken to be $\max_i f(x)_i$. This approach is potentially limited, as it disregards the rest of the probability vector. In this work, we derive several confidence measures that depend on information beyond the maximum score, such as margin-based and entropy-based measures, and empirically evaluate their usefulness, focusing on NLP tasks with distribution shifts and Transformer-based models. We show that when models are evaluated on the out-of-distribution data ``out of the box'', using only the maximum score to inform the confidence measure is highly suboptimal. In the post-processing regime (where the scores of $f$ can be improved using additional in-distribution held-out data), this remains true, albeit less significant. Overall, our results suggest that entropy-based confidence is a surprisingly useful measure.

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

↑