调参+策略优化,让大模型推理更准更快
Bag of Tricks for Inference-time Computation of LLM Reasoning
- 通过调温度、top-p等参数提升候选答案质量
- 实验发现调参可使推理准确率最高提升5%
- 提供标准化测试基准,适合研究者参考
随着大语言模型的发展,解决复杂推理任务日益受到关注。推理时计算方法(如Best-of-N、束搜索等)无需修改模型参数或额外训练,即可提升推理性能,但因实现复杂且在不同任务上效果不一,多数方法仍停留在概念验证阶段。本文系统评估了多种推理时计算策略在不同复杂度任务上的表现。针对现有方法普遍采用的提出-验证流水线,研究重点优化候选解生成(如提示工程、温度与top-p等超参数)和奖励机制(如自评估、奖励类型)。通过超过20,000小时A100-80G GPU计算资源完成1,000余次实验,覆盖Llama、Qwen、Mistral等多个模型家族及不同规模模型,消融实验表明,此前被忽视的策略可显著提升性能(如调温可使推理准确率最高提升5%)。同时构建了标准化基准,系统评测六种代表性方法在八类推理任务中的表现,为后续研究奠定基础。代码已开源。
原文摘要 · Abstract (English)
With the advancement of large language models (LLMs), solving complex reasoning tasks has gained increasing attention. Inference-time computation methods (e.g., Best-of-N, beam search, et al.) are particularly valuable as they can enhance reasoning performance without modifying model parameters or requiring additional training. However, these techniques come with implementation challenges, and most existing methods remain at the proof-of-concept stage with limited practical adoption due to their computational complexity and varying effectiveness across different tasks. In this paper, we investigate and benchmark diverse inference-time computation strategies across reasoning tasks of varying complexity. Since most current methods rely on a proposer-verifier pipeline that first generates candidate solutions (e.g., reasoning solutions) and then selects the best one based on reward signals (e.g., RLHF rewards, process rewards), our research focuses on optimizing both candidate solution generation (e.g., instructing prompts, hyperparameters such as temperature and top-p) and reward mechanisms (e.g., self-evaluation, reward types). Through extensive experiments (more than 20,000 A100-80G GPU hours with over 1,000 experiments) across a variety of models (e.g., Llama, Qwen, and Mistral families) of various sizes, our ablation studies reveal that previously overlooked strategies can significantly enhance performance (e.g., tuning temperature can improve reasoning task performance by up to 5%). Furthermore, we establish a standardized benchmark for inference-time computation by systematically evaluating six representative methods across eight reasoning tasks. These findings provide a stronger foundation for future research. The code is available at https://github.com/usail-hkust/benchmark_inference_time_computation_LLM
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。