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

利用语言模型学习自适应并行推理

Learning Adaptive Parallel Reasoning with Language Models

UC Berkeley(加州大学伯克利分校);UCSF(旧金山大学)

Jiayi Pan, Xiuyu Li, Long Lian, Charlie Snell, Yifei Zhou, Adam Yala, Trevor Darrell, Kurt Keutzer, Alane Suhr

AI总结:

本文提出自适应并行推理框架 APR,通过 spawn()/join() 操作和端到端强化学习协调串行与并行推理,在 Countdown 任务上以同等或更少资源实现更高准确率。

摘要:

扩展推理时计算已显著提升了语言模型的推理能力。然而,现有方法存在明显局限:串行化的思维链方法会生成过长的输出,导致延迟增加和上下文窗口耗尽;而自一致性等并行方法则缺乏充分协调,造成冗余计算且性能提升有限。为解决这些不足,我们提出了自适应并行推理(APR),这是一种新颖的推理框架,使语言模型能够端到端地协调串行与并行计算。APR 通过使用 spawn() 和 join() 操作实现自适应多线程推理,从而推广了现有推理方法。一个关键创新是我们的端到端强化学习策略,同时优化父推理线程和子推理线程,以提高任务成功率,而无需预定义推理结构。在 Countdown 推理任务上的实验证明了 APR 的显著优势:(1)在相同上下文窗口内性能更高(4k 上下文下为 83.4% 对 60.0%);(2)随着计算量增加具有更优的可扩展性(总 token 数为 20k 时为 80.1% 对 66.6%);(3)在同等延迟下准确率更高(约 5,000ms 时为 75.2% 对 57.3%)。APR 代表着向使语言模型能够通过自适应计算分配自主优化其推理过程迈出的一步。

英文摘要:

Scaling inference-time computation has substantially improved the reasoning capabilities of language models. However, existing methods have significant limitations: serialized chain-of-thought approaches generate overly long outputs, leading to increased latency and exhausted context windows, while parallel methods such as self-consistency suffer from insufficient coordination, resulting in redundant computations and limited performance gains. To address these shortcomings, we propose Adaptive Parallel Reasoning (APR), a novel reasoning framework that enables language models to orchestrate both serialized and parallel computations end-to-end. APR generalizes existing reasoning methods by enabling adaptive multi-threaded inference using spawn() and join() operations. A key innovation is our end-to-end reinforcement learning strategy, optimizing both parent and child inference threads to enhance task success rate without requiring predefined reasoning structures. Experiments on the Countdown reasoning task demonstrate significant benefits of APR: (1) higher performance within the same context window (83.4% vs. 60.0% at 4k context); (2) superior scalability with increased computation (80.1% vs. 66.6% at 20k total tokens); (3) improved accuracy at equivalent latency (75.2% vs. 57.3% at approximately 5,000ms). APR represents a step towards enabling language models to autonomously optimize their reasoning processes through adaptive allocation of computation.

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

↑