通过探测扰动表示稳定性来校准大语言模型置信度
Calibrating LLM Confidence by Probing Perturbed Representation Stability
AI总结:
本文提出CCPS方法,通过对大语言模型最终隐藏状态施加对抗扰动并分析表示稳定性,结合轻量级分类器预测答案正确性,在多个模型和基准上显著降低了校准误差并提升了置信度估计准确性。
摘要:
大语言模型(LLMs)中的误校准损害了其可靠性,凸显了准确置信度估计的必要性。我们提出CCPS(通过探测扰动表示稳定性来校准大语言模型置信度),这是一种分析LLMs内部表示稳定性的新方法。CCPS对最终隐藏状态施加有针对性的对抗扰动,提取反映模型对这些扰动响应的特征,并使用轻量级分类器预测答案正确性。CCPS在参数规模从8B到32B的LLMs(涵盖Llama、Qwen和Mistral架构)上使用MMLU和MMLU-Pro基准进行了评估,评估格式包括多项选择和开放式两种。我们的结果表明,CCPS显著优于当前方法。在四个LLMs和三个MMLU变体上,CCPS将预期校准误差降低了约55%,将Brier分数降低了21%,同时将准确率提高了5个百分点,将精确率-召回率曲线下面积提高了4个百分点,将接收者操作特征曲线下面积提高了6个百分点,以上均相对于最强的先前方法。CCPS为估计LLM置信度提供了一种高效、广泛适用且更准确的解决方案,从而提高了其可信度。
英文摘要:
Miscalibration in Large Language Models (LLMs) undermines their reliability, highlighting the need for accurate confidence estimation. We introduce CCPS (Calibrating LLM Confidence by Probing Perturbed Representation Stability), a novel method analyzing internal representational stability in LLMs. CCPS applies targeted adversarial perturbations to final hidden states, extracts features reflecting the model's response to these perturbations, and uses a lightweight classifier to predict answer correctness. CCPS was evaluated on LLMs from 8B to 32B parameters (covering Llama, Qwen, and Mistral architectures) using MMLU and MMLU-Pro benchmarks in both multiple-choice and open-ended formats. Our results show that CCPS significantly outperforms current approaches. Across four LLMs and three MMLU variants, CCPS reduces Expected Calibration Error by approximately 55% and Brier score by 21%, while increasing accuracy by 5 percentage points, Area Under the Precision-Recall Curve by 4 percentage points, and Area Under the Receiver Operating Characteristic Curve by 6 percentage points, all relative to the strongest prior method. CCPS delivers an efficient, broadly applicable, and more accurate solution for estimating LLM confidence, thereby improving their trustworthiness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。