混合推理代理
研究论文 · 2026/10/15
现代LLM智能体仍通过文本进行推理和交互,而潜在推理提供了高效的内部媒介,但缺乏原生工具访问和推理透明度。我们通过混合推理智能体(HybridAgents)将这两个方向结合起来,在统一的生成过程中动态地在潜在推理和基于文本的交互之间切换。在架构上,轻量级HybridLink实现了文本和潜在模式之间的无缝转换,而智能体的连续工作记忆在多个回合中保持无损的混合上下文。这些设计保留了工具集成的智能体能力,同时使潜在思维可直接检查。基于此架构,我们进一步开发了用于混合推理的专用后训练算法:HybridSFT通过教导主干与HybridLink协调来稳定工具集成的混合生成,然后HybridRL通过学习何时在潜在空间中思考以及何时通过文本行动来扩展推理。我们在3个模型规模上评估了HybridAgent,涵盖数学、科学、医学、搜索和智能体推理的11个基准。与前沿LLM智能体和涵盖基于文本和潜在方法的智能体框架相比,HybridAgent持续将性能提升10.4%,同时实现35.5%-54.7%的token减少、1.8x-2.6x的更快推理和2.7x-3.7x的成本节省。代码和数据可在https://github.com/togethercomputer/HybridAgent获取。
该研究提出了一种结合潜在推理与文本交互的智能体架构,在保持工具使用能力的同时提升推理效率和透明度,并在多个基准上验证了性能与效率的显著提升,对智能体推理领域有重要参考价值。
How can we build an agent that thinks beyond human language, yet still acts through it in the external environment? Modern LLM agents still reason and interact through text, while latent reasoning offers an efficient internal medium but lacks native tool access and reasoning transparency. We bridge these two directions with Hybrid Reasoning Agents (HybridAgents), which dynamically navigate between latent reasoning and text-based interaction throughout a unified generation process. Architecturally, a lightweight HybridLink enables seamless transitions between text and latent modes, while the agent's continuous working memory preserves lossless hybrid context across multiple turns. These designs preserve tool-integrated agentic capabilities while making latent thoughts directly inspectable. Building on this architecture, we further develop dedicated post-training algorithms for hybrid reasoning: HybridSFT stabilizes tool-integrated hybrid generation by teaching the backbone to coordinate with HybridLink, then HybridRL scales reasoning by learning when to think in latent space and when to act through text. We evaluate HybridAgent at 3 model scales across 11 benchmarks covering mathematics, science, medicine, search, and agentic reasoning. Compared with frontier LLM Agents and agentic frameworks spanning both text-based and latent methods, HybridAgent consistently improves performance by 10.4%, while delivering 35.5%-54.7% token reduction, 1.8x-2.6x faster inference, and 2.7x-3.7x cost savings. Code and data are available at https://github.com/togethercomputer/HybridAgent.