基于归一化流的潜在推理方法 / Latent Reasoning with Normalizing Flows
1️⃣ 一句话总结
本文提出NF-CoT框架,通过在大语言模型中嵌入归一化流模型,将链式思维推理过程转化为连续、高效的潜在思维状态,在保持传统自回归生成优势(如从左到右解码、概率采样、键值缓存兼容等)的同时,显著提升代码生成任务的通过率并降低中间推理成本。
Large language models often improve reasoning by generating explicit chain-of-thought (CoT), demonstrating the importance of intermediate computation. However, textual CoT forces this computation through a discrete, serial, and communication-oriented token stream: each reasoning step must be verbalized before the model can proceed, even when the underlying update is semantic, uncertain, or only partially formed. Latent reasoning offers a higher-bandwidth alternative by performing intermediate computation in compact continuous states before committing to text. Yet existing latent-reasoning methods often sacrifice key advantages that make CoT effective in autoregressive language models, including native left-to-right generation, probabilistic sampling, compatibility with KV-cache decoding, and tractable likelihood estimation. We propose NF-CoT, a latent reasoning framework that preserves these advantages by modeling continuous thoughts with normalizing flows. NF-CoT instantiates a TARFlow-style normalizing flow inside the LLM backbone, defining a tractable probability model over compact continuous thoughts distilled from explicit CoT. Continuous-thought positions are generated by an NF head, while text positions are generated by the standard LM head within the same causal stream. This design provides exact likelihoods for latent thoughts, enables probabilistic left-to-right decoding with the original KV cache, and supports direct policy-gradient optimization in the latent reasoning space. On code-generation benchmarks, NF-CoT improves pass rates over explicit-CoT and prior latent-reasoning baselines while substantially reducing intermediate-reasoning cost.
基于归一化流的潜在推理方法 / Latent Reasoning with Normalizing Flows
本文提出NF-CoT框架,通过在大语言模型中嵌入归一化流模型,将链式思维推理过程转化为连续、高效的潜在思维状态,在保持传统自回归生成优势(如从左到右解码、概率采样、键值缓存兼容等)的同时,显著提升代码生成任务的通过率并降低中间推理成本。
源自 arXiv: 2606.06447