通过离散扩散实现LLM的无损加速
研究论文 · 2026/09/08
大型语言模型(LLM)的成功很大程度上归功于下一个词元预测(NTP),但其自回归(AR)结构需要缓慢的顺序词元生成。为了克服这一瓶颈,我们引入了扩散增强LLM,这是一种新模型类别,它定义了AR模型分布,同时使用扩散从该分布中并行抽取多个词元。我们将这些模型的参数解耦为两组:使用标准NTP目标训练的AR权重,以及用于同时生成多个词元的轻量级扩散权重。扩散权重通过简单的扩散蒸馏阶段学习,该阶段对现有LLM训练流程的额外开销可忽略不计。我们还引入了Ψ-Spec,一个采样器家族,能够在固定上下文长度下实现无损加速和推理时扩展。与推测解码不同,我们的方法不需要单独的草稿模型。与扩散LLM(d-LLM)不同,它在不牺牲底层AR模型质量的情况下加速生成。由此产生的模型称为Uno,可以从头训练或通过增强现有开放权重AR LLM构建。Uno在每个评估的批量大小下都比领先的推测解码方法实现更高的吞吐量,并相对于基础AR模型提供高达3倍的加速,包括在设备支持的最大批量大小下。值得注意的是,我们的8B Uno模型在代理工具使用、编码和长上下文推理的所有评估基准上,都优于领先的开放d-LLM——26B DiffusionGemma和专有的Mercury 2。我们在https://s-sahoo.github.io/uno/发布代码和检查点。
该论文提出了一种新颖的扩散增强LLM方法,在不损失质量的前提下实现并行生成,显著加速推理,并提供了与推测解码和d-LLM的全面对比,展示了实际优势,对高效LLM推理领域具有重要价值。
Large Language Models (LLMs) owe much of their success to next-token prediction (NTP), but their autoregressive (AR) structure requires slow, sequential token generation. To overcome this bottleneck, we introduce diffusion-augmented LLMs, a new class of models that defines an AR model distribution while using diffusion to draw multiple tokens in parallel from that distribution. We decouple the parameters of these models into two sets: AR weights, trained using the standard NTP objective, and lightweight diffusion weights, trained to generate multiple tokens simultaneously. The diffusion weights are learned through a simple Diffusion Distillation phase that adds negligible overhead to existing LLM training pipelines. We also introduce Ψ-Spec, a family of samplers that enables lossless acceleration and inference-time scaling at a fixed context length. Unlike speculative decoding, our method requires no separate draft model. Unlike diffusion LLMs (d-LLMs), it accelerates generation without sacrificing the quality of the underlying AR model. The resulting models, called Uno, can be trained from scratch or built by augmenting existing open-weight AR LLMs. Uno achieves higher throughput than leading speculative-decoding methods at every evaluated batch size and delivers up to 3times speedups over the base AR model, including at the largest batch size supported by the device. Notably, our 8B Uno model outperforms the leading open d-LLM, the 26B DiffusionGemma, and the proprietary Mercury 2 across all evaluated benchmarks in agentic tool use, coding, and long-context reasoning. We release code and checkpoints at: https://s-sahoo.github.io/uno/