arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.20641cs.CL
收藏

利用模型合并解锁高效的长到短大语言模型推理

Unlocking Efficient Long-to-Short LLM Reasoning with Model Merging

Huawei Noah’s Ark Lab(华为诺亚实验室)

Han Wu, Yuxuan Yao, Shuqi Liu, Zehua Liu, Xiaojin Fu, Xiongwei Han, Xing Li, Hui-Ling Zhen, Tao Zhong, Mingxuan Yuan

AI总结:

本研究提出利用模型合并实现长到短推理,将系统1快速思考与系统2深度推理结合,在1.5B至32B模型上平均响应长度减少55%,同时保持或提升性能,有效解决过度思考问题。

摘要:

大语言模型(LLM)从系统1到系统2推理的转变,通过深思熟虑的迭代思考在处理复杂任务方面取得了显著进展。然而,这种进步往往以效率为代价,因为模型倾向于过度思考,生成冗余的推理步骤,而输出质量并未成比例提升。长到短(L2S)推理已成为解决这一挑战的有前景的方案,旨在平衡推理深度与实际效率。尽管现有方法,如监督微调(SFT)、强化学习(RL)和提示工程,已显示出潜力,但它们要么计算成本高昂,要么不稳定。相比之下,模型合并提供了一种成本效益高且稳健的替代方案,通过整合系统1模型的快速思考能力与系统2模型的系统性推理。在本工作中,我们对模型合并用于L2S推理进行了全面的实证研究,探索了多种方法,包括基于任务向量、基于SVD和基于激活信息的合并。我们的实验表明,模型合并可以将平均响应长度减少高达55%,同时保持甚至提升基线性能。我们还通过对1.5B/7B/14B/32B模型的广泛评估,发现了模型规模与合并效能之间的强相关性。此外,我们研究了合并模型自我批评和自我纠正的能力,以及其基于任务复杂性的自适应响应长度。我们的发现凸显了模型合并作为L2S推理的一种高效且有效的范式,为过度思考问题提供了实用解决方案,同时保持了系统2推理的稳健性。本工作可在GitHub上获取:https://github.com/hahahawu/Long-to-Short-via-Model-Merging。

英文摘要:

The transition from System 1 to System 2 reasoning in large language models (LLMs) has marked significant advancements in handling complex tasks through deliberate, iterative thinking. However, this progress often comes at the cost of efficiency, as models tend to overthink, generating redundant reasoning steps without proportional improvements in output quality. Long-to-Short (L2S) reasoning has emerged as a promising solution to this challenge, aiming to balance reasoning depth with practical efficiency. While existing approaches, such as supervised fine-tuning (SFT), reinforcement learning (RL), and prompt engineering, have shown potential, they are either computationally expensive or unstable. Model merging, on the other hand, offers a cost-effective and robust alternative by integrating the quick-thinking capabilities of System 1 models with the methodical reasoning of System 2 models. In this work, we present a comprehensive empirical study on model merging for L2S reasoning, exploring diverse methodologies, including task-vector-based, SVD-based, and activation-informed merging. Our experiments reveal that model merging can reduce average response length by up to 55% while preserving or even improving baseline performance. We also identify a strong correlation between model scale and merging efficacy with extensive evaluations on 1.5B/7B/14B/32B models. Furthermore, we investigate the merged model's ability to self-critique and self-correct, as well as its adaptive response length based on task complexity. Our findings highlight model merging as a highly efficient and effective paradigm for L2S reasoning, offering a practical solution to the overthinking problem while maintaining the robustness of System 2 reasoning. This work can be found on Github https://github.com/hahahawu/Long-to-Short-via-Model-Merging.

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

↑