arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.22075cs.CL
收藏

自回归模型与掩码扩散语言模型:受控比较

Autoregressive vs. Masked Diffusion Language Models: A Controlled Comparison

Independent Researcher(独立研究者)

Caio Vicentino

AI总结:

本文对比自回归与掩码扩散语言模型,发现两者在训练效率、收敛速度及生成多样性上存在差异,揭示不同训练策略的最优计算方案。

摘要:

我们对自回归(AR)和掩码扩散(MDLM)语言模型进行了受控的实证比较。两种模型均在相同数据(50M tokens from TinyStories)、相同计算预算(20,000 steps, batch size 32, sequence length 512)和相同硬件(NVIDIA H100 80GB)下训练,将生成范式作为唯一变量。我们报告了三个发现。首先,两种范式在训练吞吐量上相当(~50K tokens/second),其中MDLM仅需4.7%更多实际时间。其次,AR收敛更快并在第14,000步开始过拟合,而MDLM收敛更慢,但在第20,000步仍持续改进,暗示不同的计算最优训练制度。第三,对1,000个生成样本的定量多样性分析揭示了结构多样性与流畅度的权衡:AR生成流畅但重复的输出(99.8%以相同单词开头),而MDLM生成更多样化的叙述(93.4%独特的5词开头,更高的Distinct-n,更低的Self-BLEU),但偶尔存在语法不一致的问题。所有代码、训练检查点和数据管道均发布以确保可重复性。

英文摘要:

We present a controlled empirical comparison between autoregressive (AR) and masked diffusion (MDLM) language models. Both models are trained on identical data (50M tokens from TinyStories), identical compute budget (20,000 steps, batch size 32, sequence length 512), and identical hardware (NVIDIA H100 80GB), isolating the generation paradigm as the sole variable. We report three findings. First, both paradigms achieve comparable training throughput (~50K tokens/second), with MDLM requiring only 4.7% more wall-clock time. Second, AR converges faster and begins overfitting by step 14,000, while MDLM converges more slowly and is still improving at step 20,000, suggesting different compute-optimal training regimes. Third, quantitative diversity analysis over 1,000 generated samples reveals a structural diversity-fluency trade-off: AR produces fluent but repetitive outputs (99.8% begin with the same word), while MDLM generates more diverse narratives (93.4% unique 5-word openings, higher Distinct-n, lower Self-BLEU), at the cost of occasional grammatical inconsistencies. All code, trained checkpoints, and data pipelines are released for reproducibility.

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

↑