arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.11027cs.LG
收藏

在LLM推理扩展中采样多样性的影响

On the Effect of Sampling Diversity in Scaling LLM Inference

The Pennsylvania State University(宾夕法尼亚州立大学);Carnegie Mellon University(卡内基梅隆大学);University of California, Los Angeles(加州大学洛杉矶分校);Rensselaer Polytechnic Institute(罗切斯特理工学院);The Chinese University of Hong Kong(香港中文大学);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);NEC Laboratories America(NEC美国实验室)

Tianchun Wang, Zichuan Liu, Yuanzhou Chen, Jonathan Light, Weiyang Liu, Haifeng Chen, Xiang Zhang, Wei Cheng

AI总结:

本文研究了在LLM推理扩展中采样多样性对性能的影响,通过理论和实验证明多样化的采样能提升模型表现,并在不同任务中实现了显著的增益。

摘要:

大型语言模型(LLM)的扩展推理是解锁更高性能的关键,利用多样性已被证明是增强其效果的有效方法。受观察到的解决方案准确率与有意义响应多样性的关系启发,我们系统地研究了扩展推理中的提示多样性影响。我们理论上解释了为什么多样化的采样能提高最佳-N扩展,证明了在最佳-N选择后,来自多样提示生成的响应的错误率显著低于来自静态提示生成的响应。基于这一分析,我们推导出一个多样性-保真度权衡原则,该原则指导设计引入多样性的采样策略。从这一指导中,我们实例化了一组有效的扰动风格。我们理论和实证地刻画了何时多样化的探索仍然有效,证明了它在各种条件下都有效,并进一步表明在多数投票下,多样性可能会消失。最后,我们系统地评估了采样多样性在不同情境下有效性的效果,并显示当在不同情境中适当应用时,它在推理中产生10.8%的EM@100增益,在数学中产生9.6%的增益,在代码生成中产生9.5%的Pass@100增益。总体而言,这项工作提供了一个系统分析,为理解采样多样性如何影响LLM推理时间扩展提供了理论和实证基础。

英文摘要:

Large language model (LLM) scaling inference is key to unlocking greater performance, and leveraging diversity has proven an effective way to enhance it. Motivated by the observed relationship between solution accuracy and meaningful response diversity, we systematically study the effect of prompt diversity in scaling inference. We theoretically explain why diversified sampling improves Best-of-$N$ scaling, showing that responses generated from diverse prompts after Best-of-$N$ selection exhibit significantly lower error rates than those produced from stationary prompts. Building on this analysis, we derive a diversity-fidelity trade-off principle, that guides the design of sampling strategies introducing diversity. From this guidance, we instantiate a family of effective perturbation styles. We theoretically and empirically characterize \textbf{when} diversified exploration remains effective, demonstrating that it works under a variety of conditions, and we further show that under majority voting, diversity may vanish. Finally, we systematically evaluate the effectiveness of sampling diversity and show that, when applied appropriately in different contexts, meaningful perturbations yield stronger, task-dependent gains as diversity increases. Overall, this work provides a systematic analysis that offers a theoretical and empirical foundation for understanding how sampling diversity affects LLM inference-time scaling.

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

↑