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

论温度采样在测试时扩展中的作用

On the Role of Temperature Sampling in Test-Time Scaling

Stanford University(斯坦福大学)

Yuheng Wu, Azalia Mirhoseini, Thierry Tambe

AI总结:

本研究发现大语言模型单温度测试时扩展存在性能上限,提出沿温度维度扩展的方法,在多个基准上额外提升7.3个点,可让基础模型无需后训练达到强化学习模型的性能,还设计了多温度投票法降低开销。

摘要:

大语言模型(LLM)可通过测试时扩展(TTS)在推理阶段提升推理能力,该方法会生成多条推理路径并从中选出最优结果。已有研究表明,增加采样数量K会稳步提升准确率。本文证明这一趋势并非无限持续:当K值较大时,进一步扩展不会带来增益,且无论生成多少条推理路径,某些难题始终无法解决。有趣的是,我们发现不同的采样温度能解决不同的问题子集,这说明单温度扩展仅挖掘了模型潜力的一部分。因此我们提出沿温度维度进行扩展,以此扩大LLM的推理边界。在Qwen3(0.6B、1.7B、4B、8B)及五个代表性推理基准(AIME 2024/2025、MATH500、LiveCodeBench、Hi-ToM)上的平均结果显示,温度扩展比单温度TTS额外提升7.3个点。温度扩展还能让基础模型达到与经过强化学习(RL)训练的同类模型相当的性能,且无需额外的后训练。我们进一步对该现象进行了全面分析,并设计了一种多温度投票方法,以降低温度扩展的开销。总体而言,我们的发现表明TTS的能力比此前认为的更强,温度扩展为释放基础模型的潜在能力提供了一种简单有效的方式。

英文摘要:

Large language models (LLMs) can improve reasoning at inference time through test-time scaling (TTS), where multiple reasoning traces are generated and the best one is selected. Prior work shows that increasing the number of samples K steadily improves accuracy. In this paper, we demonstrate that this trend does not hold indefinitely: at large K, further scaling yields no gains, and certain hard questions remain unsolved regardless of the number of traces. Interestingly, we find that different sampling temperatures solve different subsets of problems, implying that single-temperature scaling explores only part of a model's potential. We therefore propose scaling along the temperature dimension, which enlarges the reasoning boundary of LLMs. Averaged over Qwen3 (0.6B, 1.7B, 4B, 8B) and five representative reasoning benchmarks (AIME 2024/2025, MATH500, LiveCodeBench, Hi-ToM), temperature scaling yields an additional 7.3 points over single-temperature TTS. Temperature scaling also enables base models to reach performance comparable to reinforcement learning (RL)-trained counterparts, without additional post-training. We further provide a comprehensive analysis of this phenomenon and design a multi-temperature voting method that reduces the overhead of temperature scaling. Overall, our findings suggest that TTS is more powerful than previously thought, and that temperature scaling offers a simple and effective way to unlock the latent potential of base models.

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

↑