大流量语言模型
研究论文 · 2026/10/21
连续流语言模型提供了一条并行生成的路径,并具备离散扩散所缺乏的控制和加速工具,但在十亿参数规模上构建它们的高效技术仍不成熟。我们提出了Lafa(大型流语言模型),一种快速、高性能的流语言模型,以数据高效的方式扩展到80亿参数。Lafa是一种分块流模型,在前缀上使用因果注意力,在每个块内使用双向异步流。这种设计通过适配预训练自回归(AR)模型实现高效训练,并通过前缀缓存和分块并行解码实现快速推理。我们在0.5B、7B和8B规模上训练Lafa,使用的token少于300亿,比之前的扩散模型更高效,并在指令遵循、推理和编码任务上评估,学习到的流匹配或超过了AR的质量,并且可以蒸馏成流映射以实现一步和少步生成。值得注意的是,流训练通过多token预测效应保留甚至提高了预训练AR的能力,我们利用这一点在自推测解码方案中,在单个模型内自回归地验证基于流的草稿。这在可比质量下实现了AR模型2.54倍的吞吐量,优于多token预测和离散扩散方法。我们的发现表明,连续流可以作为语言建模的可扩展基础。
该论文提出了一种可扩展的连续流语言模型,在80亿参数规模上实现了高效训练和快速推理,性能媲美自回归模型,并显著提升吞吐量,为语言建模提供了新的可扩展基础,值得关注。
Continuous flow language models offer a path to parallel generation with tools for control and acceleration unavailable to discrete diffusion, yet effective techniques for building them at the billion-parameter scale remain less established. We present Lafa (Large flow language model), a fast, high-performing flow language model scaled to 8B parameters in a data-efficient manner. Lafa is a blockwise flow model with causal attention on the prefix and bidirectional, asynchronous flow within each block. This design enables efficient training by adapting pretrained autoregressive (AR) models and fast inference via prefix caching and blockwise parallel decoding. We train Lafa at 0.5B, 7B, and 8B scales with fewer than 30B tokens, more efficient than previous diffusion models, and evaluate it on instruction following, reasoning, and coding, where the learned flow matches or surpasses the quality of AR and can be distilled into flow maps for one- and few-step generation. Notably, flow training preserves or even improves pretrained AR capabilities via a multi-token prediction effect, which we leverage in a self-speculative decoding scheme that verifies flow-based drafts autoregressively within a single model. This yields 2.54x the throughput of an AR model at comparable quality, outperforming multi-token prediction and discrete diffusion methods. Our findings show that continuous flows can serve as a scalable foundation for language modeling.