Transformer-Based Masked Diffusion Models Provably Learn Distributions with Latent Structure

📄 arXiv: 2610.12544v1 📥 PDF

作者: Jingda Wu, Changxiao Cai

分类: cs.LG, cs.IT, math.ST, stat.ML

发布日期: 2026-10-08


💡 一句话要点

提出基于Transformer的掩蔽扩散模型以解决分布学习问题

🎯 匹配领域: 支柱四:生成式动作 (Generative Motion)

关键词: 掩蔽扩散模型 Transformer 隐藏马尔可夫树 分布学习 样本复杂度 潜在结构 并行采样

📋 核心要点

  1. 现有的掩蔽扩散模型在并行采样和有限样本学习中存在并行化误差和估计误差,导致统计界限受维度诅咒影响。
  2. 本文提出了一种基于Transformer的掩蔽扩散模型,通过隐藏马尔可夫树的混合模型来学习潜在结构,降低样本复杂度。
  3. 研究结果表明,该模型在KL散度下实现了高效的采样,所需训练样本数显著低于传统方法,验证了其在真实数据上的有效性。

📝 摘要(中文)

掩蔽扩散模型(MDMs)通过学习的掩蔽预测器并行逐步解掩码生成离散数据。现有理论将并行采样引起的并行化误差与有限样本学习的估计误差分开处理,导致统计界限随着序列长度和词汇大小的增加而急剧上升。本文建立了端到端的统计保证,表明基于Transformer的MDMs能够学习具有潜在结构的分布,其样本复杂度由潜在结构决定。具体而言,我们通过隐藏马尔可夫树的混合模型来捕捉组件内的潜在依赖关系和组件间的异质性。当数据分布可以通过这种混合模型良好近似时,基于Transformer的MDM在KL散度下以$ ilde{O}(LK_{ ext{par}}/ ext{ε})$的训练样本数实现$ ext{ε}$-准确采样,$K_{ ext{par}}$是与序列长度、词汇大小、隐藏状态数和混合组件数多项式相关的。该模型及采样过程无需了解树的拓扑或组件参数,能够自动适应未知的潜在结构。

🔬 方法详解

问题定义:本文解决的是掩蔽扩散模型在生成离散数据时面临的并行化误差和估计误差问题。现有方法在处理高维数据时,统计界限随着序列长度和词汇大小的增加而迅速上升,导致样本复杂度过高。

核心思路:论文的核心思路是通过建立基于Transformer的掩蔽扩散模型,结合隐藏马尔可夫树的混合模型,来有效学习具有潜在结构的分布。这种设计能够自动适应未知的潜在结构,降低样本复杂度。

技术框架:整体架构包括一个Transformer网络和一个并行解掩码的采样过程。Transformer网络负责学习数据的潜在结构,而采样过程则通过学习的掩蔽预测器生成离散数据。

关键创新:最重要的技术创新在于建立了端到端的统计保证,表明基于Transformer的MDMs能够在样本复杂度上优于传统方法,且无需了解树的拓扑或组件参数。

关键设计:关键设计包括使用隐藏马尔可夫树的混合模型来捕捉潜在依赖关系,设置适当的损失函数以优化掩蔽预测器,并确保Transformer网络的结构能够有效处理高维数据。具体的参数设置和网络结构细节在论文中进行了详细描述。

🖼️ 关键图片

img_0
img_1
img_2

📊 实验亮点

实验结果显示,基于Transformer的掩蔽扩散模型在KL散度下实现了$ ext{ε}$-准确采样,所需训练样本数为$ ilde{O}(LK_{ ext{par}}/ ext{ε})$,显著低于传统方法,验证了其在真实数据上的有效性。

🎯 应用场景

该研究的潜在应用领域包括自然语言处理、图像生成和其他需要生成离散数据的任务。通过有效学习潜在结构,模型能够在实际应用中提高生成数据的质量和效率,具有广泛的实际价值和未来影响。

📄 摘要(原文)

Masked diffusion models (MDMs) generate discrete data by iteratively unmasking multiple tokens in parallel using a learned mask predictor. Their output carries two errors: parallelization error due to parallel sampling, and estimation error from the mask predictor learned with finite samples. Existing theory treats these errors separately, and the available statistical bounds typically scale with the number $V^L$ of length-$L$ sequences over a vocabulary of size $V$, suffering from the curse of dimensionality. In this work, we establish end-to-end statistical guarantees showing that transformer-based MDMs learn structured distributions with a sample complexity governed by their latent structure. Specifically, we model this structure through mixtures of hidden Markov trees, which capture latent dependencies within components and heterogeneity across components. When the data distribution is well approximated by such a mixture, a transformer-based MDM with parallel unmasking schedules achieves $\varepsilon$-accurate sampling in KL divergence with $\widetilde{O}(LK_{\mathrm{par}}/\varepsilon)$ training samples, where $K_{\mathrm{par}}$ is polynomial in $L$, $V$, the number of hidden states, and the number of mixture components. The transformer network and sampling procedure require no knowledge of the tree topologies or component parameters, thereby adapting to the unknown latent structure automatically. Overall, our results provide theoretical justification for the empirical effectiveness of MDMs on real-world data.