arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2505.16552cs.CL
收藏

静思速思:动态潜在空间压缩LLM推理链

Think Silently, Think Fast: Dynamic Latent Compression of LLM Reasoning Chains

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);MiLM Plus, Xiaomi Inc.(小米公司)

Wenhui Tan, Jiaze Li, Jianzhong Ju, Zhenbo Luo, Ruihua Song, Jian Luan

AI总结:

CoLaR通过动态潜在空间压缩LLM推理链,实现高效推理与灵活速度调整,提升数学推理任务的准确率和效率。

摘要:

大型语言模型(LLMs)通过思维链(CoT)推理实现卓越性能,但这些逐token的推理链在计算上昂贵且低效。在本文中,我们介绍了压缩潜在推理(CoLaR),一种新颖的框架,通过两阶段训练方法在潜在空间中动态压缩推理过程。首先,在监督微调过程中,CoLaR超越了下一个token预测,通过引入辅助的下一个压缩嵌入预测目标进行扩展。此过程通过从预定义范围内随机采样的压缩因子合并连续token的嵌入,并训练一个专门的潜在头部来预测后续压缩嵌入的分布。其次,我们通过强化学习(RL)增强CoLaR,利用潜在头部的非确定性性质来探索多样的推理路径并利用更紧凑的路径。这种方法使CoLaR能够:i)在密集的潜在层面进行推理(即静默),显著减少推理链长度,以及ii)通过简单提示所需的压缩因子动态调整推理速度。在四个数学推理数据集上的广泛实验表明,CoLaR在可比的压缩比下比基于潜在的基线方法准确率提高了14.1%,并且仅在4.8%的性能下降情况下将推理链长度减少了53.3%。此外,当应用于更具挑战性的数学推理任务时,我们的RL增强的CoLaR在大幅减少潜在推理链长度82.8%的同时,展示了高达5.4%的性能提升。

英文摘要:

Large Language Models (LLMs) achieve superior performance through Chain-of-Thought (CoT) reasoning, but these token-level reasoning chains are computationally expensive and inefficient. In this paper, we introduce Compressed Latent Reasoning (CoLaR), a novel framework that dynamically compresses reasoning processes in latent space through a two-stage training approach. First, during supervised fine-tuning, CoLaR extends beyond next-token prediction by incorporating an auxiliary next compressed embedding prediction objective. This process merges embeddings of consecutive tokens using a compression factor randomly sampled from a predefined range, and trains a specialized latent head to predict distributions of subsequent compressed embeddings. Second, we enhance CoLaR through reinforcement learning (RL) that leverages the latent head's non-deterministic nature to explore diverse reasoning paths and exploit more compact ones. This approach enables CoLaR to: i) perform reasoning at a dense latent level (i.e., silently), substantially reducing reasoning chain length, and ii) dynamically adjust reasoning speed at inference time by simply prompting the desired compression factor. Extensive experiments across four mathematical reasoning datasets demonstrate that CoLaR achieves 14.1% higher accuracy than latent-based baseline methods at comparable compression ratios, and reduces reasoning chain length by 53.3% with only 4.8% performance degradation compared to explicit CoT method. Moreover, when applied to more challenging mathematical reasoning tasks, our RL-enhanced CoLaR demonstrates performance gains of up to 5.4% while dramatically reducing latent reasoning chain length by 82.8%.

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

↑