arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.22852cs.LGcs.AI
收藏

编码器-解码器扩散语言模型,实现高效训练与推理

Encoder-Decoder Diffusion Language Models for Efficient Training and Inference

Department of Computer Science, Cornell University(计算机科学系,康奈尔大学)

Marianne Arriola, Yair Schiff, Hao Phung, Aaron Gokaslan, Volodymyr Kuleshov

AI总结:

本文提出编码器-解码器扩散语言模型E2D2,分离干净令牌表示与去噪计算,加速推理与训练,在摘要、翻译和数学推理上取得更优质量-吞吐量权衡。

摘要:

离散扩散模型支持并行令牌采样,因此推理速度比自回归方法更快。然而,先前的扩散模型采用仅解码器架构,这要求采样算法在每个去噪步骤中调用整个网络,导致计算成本高昂。我们的关键见解是,离散扩散模型执行两种类型的计算:1) 表示干净令牌,2) 对损坏令牌进行去噪,这使我们能够为每项任务使用单独的模块。我们提出了一种编码器-解码器架构来加速离散扩散推理,该架构依靠编码器表示干净令牌,并使用轻量级解码器迭代细化噪声序列。我们还表明,这种架构能够加快块扩散模型的训练,块扩散模型将序列划分为块以提高质量,并常用于扩散语言模型推理。我们引入了一个高效编码器-解码器扩散(E2D2)框架,该框架包含一个具有专门训练和采样算法的架构,并表明E2D2在摘要生成、翻译和数学推理任务上实现了生成质量与推理吞吐量之间的优越权衡。我们在项目页面上提供了代码、模型权重和博客文章:https://m-arriola.com/e2d2

英文摘要:

Discrete diffusion models enable parallel token sampling for faster inference than autoregressive approaches. However, prior diffusion models use a decoder-only architecture, which requires sampling algorithms that invoke the full network at every denoising step and incur high computational cost. Our key insight is that discrete diffusion models perform two types of computation: 1) representing clean tokens and 2) denoising corrupted tokens, which enables us to use separate modules for each task. We propose an encoder-decoder architecture to accelerate discrete diffusion inference, which relies on an encoder to represent clean tokens and a lightweight decoder to iteratively refine a noised sequence. We also show that this architecture enables faster training of block diffusion models, which partition sequences into blocks for better quality and are commonly used in diffusion language model inference. We introduce a framework for Efficient Encoder-Decoder Diffusion (E2D2), consisting of an architecture with specialized training and sampling algorithms, and we show that E2D2 achieves superior trade-offs between generation quality and inference throughput on summarization, translation, and mathematical reasoning tasks. We provide the code, model weights, and blog post on the project page: https://m-arriola.com/e2d2

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

↑