一个温度就够了吗?多温度采样与单一温度在大模型推理中的对比分析
One Temperature to Rule Them All?
研究在pass@K设定下分析了多温度采样与单一固定温度采样的效果差异,发现按采样预算K调优单一温度后,多温度分配方案的性能提升通常有限。作者提出"钝化效应"(dulling effects)的数学机制来解释这一现象,并指出难题更难共享高效采样温度,但该趋势仅随难度呈对数增长。
arXiv:2611.13077v1 Announce Type: new Abstract: Inference-time sampling is a central mechanism for improving large language models, with temperature controlling the tradeoff between reliability and diversity. While recent work suggests that varying temperature across samples can improve multi-sample inference, simple fixed-temperature schemes remain the standard in practice. We investigate this discrepancy in the canonical pass@K setting, asking when temperature diversity is useful, and when a single tuned temperature suffices. To this end, we analyze per-question success probabilities across multiple models and datasets, tracking how they vary with sampling temperature. We identify several consistent properties of these profiles, including that harder questions are less likely to share efficient sampling temperatures, although this trend is only logarithmic in hardness. We then derive an efficient method for evaluating the theoretically optimal multi-temperature allocation scheme, and show that although such a scheme improves performance, its gains over single-temperature baselines are typically modest when temperature is tuned as a function of the sampling budget K. We explain this phenomenon through mathematical mechanisms that we call dulling effects, and show how they ensure the robustness of temperature choices across different question distributions. Our results clarify when multi-temperature sampling is useful, and how temperatures should ideally be chosen.
来源:arXiv (AI + Vision + Imaging) · arxiv.org