用压缩平滑的潜在空间提升文本扩散模型生成速度与质量
Cosmos: Compressed and Smooth Latent Space for Text Diffusion Modeling
- 将文本映射到压缩的连续潜在空间,支持并行生成
- 压缩8倍仍保持与词元级模型相当的生成质量
- 推理速度超2倍,适合需快速生成的应用场景
自回归语言模型主导现代文本生成,但其序列特性导致解码慢且全局连贯性难维持。扩散模型虽可并行生成并灵活控制,却受限于词元级表示的高维性。本文提出Cosmos,一种完全在专为扩散设计的压缩平滑潜在空间中运行的新文本生成方法。该空间通过联合训练自编码器实现词元级重建与预训练语言编码器冻结激活对齐,提供稳健语义基础并支持基于扰动的增强。实验证明,文本表示可压缩8倍,同时生成质量与词元级扩散模型相当;增加潜在序列长度后,Cosmos超越扩散与自回归基线。在故事生成、问答生成、摘要和去毒四个任务上评估,结果表明其生成质量相当或更优,且推理速度超过2倍。代码已开源。
原文摘要 · Abstract (English)
Autoregressive language models dominate modern text generation, yet their sequential nature introduces fundamental limitations: decoding is slow, and maintaining global coherence remains challenging. Diffusion models offer a promising alternative by enabling parallel generation and flexible control; however, their application to text generation is hindered by the high dimensionality of token-level representations. We introduce Cosmos, a novel approach to text generation that operates entirely in a compressed, smooth latent space tailored specifically for diffusion. This space is learned using an autoencoder trained simultaneously for token-level reconstruction and alignment with frozen activations from a pretrained language encoder, providing robust semantic grounding and enabling effective perturbation-based augmentations. Empirically, we demonstrate that text representations can be compressed by $8\times$ while maintaining generation quality comparable to token-level diffusion models. Furthermore, increasing the latent sequence length allows Cosmos to surpass both diffusion-based and autoregressive baselines. We evaluate Cosmos on four diverse generative tasks including story generation, question generation, summarization, and detoxification and compare it with various generative paradigms. Cosmos achieves comparable or superior generation quality while offering more than $2\times$ faster inference. Code is released at \href{https://github.com/MeshchaninovViacheslav/cosmos}{GitHub}
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。