缩放和蒸馏文本嵌入以提升可扩散性

·

研究论文 · 2026/10/02

扩散语言模型(DLMs)为自回归语言生成提供了一种有前景的替代方案。近期连续DLMs的进展引发了一个实际问题:哪种嵌入能构成最佳潜在空间,即最具扩散性?为此,我们搜索了不同嵌入,发现将嵌入模型扩展到同一家族中更强的版本(T5到T5Gemma-1到T5Gemma-2)能大幅提升生成性能。但原始的T5Gemma-2嵌入仍非最优。它们区分性过强,甚至将合理替代词的嵌入也分开,使得生成对不完美采样很脆弱。因此,连续扩散往往无法到达任何有效嵌入,最终落在无效嵌入上。为解决此问题,我们将T5Gemma-2蒸馏到一个学生编码器,该编码器学习教师解码的概率作为软标签。从这种软标签学习使学生将替代嵌入拉近,同时保持编码-解码机制。蒸馏后的嵌入形成了更连通、更具扩散性的潜在空间,优于原始T5Gemma-2嵌入。结果,我们的中等规模DLM在OpenWebText上以真实文本熵达到Gen. PPL 17.8(真实文本PPL为15.4),在Gen. PPL上超过了GPT-2-M。

本文揭示了嵌入质量对扩散语言模型生成性能的关键影响,并提出了一种有效的蒸馏方法,使嵌入空间更适于扩散,从而在生成困惑度上超越GPT-2-M,为连续扩散语言模型的研究提供了新思路。

Diffusion language models (DLMs) offer a promising alternative to autoregressive (AR) language generation. Recent advances in continuous DLMs, which apply latent diffusion to continuous text embeddings, raise a practical question: which embedding makes the best latent space, i.e., the most diffusible? To answer this, we search through different embeddings and find that scaling the embedding model to stronger ones within the same family (T5 to T5Gemma-1 to T5Gemma-2) greatly improves generative performance. But the raw T5Gemma-2 embeddings are still not optimal. They are so discriminative that even the embeddings of plausible alternative words are separated, which makes the generation vulnerable to imperfect sampling. Consequently, continuous diffusion often fails to reach any of them and ends up at an invalid embedding instead. To address this, we distill T5Gemma-2 into a student encoder that learns the teacher's decoded probabilities as soft labels. Learning from such soft labels makes the student pull the alternative embeddings closer while maintaining the encoding-decoding mechanism. The distilled embeddings form a more connected and diffusible latent space, improving over the vanilla T5Gemma-2 embeddings. As a result, our medium-sized DLM achieves Gen. PPL 17.8 (against real-text PPL 15.4) at real-text entropy on OpenWebText, outperforming GPT-2-M on Gen. PPL.

阅读原文

参与讨论