TL;DR
Continuous diffusion language models (DLMs) have historically lagged behind their discrete counterparts when generating text. This paper reveals that the true bottleneck isn't the diffusion process itself, but rather "token rounding"—the final step of mapping continuous embeddings back to discrete words. By introducing CoDAR, a framework that pairs continuous embedding diffusion with an autoregressive Transformer decoder for contextualized rounding, the authors eliminate this bottleneck and close the performance gap with state-of-the-art discrete diffusion models.
What Problem Does This Paper Address?
While continuous diffusion models excel at generating smooth, high-quality data like images, applying them to natural language processing has proven difficult. Language is inherently discrete and categorical (composed of distinct tokens/words), whereas diffusion operates in continuous spaces.
To bridge this gap, standard embedding-space DLMs diffuse text within a continuous embedding space and then use a simple, position-wise linear head to map the final denoised embeddings back to discrete tokens. The authors identify this independent, pointwise "rounding" step as a severe bottleneck. Because it treats each token position independently, it fails to leverage surrounding linguistic context, making it highly brittle when dealing with ambiguous or slightly noisy embeddings. As a result, the field has largely pivoted toward discrete diffusion models. This paper aims to rescue continuous DLMs by fixing the rounding problem.
Methods
The authors propose CoDAR (Continuous Diffusion with Contextual AutoRegressive Decoder), a two-stage framework that completely decouples continuous sequence generation from discrete token realization.
- Continuous Diffusion Generator: CoDAR runs a fully continuous diffusion process in a low-dimensional embedding space (typically $d=64$). It utilizes a variance-preserving formulation with velocity parameterization ($v$-prediction) and a cosine noise schedule to progressively denoise a random Gaussian sequence into a clean embedding sequence ($x_0$).
- Contextualized Autoregressive Decoder: Instead of using a pointwise linear classifier to guess the tokens, CoDAR feeds the entire sequence of denoised embeddings into an autoregressive Transformer decoder. Using cross-attention, the decoder looks at the global continuous context to sequentially emit discrete tokens ($y_1, \dots, y_L$).
To ensure the decoder can handle the imperfect, slightly off-manifold embeddings typically produced during realistic diffusion sampling, it is trained using a noise-augmentation strategy where small Gaussian perturbations are added to the ground-truth embeddings.
Datasets
The authors evaluated CoDAR on two standard language modeling benchmarks:
- One Billion Word Benchmark (LM1B): Used primarily for comparing against latent diffusion baselines (like LD4LG) under a sequence length of $L=128$.
- OpenWebText: A larger, more diverse corpus used as a rigorous stress test to compare CoDAR against strong discrete diffusion baselines (MDLM and SEDD) under a context length of $L=512$.
Key Insights and Ideas
- Pointwise Rounding is Provably Suboptimal: Through an information-theoretic analysis, the authors demonstrate an "optimality gap" in pointwise decoding caused by sequence dependence (syntax/semantics) and local evidence restriction. Pointwise linear heads cannot exploit sequence-level coupling, making them highly error-prone.
- The Dimension Dilemma: In image generation, increasing latent dimensionality usually improves quality. In text diffusion, the authors find the opposite: while larger embedding dimensions ($d=768$) make pointwise rounding slightly easier, they severely hinder the continuous diffusion training process. CoDAR resolves this by keeping the diffusion space low-dimensional ($d=64$) and letting the autoregressive decoder handle the heavy lifting of sequence transduction.
- The Temperature Knob: Because the final discretization step is handled by an AR decoder, CoDAR exposes a simple decoder-temperature parameter ($T$). Adjusting $T$ provides a smooth, highly controllable Pareto frontier to navigate the trade-off between text fluency (low perplexity) and lexical variety (high diversity).
Key Results
Token Recovery Accuracy
In a controlled study mapping hidden states back to tokens, a standard linear head performed terribly, achieving only 15.4% accuracy at $d=64$. In contrast, CoDAR's contextual AR decoder achieved 84.1% accuracy at the same low dimensionality, validating their theoretical analysis.
Generation Performance
On OpenWebText, CoDAR achieved competitive results against top-tier discrete diffusion models like MDLM and SEDD. By tuning the decoder temperature, CoDAR can either match the high diversity of discrete models or deliver vastly superior fluency (lower generative perplexity) at lower temperatures.
Additionally, because CoDAR's diffusion process is entirely continuous, it can leverage advanced higher-order ODE solvers like DPM-Solver. In low-step regimes (e.g., generating text in just 25 steps), CoDAR combined with DPM-Solver achieved the best fluency among all evaluated methods without sacrificing diversity.
Limitations and Future Work
- High-Dimensional Scaling Issues: As noted in their ablations, scaling up the hidden size of the embedding space (e.g., to $d=768$) causes a sharp degradation in diffusion performance. Finding ways to scale the continuous representation capacity without breaking the diffusion dynamics remains an open challenge.
- Autoregressive Overhead: Although CoDAR keeps the diffusion phase fully parallelized and continuous, the final token generation step is autoregressive. While this happens only once at the very end of the pipeline, it still introduces sequential decoding overhead that fully non-autoregressive models avoid.
Summary updated