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

∇-Reasoner: 通过潜在空间中的测试时间梯度下降进行LLM推理

$\nabla$-Reasoner: LLM Reasoning via Test-Time Gradient Descent in Latent Space

The University of Texas at Austin(德克萨斯大学奥斯汀分校);UC San Diego(圣地亚哥大学);TTIC;Georgia Tech(佐治亚理工学院)

Peihao Wang, Ruisi Cai, Zhen Wang, Hongyuan Mei, Qiang Liu, Pan Li, Zhangyang Wang

AI总结:

∇-Reasoner通过潜在空间中的测试时间梯度下降提升LLM推理能力,实现20%以上的准确率提升并减少模型调用次数。

摘要:

在大型语言模型(LLMs)的推理时间计算扩展方面,已经解锁了前所未有的推理能力。然而,现有的推理时间扩展方法通常依赖于低效且次优的离散搜索算法或试错式提示来改进在线策略。在本文中,我们提出了∇-Reasoner,一种迭代生成框架,将可微优化应用于token logit,将其整合到解码循环中以实时优化策略。我们的核心组件,可微文本优化(DTO),利用来自LLM的似然和奖励模型的梯度信号来优化文本表示。∇-Reasoner进一步结合了拒绝采样和加速设计以提高解码的鲁棒性和速度。理论上,我们证明了在样本空间中进行推理时间梯度下降以最大化奖励,与通过KL正则化强化学习对齐LLM策略是双重的。实验表明,∇-Reasoner在具有挑战性的数学推理基准上实现了超过20%的准确性提升,同时将模型调用次数减少了约10-40%。总体而言,我们的工作从零阶搜索转向了测试时间的一阶优化,提供了一条成本效益高、能增强LLM推理能力的路径。

英文摘要:

Scaling inference-time compute for Large Language Models (LLMs) has unlocked unprecedented reasoning capabilities. However, existing inference-time scaling methods typically rely on inefficient and suboptimal discrete search algorithms or trial-and-error prompting to improve the online policy. In this paper, we propose $\nabla$-Reasoner, an iterative generation framework that integrates differentiable optimization over token logits into the decoding loop to refine the policy on the fly. Our core component, Differentiable Textual Optimization (DTO), leverages gradient signals from both the LLM's likelihood and a reward model to refine textual representations. $\nabla$-Reasoner further incorporates rejection sampling and acceleration design to robustify and speed up decoding. Theoretically, we show that performing inference-time gradient descent in the sample space to maximize reward is dual to aligning an LLM policy via KL-regularized reinforcement learning. Empirically, $\nabla$-Reasoner achieves over 20% accuracy improvement on a challenging mathematical reasoning benchmark, while reducing number of model calls by approximately 10-40% compared to strong baselines. Overall, our work introduces a paradigm shift from zeroth-order search to first-order optimization at test time, offering a cost-effective path to amplify LLM reasoning.

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

↑