2026-01-09 · 专家 · 自然语言处理 · 机器学习

RelayLLM: Efficient Reasoning via Collaborative Decoding

RelayLLM通过token级别的协作解码,有效地结合了小型语言模型(SLM)的效率和大型语言模型(LLM)的推理能力,显著提高了推理效率。

更新于 2026-01-22。作者:Chengsong Huang、Tong Zheng、Langlin Huang、Jinyuan Li、Haolin Liu、Jiaxin Huang。

中文摘要

大型语言模型(LLMs)在复杂推理方面的应用常常受到高计算成本和延迟的限制,而资源高效的中小型语言模型(SLMs)通常缺乏必要的推理能力。现有的协作方法,如级联或路由,通过将整个查询卸载到LLMs上,在SLM能够处理大部分推理步骤时,导致显著的计算浪费。为了解决这个问题,我们提出了RelayLLM,这是一个通过令牌级协作解码进行高效推理的新框架。与路由器不同,RelayLLM使SLM能够作为一个主动控制器,通过特殊命令动态调用LLM处理关键令牌,有效地“中继”生成过程。我们引入了一个两阶段训练框架,包括预热和组相对策略优化(GRPO),以教会模型在独立性与战略求助之间取得平衡。在六个基准测试上的实证结果表明,RelayLLM实现了平均准确率49.52%,有效地缩小了两种模型之间的性能差距。值得注意的是,这是通过只调用LLM处理总生成令牌的1.07%来实现的,与性能匹配的随机路由器相比,成本降低了98.2%。

英文摘要

Large Language Models (LLMs) for complex reasoning is often hindered by high computational costs and latency, while resource-efficient Small Language Models (SLMs) typically lack the necessary reasoning capacity. Existing collaborative approaches, such as cascading or routing, operate at a coarse granularity by offloading entire queries to LLMs, resulting in significant computational waste when the SLM is capable of handling the majority of reasoning steps. To address this, we propose RelayLLM, a novel framework for efficient reasoning via token-level collaborative decoding. Unlike routers, RelayLLM empowers the SLM to act as an active controller that dynamically invokes the LLM only for critical tokens via a special command, effectively "relaying" the generation process. We introduce a two-stage training framework, including warm-up and Group Relative Policy Optimization (GRPO) to teach the model to balance independence with strategic help-seeking. Empirical results across six benchmarks demonstrate that RelayLLM achieves an average accuracy of 49.52%, effectively bridging the performance gap between the two models. Notably, this is achieved by invoking the LLM for only 1.07% of the total generated tokens, offering a 98.2% cost reduction compared to performance-matched random routers.

解读

一句话总结

RelayLLM通过token级别的协作解码,有效地结合了小型语言模型(SLM)的效率和大型语言模型(LLM)的推理能力,显著提高了推理效率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt