Tandem: 大小语言模型协同以实现高效的推理
Tandem: Riding Together with Large and Small Language Models for Efficient Reasoning
AI总结:
Tandem通过结合大语言模型和小语言模型,减少计算成本并提升推理质量,实验表明其在数学推理和代码生成任务中性能优越。
摘要:
近期大语言模型(LLMs)的进步推动了需要推理的推理范式发展,其中模型在生成最终答案前进行显式的逐步推理。尽管此类方法提高了回答质量和可解释性,但长生成序列带来了显著的计算开销。本文提出Tandem,一种新的协同框架,通过结合大和小语言模型(LLMs和SLMs)实现高质量推理并显著降低计算成本。具体而言,LLM作为战略协调者,高效生成一组关键推理洞察,然后用于指导更高效的SLM执行完整推理过程并交付最终响应。为平衡效率和可靠性,Tandem引入了一种成本感知的终止机制,能够自适应确定何时已积累足够的推理指导,从而在LLM生成过程中实现提前停止。在数学推理和代码生成基准测试中,Tandem将计算成本降低了约40%,同时在性能上优于或与独立LLM推理相媲美。此外,经过一个领域训练的充分性分类器可以有效地转移到其他领域而无需重新训练。代码可在:https://github.com/Applied-Machine-Learning-Lab/ACL2026_Tandem获取。
英文摘要:
Recent advancements in large language models (LLMs) have catalyzed the rise of reasoning-intensive inference paradigms, where models perform explicit step-by-step reasoning before generating final answers. While such approaches improve answer quality and interpretability, they incur substantial computational overhead due to the prolonged generation sequences. In this paper, we propose Tandem, a novel collaborative framework that synergizes large and small language models (LLMs and SLMs) to achieve high-quality reasoning with significantly reduced computational cost. Specifically, the LLM serves as a strategic coordinator, efficiently generating a compact set of critical reasoning insights. These insights are then used to guide a smaller, more efficient SLM in executing the full reasoning process and delivering the final response. To balance efficiency and reliability, Tandem introduces a cost-aware termination mechanism that adaptively determines when sufficient reasoning guidance has been accumulated, enabling early stopping of the LLM's generation. Experiments on mathematical reasoning and code generation benchmarks demonstrate that Tandem reduces computational costs by approximately 40% compared to standalone LLM reasoning, while achieving superior or competitive performance. Furthermore, the sufficiency classifier trained on one domain transfers effectively to others without retraining. The code is available at: https://github.com/Applied-Machine-Learning-Lab/ACL2026_Tandem.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。