2025-03-04 · 专家 · 机器学习 · 自然语言处理

Efficient Test-Time Scaling via Self-Calibration

本文提出了一种通过自我校准来提高大型语言模型测试时间缩放效率的方法,通过动态调整采样策略,显著提升了模型的性能和计算效率。

更新于 2025-04-22。作者:Chengsong Huang、Langlin Huang、Jixuan Leng、Jiacheng Liu、Jiaxin Huang。

中文摘要

增加测试时的计算量是提升大型语言模型(LLMs)响应质量的一种直接方法。尽管最佳N采样和自洽性多数投票简单且有效,但它们要求每个查询都需要固定数量的采样响应,无论其复杂程度如何。这可能导致简单问题的计算浪费,以及复杂问题的探索不足。在这项工作中,我们认为响应的模型置信度可以用于提高测试时缩放的效率。不幸的是,已知LLMs过于自信,提供的置信度估计不可靠。为了解决这一限制,我们引入了通过蒸馏自洽性导出的置信度到模型本身的自我校准。这使模型在测试时通过一次前向传递即可进行可靠的置信度估计。然后,我们设计了基于置信度的有效测试时缩放方法来处理各种难度的问题,例如最佳N采样的早期停止和具有校准置信度的自洽性。在三个LLMs和六个数据集上的实验证明了我们方法的有效性。具体来说,将基于置信度的早期停止应用于最佳N采样,将MathQA的准确率从81.0提高到83.6,样本预算为16个响应,这表明了基于置信度的采样策略在推理时的有效性。

英文摘要

Increasing test-time computation is a straightforward approach to enhancing the quality of responses in Large Language Models (LLMs). While Best-of-N sampling and Self-Consistency with majority voting are simple and effective, they require a fixed number of sampling responses for each query, regardless of its complexity. This could result in wasted computation for simpler questions and insufficient exploration for more challenging ones. In this work, we argue that model confidence of responses can be used for improving the efficiency of test-time scaling. Unfortunately, LLMs are known to be overconfident and provide unreliable confidence estimation. To address this limitation, we introduce Self-Calibration by distilling Self-Consistency-derived confidence into the model itself. This enables reliable confidence estimation at test time with one forward pass. We then design confidence-based efficient test-time scaling methods to handle queries of various difficulty, such as Early-Stopping for Best-of-N and Self-Consistency with calibrated confidence. Experiments on three LLMs across six datasets demonstrate the effectiveness of our approach. Specifically, applying confidence-based Early Stopping to Best-of-N improves MathQA accuracy from 81.0 to 83.6 with a sample budget of 16 responses, indicating the efficacy of confidence-based sampling strategy at inference time.

解读

一句话总结

本文提出了一种通过自我校准来提高大型语言模型测试时间缩放效率的方法,通过动态调整采样策略,显著提升了模型的性能和计算效率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt