arXiv:2503.07572cs.LGcs.AI2025-03ICML被引 133

通过元强化学习优化大模型测试时计算资源使用效率

Optimizing Test-Time Compute via Meta Reinforcement Fine-Tuning

  • 将测试时计算优化建模为元强化学习问题,以累积后悔值衡量计算效能
  • 相比仅用0/1结果奖励的RL方法,性能提升2-3倍,令牌效率提高1.5倍
  • 适合需要高效推理的大模型应用,如数学题求解与复杂任务规划

让大语言模型有效利用测试时计算资源对提升其推理能力至关重要。现有方法多基于搜索轨迹微调或使用0/1结果奖励进行强化学习,但这些方法是否高效利用了测试时计算?随着预算增加是否仍可扩展?本文将测试时计算优化形式化为元强化学习问题,提供了一种原则性视角:将模型输出长序列视为多个测试期,以输出标记上的累积后悔值衡量计算有效性。最小化累积后悔能实现探索与利用的最佳平衡。我们发现当前最优模型并未最小化后悔,但可通过结合密集奖励(即后续输出块的成功概率变化)与0/1结果奖励来实现。据此提出元强化微调(MRT),在数学推理任务中相较仅用结果奖励的强化学习方法,性能提升2-3倍,令牌效率提升约1.5倍。

原文摘要 · Abstract (English)

Training models to effectively use test-time compute is crucial for improving the reasoning performance of LLMs. Current methods mostly do so via fine-tuning on search traces or running RL with 0/1 outcome reward, but do these approaches efficiently utilize test-time compute? Would these approaches continue to scale as the budget improves? In this paper, we try to answer these questions. We formalize the problem of optimizing test-time compute as a meta-reinforcement learning (RL) problem, which provides a principled perspective on spending test-time compute. This perspective enables us to view the long output stream from the LLM as consisting of several episodes run at test time and leads us to use a notion of cumulative regret over output tokens as a way to measure the efficacy of test-time compute. Akin to how RL algorithms can best tradeoff exploration and exploitation over training, minimizing cumulative regret would also provide the best balance between exploration and exploitation in the token stream. While we show that state-of-the-art models do not minimize regret, one can do so by maximizing a dense reward bonus in conjunction with the outcome 0/1 reward RL. This bonus is the ''progress'' made by each subsequent block in the output stream, quantified by the change in the likelihood of eventual success. Using these insights, we develop Meta Reinforcement Fine-Tuning, or MRT, a new class of fine-tuning methods for optimizing test-time compute. MRT leads to a 2-3x relative gain in performance and roughly a 1.5x gain in token efficiency for math reasoning compared to outcome-reward RL.

大模型推理强化学习测试时计算元学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。