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

System-1.5 推理:在语言空间与潜在空间中利用动态捷径的遍历

System-1.5 Reasoning: Traversal in Language and Latent Spaces with Dynamic Shortcuts

DIRO & Institut Courtois, Université de Montréal(蒙特利尔大学DIRO与Courtois研究所);Mila - Quebec AI Institute(魁北克人工智能研究所);Canada CIFAR AI Chair(加拿大CIFAR人工智能主席)

Xiaoqiang Wang, Suyuchen Wang, Yun Zhu, Bang Liu

AI总结:

提出自适应推理框架 System-1.5 Reasoning,通过在潜在空间引入模型深度捷径和步骤捷径动态分配计算量,在保持性能的同时大幅加速推理并减少 token 生成。

摘要:

思维链(CoT)推理使大型语言模型(LLMs)能够超越快速的 System-1 响应,转而进行深思熟虑的 System-2 推理。然而,这由于冗长的中间输出带来了显著低效的问题。近期的潜在空间推理方法通过在隐藏状态上操作而无需解码为语言来提升效率,但它们均匀地对待所有步骤,未能区分关键推演与辅助步骤,导致计算资源的次优使用。在本文中,我们提出了 System-1.5 Reasoning,这是一种自适应推理框架,通过潜在空间中的捷径路径在推理步骤间动态分配计算量。具体而言,System-1.5 Reasoning 引入了两种动态捷径。模型深度捷径(DS)通过轻量级适配器分支对非关键 token 进行提前退出,从而沿垂直深度自适应推理,同时允许关键 token 继续穿过更深的 Transformer 层。步骤捷径(SS)在解码步骤间重用隐藏状态以跳过琐碎步骤,并在潜在空间中横向推理。训练 System-1.5 Reasoning 涉及两阶段自蒸馏过程:首先将自然语言 CoT 蒸馏为潜在空间连续思维,然后将全路径 System-2 潜在推理蒸馏为自适应捷径路径(System-1.5 Reasoning)。在推理任务上的实验证明了我们方法的卓越性能。例如,在 GSM8K 上,System-1.5 Reasoning 取得了与传统 CoT 微调方法相当的推理性能,同时将推理加速了 20 倍以上,并平均减少了 92.31% 的 token 生成。

英文摘要:

Chain-of-thought (CoT) reasoning enables large language models (LLMs) to move beyond fast System-1 responses and engage in deliberative System-2 reasoning. However, this comes at the cost of significant inefficiency due to verbose intermediate output. Recent latent-space reasoning methods improve efficiency by operating on hidden states without decoding into language, yet they treat all steps uniformly, failing to distinguish critical deductions from auxiliary steps and resulting in suboptimal use of computational resources. In this paper, we propose System-1.5 Reasoning, an adaptive reasoning framework that dynamically allocates computation across reasoning steps through shortcut paths in latent space. Specifically, System-1.5 Reasoning introduces two types of dynamic shortcuts. The model depth shortcut (DS) adaptively reasons along the vertical depth by early exiting non-critical tokens through lightweight adapter branches, while allowing critical tokens to continue through deeper Transformer layers. The step shortcut (SS) reuses hidden states across the decoding steps to skip trivial steps and reason horizontally in latent space. Training System-1.5 Reasoning involves a two-stage self-distillation process: first distilling natural language CoT into latent-space continuous thought, and then distilling full-path System-2 latent reasoning into adaptive shortcut paths (System-1.5 Reasoning). Experiments on reasoning tasks demonstrate the superior performance of our method. For example, on GSM8K, System-1.5 Reasoning achieves reasoning performance comparable to traditional CoT fine-tuning methods while accelerating inference by over 20x and reducing token generation by 92.31% on average.

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

↑