再思考:作为LLM代理并行推理、行动与观察
研究论文 · 2026/08/17
本文提出Second Thought,一种无需训练的推理框架,通过在ReAct范式的Thought阶段结束后并行运行多个辅助推理分支,利用行动和观察的等待时间进行额外推理,从而在不增加主线程顺序解码负担的情况下提升LLM代理的效率。在三个基准和三个模型上,该方法平均降低了回合数,并在多数情况下减少了主线程解码量,同时保持或提升了任务成功率。
该论文针对LLM代理推理效率问题提出创新解决方案,通过并行推理利用空闲时间,显著提升效率且不损失性能,对实际应用有重要价值。
LLM agents in the ReAct paradigm alternate between reasoning, acting, and observing, but deliberate reasoning is confined to the Thought phase: while the agent serializes an action and waits for the environment, its reasoning is frozen. We identify this recurring interval for Action and Observation as a reasoning idle window and ask whether it can host additional reasoning in parallel that serves future turns. Therefore, we propose Second Thought, a training-free inference framework that forks four auxiliary branches the instant each Thought phase concludes, decodes them concurrently with the main loop, and merges the generated thoughts back when the environment observation arrives. In this way, Second Thought relocates the added reasoning off the main thread's sequential decoding path. Across three agentic benchmarks and three reasoning LLMs, Second Thought lowers the average turn count in all nine (model,benchmark) pairs and reduces main thread decoding in six of them by up to 43% (roughly 20% on average among those settings), while leaving it essentially unchanged in a seventh; Pass@1 shows no significant change in seven of nine pairs and the two significant differences are +12.4 and +10.2 points. Against a compute-matched control that forces an equivalent budget onto the main thread's own reasoning, it attains strictly higher Pass@1 with 1.3 to 3.2 less sequential decoding in all four settings where the control applies.