当模型知道它不知道的时候:校准、级联和清洗
When Models Know When They Do Not Know: Calibration, Cascading, and Cleaning
AI总结:
本文提出一种无需训练的通用方法,通过校准、级联和数据清洗提升模型识别自身不确定性的能力,验证了校准置信度的可靠性及应用效果。
摘要:
当模型能够识别其不确定时,许多可能性随之出现。第一个问题是如何使模型能够认识到其不确定。一种有前途的方法是利用置信度,从模型内部信号计算得出,以反映其无知。先前在特定领域的研究表明,校准可以提供可靠的置信度估计。在本文中,我们提出了一种简单、有效且通用的方法,适用于视觉和语言模型,进行模型校准、级联和数据清洗,以更好地利用模型识别其不确定的能力。我们首先强调两个关键的实证观察:更高的置信度对应于单个模型中更高的准确性,以及在验证集上校准的模型在保留的测试集上仍保持校准。这些发现实证地确立了校准置信度的可靠性和可比性。基于此,我们引入了两个应用:(1)校准优势路由的模型级联和(2)基于模型集合的数据清洗。利用从校准置信度的可比性中得出的路由信号,我们级联大和小模型以在几乎不牺牲准确性的情况下提高效率,并进一步级联两个规模相当的模型以实现超越单个模型的性能。利用多个专家及其校准的置信度,我们设计了一种简单但有效的数据清洗方法,平衡精度和检测率以识别ImageNet和Massive Multitask Language Understanding(MMLU)数据集中的错误标注样本。我们的结果表明,使模型能够识别其不确定是迈向更高效、可靠和可信AI的实用步骤。
英文摘要:
When a model knows when it does not know, many possibilities emerge. The first question is how to enable a model to recognize that it does not know. A promising approach is to use confidence, computed from the model's internal signals, to reflect its ignorance. Prior work in specific domains has shown that calibration can provide reliable confidence estimates. In this work, we propose a simple, effective, and universal training-free method that applies to both vision and language models, performing model calibration, cascading, and data cleaning to better exploit a model's ability to recognize when it does not know. We first highlight two key empirical observations: higher confidence corresponds to higher accuracy within a single model, and models calibrated on the validation set remain calibrated on a held-out test set. These findings empirically establish the reliability and comparability of calibrated confidence. Building on this, we introduce two applications: (1) model cascading with calibrated advantage routing and (2) data cleaning based on model ensemble. Using the routing signal derived from the comparability of calibrated confidences, we cascade large and small models to improve efficiency with almost no compromise in accuracy, and we further cascade two models of comparable scale to achieve performance beyond either model alone. Leveraging multiple experts and their calibrated confidences, we design a simple yet effective data-cleaning method that balances precision and detection rate to identify mislabeled samples in ImageNet and Massive Multitask Language Understanding (MMLU) datasets. Our results demonstrate that enabling models to recognize when they do not know is a practical step toward more efficient, reliable, and trustworthy AI.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。