arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.13672cs.AI
收藏

A*-Decoding:令牌高效的推理缩放

A*-Decoding: Token-Efficient Inference Scaling

MIT(麻省理工学院);Cohere

Giannis Chatziveroglou

AI总结:

针对语言模型推理时计算预算利用不优的问题,提出基于A*搜索的A*-decoding解码策略,在同等算力下大幅减少令牌与PRM调用量,让小模型达到大模型甚至o1级推理性能,为高效推理部署提供新路径。

摘要:

推理时缩放已成为提升语言模型复杂推理任务性能的有力替代方案,可替代参数缩放。现有方法虽在固定计算预算下实现了显著性能提升,但鲜有研究关注推理过程中如何最优利用该预算。本文提出A*-decoding,这是一种基于搜索的推理时策略,以A*搜索算法为基础,通过在生成过程中优先探索高质量推理路径,实现固定计算预算的最优利用。我们将语言模型解码建模为部分解状态空间中的结构化搜索,应用A*转移模型,在外部过程监督信号的引导下识别有前景的后续内容。实验中,A*-decoding达到了best-of-N、粒子滤波等强推理缩放基线的性能水平,且在等效计算预算下,令牌使用量最多减少3倍,PRM(过程奖励模型)遍历次数减少30%。在MATH500和AIME 2024基准测试上,A*-decoding使Llama-3.2-1B-Instruct的性能追平了规模大70倍的Llama-3.1-70B-Instruct,还让Qwen3-1.7B达到了o1级别的推理准确率。这些结果凸显了解码中结构化搜索的效力,为蛮力采样或规模驱动的性能提升提供了替代方案。本研究证明了精心设计的推理时策略可增强小语言模型(SLM)的推理能力,为更高效、更具可扩展性的语言模型部署指明了未来方向。

英文摘要:

Inference-time scaling has emerged as a powerful alternative to parameter scaling for improving language model performance on complex reasoning tasks. While existing methods have shown strong performance gains under fixed compute budgets, there has been little focus on optimally utilizing that budget during inference. In this work, we introduce A*-decoding, a search-based inference-time strategy that builds on the A* search algorithm to optimally utilize a fixed compute budget by prioritizing high-quality reasoning paths during generation. We frame language model decoding as a structured search in a state space of partial solutions, applying the A* transition model to identify promising continuations guided by an external process supervision signal. In our experiments, A*-decoding reaches the performance levels of strong inference scaling baselines like best-of-N and particle filtering while using up to 3x fewer tokens and 30% fewer PRM passes under equivalent compute budgets. On the MATH500 and AIME 2024 benchmarks, A*-decoding enables Llama-3.2-1B-Instruct to match the performance of the 70x larger Llama-3.1-70B-Instruct, and allows Qwen3-1.7B to reach o1-like reasoning accuracy. These results highlight the power of structured search in decoding, offering an alternative to brute-force sampling or scale-driven gains. Our work demonstrates how thoughtful inference-time strategies can enhance reasoning in SLMs, pointing toward future advances in more efficient and scalable language model deployment.

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

↑