对比扩散与自回归模型生成文本差异,发现扩散模型更连贯多样但熵更低。
Differences in Text Generated by Diffusion and Autoregressive Language Models
- 通过控制实验分离训练目标与解码算法影响,揭示双向上下文是核心原因。
- 扩散模型生成文本熵更低,语义连贯性与多样性更高,尤其依赖解码策略。
- 适用于关注文本质量与生成机制的模型设计者及语言生成研究者。
扩散语言模型(DLMs)是自回归语言模型(ARMs)的有前景替代方案,但其生成文本的内在差异仍缺乏深入研究。我们实证发现,现成的DLMs表现出更低的n-gram熵、更高的语义连贯性和更高的语义多样性。为探究原因,我们开展受控实验,分离训练目标与解码算法的影响。结果表明,DLM的训练目标主要促进语义连贯性和多样性提升,对熵的影响较小;这些差异主要由双向上下文驱动,而输入掩码、标签掩码和加权函数等其他训练组件影响较弱。此外,熵的降低主要源于解码算法,尤其是基于置信度的重掩码策略。我们提供了该熵降低现象的理论解释。本研究揭示了DLMs与ARMs在文本生成中的关键机制差异,为未来DLMs的训练目标与解码算法设计提供指导。
原文摘要 · Abstract (English)
Diffusion language models (DLMs) are promising alternatives to autoregressive language models (ARMs), yet the intrinsic differences in their generated text remain underexplored. We first find empirically that off-the-shelf DLMs exhibit lower $n$-gram entropy, higher semantic coherence, and higher semantic diversity. To understand the cause, we conduct controlled experiments that decouple the effects of training objectives and decoding algorithms. Results suggest that the DLM training objective contributes to the increases in semantic coherence and semantic diversity, but has a minor influence on entropy. These differences are primarily driven by the bidirectional context; other components in the training objective, such as input masking, label masking, and the weighting function, have a much weaker influence. Further, our experiments demonstrate that the reduction in entropy stems from DLMs' decoding algorithms, particularly confidence-based remasking strategies. We provide a theoretical understanding for this entropy reduction phenomenon. Together, our work uncovers key mechanisms underlying the differences between DLMs and ARMs in text generation, and informs future design of training objectives and decoding algorithms in DLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。