arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.05167cs.CLcs.AIcs.LG
收藏

RelayLLM: 通过协作解码实现高效推理

RelayLLM: Efficient Reasoning via Collaborative Decoding

Washington University in St. Louis(华盛顿大学圣路易斯分校);University of Maryland(马里兰大学);University of Virginia(弗吉尼亚大学)

Chengsong Huang, Tong Zheng, Langlin Huang, Jinyuan Li, Haolin Liu, Jiaxin Huang

AI总结:

RelayLLM通过令牌级协作解码实现高效推理,利用SLM作为主动控制器,仅在必要时调用LLM,显著降低计算成本并提升推理性能。

摘要:

大型语言模型(LLMs)在复杂推理方面常常受到高计算成本和延迟的限制,而资源高效的小型语言模型(SLMs)通常缺乏必要的推理能力。现有的协作方法,如级联或路由,通过将整个查询卸载给LLMs进行粗粒度操作,导致当SLMs能够处理大多数推理步骤时产生显著的计算浪费。为此,我们提出了RelayLLM,一种通过令牌级协作解码实现高效推理的新框架。与路由器不同,RelayLLM使SLM能够作为主动控制器,通过特殊命令动态调用LLM仅处理关键令牌,从而有效

英文摘要:

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.

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

↑