Aha.
正在载入中英对照阅读…

arXiv:2605.29607 · 中英对照阅读

面向掩码扩散语言模型(MDLMs)的簇级注意力引导并行解码

Cluster-Level Attention-Guided Parallel Decoding for Masked Diffusion Language Models

Heqiang Qi、Wei Huang、Mingyuan Bai、Xiangming Meng

中文速览

掩码扩散语言模型能同时预测多个位置,但现有解码方法通常逐个决定提交哪些词,因而可能错过成片并行生成的机会。CLAD把相邻且预测置信度高的词合成一个“置信簇”,再利用模型已有的注意力信息判断不同簇之间是否相互牵制,只同时提交彼此兼容的簇。实验显示,在数学推理和代码生成任务中,它比常规解码快 1.77 到 8.47 倍,多数设置下准确率大体相当。结果说明,把解码单位从单个词扩大到可靠的连续片段,并兼顾片段间的依赖,有望让扩散语言模型生成得更快而不明显牺牲效果。

摘要

掩码扩散语言模型(MDLMs)通过在每个去噪步预测所有被掩码的位置,实现并行解码,但现有免训练采样器通常以词元级粒度决定提交哪些位置。我们重新审视这种粒度,并观察到,可靠的预测往往呈现为连续的高置信度跨度,这表明并行提交的单元可以大于单个词元。我们首先将相邻的高置信度候选项归为置信度诱导簇(CIC),作为跨度级更新单元。随后,我们利用同一前向传播中的自注意力图估计簇间依赖,从而能够以冲突感知的方式选择彼此兼容的 CIC 进行并行提交。由此,我们提出 CLAD(簇级注意力引导解码),一种面向 MDLMs 的免训练簇级解码器。在 LLaDA 和 Dream 模型系列上,针对四项推理与代码生成基准的实验表明,与原始解码相比,CLAD 实现了 $1.77\times$–$8.47\times$ 的加速,同时在大多数设置下保持了大体相当的任务准确率。11 1 代码已发布于 https://github.com/ziyigu2004/CLAD】【。

Masked diffusion language models (MDLMs) enable parallel decoding by predicting all masked positions at each denoising step, yet existing training-free samplers usually decide which positions to commit at token-level granularity. We revisit this granularity and observe that reliable predictions often emerge as contiguous high-confidence spans, suggesting that the unit of parallel commitment can be larger than a single token. We first group adjacent high-confidence candidates into confidence-induced clusters (CICs) as span-level update units. We then use self-attention maps from the same forward pass to estimate inter-cluster dependencies, enabling conflict-aware selection of mutually compatible CICs for parallel commitment. This yields CLAD (Cluster-Level Attention-Guided Decoding), a training-free cluster-level decoder for MDLMs. Experiments on LLaDA and Dream model families across four reasoning and code-generation benchmarks show that CLAD achieves $1.77\times$ – $8.47\times$ speedups over Vanilla decoding while maintaining broadly comparable task accuracy in most settings. 11 1 Code is released at https://github.com/ziyigu2004/CLAD.

术语表

Masked diffusion language models (MDLMs)
掩码扩散语言模型(MDLMs)
autoregressive language models
自回归语言模型
training-free sampler
免训练采样器
parallel decoding
并行解码
denoising step
去噪步
decoding granularity
解码粒度
token-level granularity
词元级粒度
span-level update unit
跨度级更新单元
confidence-induced cluster (CIC)
置信度诱导簇(CIC)
high-confidence span
高置信度跨度
self-attention map
自注意力图
inter-cluster dependency
簇间依赖
dependency conflict
依赖冲突
conflict graph
冲突图
maximum-weight set
最大权重集合
Cluster-Level Attention-Guided Decoding (CLAD)
簇级注意力引导解码(CLAD)
Vanilla decoding
原始解码
confidence-based decoding
基于置信度的解码
uncertainty-based method
基于不确定性的算法
entropy-based selection
基于熵的选择
margin-based confidence
基于边际的置信度
distributional stability
分布稳定性
D3PM
D3PM
continuous-time Markov chain
连续时间马尔可夫链
LLaDA
LLaDA
Dream
Dream
Fast-dLLM
Fast-dLLM
EB-Sampler
EB-Sampler
KLASS
KLASS
DAPD
DAPD
DAWN
DAWN