KaVa:通过压缩KV缓存蒸馏实现潜在推理
KaVa: Latent Reasoning via Compressed KV-Cache Distillation
AI总结:
KaVa通过压缩KV缓存蒸馏实现潜在推理,利用连续潜在标记的表示灵活性对齐逐步KV轨迹,有效提升复杂自然语言推理任务的性能。
摘要:
大型语言模型(LLMs)在多步推理问题中通过显式链式思维(CoT)表现出色,但冗长的跟踪记录导致显著的计算成本和内存开销,并常带有冗余和风格化 artifacts。潜在推理作为一种高效替代方案,内部化了思维过程,但缺乏关键监督,限制了其在复杂自然语言推理轨迹上的效果。本文提出KaVa,首个通过从教师的压缩KV缓存中蒸馏知识到潜在推理学生,利用连续潜在标记的表示灵活性对齐逐步KV轨迹的框架。我们证明了压缩KV缓存中抽象、无结构的知识,尽管缺乏直接的token对应关系,可以作为潜在推理学生的丰富监督信号。实验表明,该方法在强潜在基线上表现一致,从纯公式到自然语言轨迹的退化显著减小,并能扩展到更大的backbone同时保持效率。这些结果确立了压缩KV缓存蒸馏作为潜在推理的可扩展监督信号,结合了CoT训练教师的准确性与潜在推理的效率和部署性。
英文摘要:
Large Language Models (LLMs) excel at multi-step reasoning problems with explicit chain-of-thought (CoT), but verbose traces incur significant computational costs and memory overhead, and often carry redundant, stylistic artifacts. Latent reasoning has emerged as an efficient alternative that internalizes the thought process, but it suffers from a critical lack of supervision, limiting its effectiveness on complex, natural-language reasoning traces. In this work we propose KaVa, the first framework that bridges this gap by distilling knowledge directly from a compressed KV-cache of the teacher into a latent-reasoning student via self-distillation, leveraging the representational flexibility of continuous latent tokens to align stepwise KV trajectories. We show that the abstract, unstructured knowledge within compressed KV-cache, which lacks direct token correspondence, can serve as a rich supervisory signal for a latent reasoning student. Empirically, the approach consistently outperforms strong latent baselines, exhibits markedly smaller degradation from equation-only to natural-language traces, and scales to larger backbones while preserving efficiency. These results establish compressed KV-cache distillation as a scalable supervision signal for latent reasoning, combining the accuracy of CoT-trained teachers with the efficiency and deployability of latent inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。