Cosmos: Compressed and Smooth Latent Space for Text Diffusion Modeling

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Meshchaninov, Viacheslav, Chimbulatov, Egor, Shabalin, Alexander, Abramov, Aleksandr, Vetrov, Dmitry
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911351563091968
author Meshchaninov, Viacheslav
Chimbulatov, Egor
Shabalin, Alexander
Abramov, Aleksandr
Vetrov, Dmitry
author_facet Meshchaninov, Viacheslav
Chimbulatov, Egor
Shabalin, Alexander
Abramov, Aleksandr
Vetrov, Dmitry
contents 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}
format Preprint
id arxiv_https___arxiv_org_abs_2506_21170
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Cosmos: Compressed and Smooth Latent Space for Text Diffusion Modeling
Meshchaninov, Viacheslav
Chimbulatov, Egor
Shabalin, Alexander
Abramov, Aleksandr
Vetrov, Dmitry
Computation and Language
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}
title Cosmos: Compressed and Smooth Latent Space for Text Diffusion Modeling
topic Computation and Language
url https://arxiv.org/abs/2506.21170