arXiv:2511.04647cs.LG2025-11被引 20

提出最优采样调度方法,让掩码扩散语言模型实现近似无损的并行生成。

Optimal Inference Schedules for Masked Diffusion Models

  • 建立采样误差与单变量函数逼近理论的精确联系,揭示最优调度本质。
  • 在自然分布下证明可仅用 O(log n) 步完成并行采样且性能无明显下降。
  • 适用于对生成效率有要求、需平衡速度与质量的研究者与应用开发者。

标准自回归大语言模型的推理过程固有的顺序性导致推理时间长且成本高。为解决此问题,研究者提出了扩散语言模型,其中掩码扩散模型(MDM)最为成功。该模型可无序采样词元,理论上能一次性并行生成多个词元。然而,对这类模型在不显著降低采样性能前提下能实现多大程度并行采样的严格理解仍十分有限。先前工作(Li and Cai)虽给出初步界限,但对许多自然分布并不紧致。本文针对任意分布和任意去掩码调度,给出了真实分布与采样分布间期望差异的精确刻画,揭示其与单变量函数逼近理论的优雅关联。基于此,我们推导出一系列新的下界和上界。尽管该理论可给出任意分布下的最优去掩码调度,但我们证明:在缺乏分布先验知识的情况下,一般无法超越该最优调度,即使在看似简单的场景中亦然。然而,我们还提出了基于基分布信息论性质(总相关性和对偶总相关性)的新上界和新采样调度,表明在某些自然设定下,仅需 O(log n) 步即可实现并行采样且性能无明显损失,其中 n 为序列总长度。

原文摘要 · Abstract (English)

A major bottleneck of standard auto-regressive large language models is that their inference process is inherently sequential, resulting in very long and costly inference times. To circumvent this, practitioners proposed a class of language models called diffusion language models, of which the masked diffusion model (MDM) is the most successful. The MDM is able to sample tokens out-of-order and, ostensibly, many tokens at once and in parallel. However, there is very limited rigorous understanding of how much parallel sampling these models can perform without noticeable degradation in their sampling performance. Prior work of Li and Cai obtained some preliminary bounds, but these are not tight for many natural classes of distributions. In this work, we give a new, exact characterization of the expected divergence between the true distribution and the sampled distribution, for any distribution and any unmasking schedule for the sampler, showing an elegant connection to the theory of univariate function approximation. By leveraging this connection, we then attain a number of novel lower and upper bounds for this problem. While the connection to function approximation in principle gives the optimal unmasking schedule for any distribution, we show that it is in general impossible to compete with it without strong a priori knowledge of the distribution, even in seemingly benign settings. However, we also demonstrate new upper bounds and new sampling schedules in terms of well-studied information-theoretic properties of the base distribution, namely, its total correlation and dual total correlation, which show that in some natural settings, one can sample in $O(log n)$ steps without any visible loss in performance, where $n$ is the total sequence length.

扩散模型并行生成采样调度语言模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。