CoDAR: Continuous Diffusion Language Models are More Powerful Than You Think
Authors: Junzhe Shen, Jieru Zhao, Ziwei He, Zhouhan Lin
Organizations: LUMIA Lab, School of Artificial Intelligence, Shanghai Jiao Tong University · School of Computer Science, Shanghai Jiao Tong University · Shanghai Innovation Institute · Shanghai AI Laboratory
We study why continuous diffusion language models (DLMs) have lagged behind discrete diffusion approaches despite their appealing continuous generative dynamics. Under a controlled token--recovery study, we identify token rounding, the final projection from denoised embeddings to tokens, as a primary bottleneck. Building on these insights, we propose CoDAR (Continuous Diffusion with Contextual AutoRegressive Decoder), a two--stage framework that keeps diffusion entirely continuous in an embedding space while learning a strong, context--conditional discretizer: an autoregressive Transformer decoder that cross--attends to the denoised embedding sequence and performs contextualized rounding to tokens. Experiments on LM1B and OpenWebText demonstrate that CoDAR substantially improves generation quality over latent diffusion and becomes competitive with strong discrete DLMs, while exposing a simple decoder--temperature knob to navigate the fluency--diversity trade off.
Figures & tables
Figure 1: Framework of CoDAR . Starting from a noisy latent sequence xT , a reverse diffusion process progressively denoises the hidden states to x0 . xT,…,x0∈RL×d , where L denotes the sequence length and d denotes the size of hidden states. After that, an autoregressive Transformer decoder conditions on the denoised x0 with cross-attention to translate x0 to discrete tokens y1,…,yL .
Figure 2: Token recovery rate of point-wise linear classifier and autoregressive Transformer decoder under different sizes of hidden states.
Model
Gen. PPL( ↓ )
Diversity( ↑ )
Training set
16.75
0.2191
Recovered training set
25.07
0.2282
Decoded noise
14.24
0.0380
MDLM ∗
123.73
0.4784
SEDD
129.57
0.4742
CoDAR ( T=0.00 )
47.71
0.1660
Table 1: Unconditional generation on OpenWebText. We compare CoDAR to discrete baselines (MDLM and SEDD) using 1,000 generated samples per method, reporting generative perplexity and an n-gram–based diversity score. We also include three diagnostic reference points: training set text, decoded ground-truth embeddings (“recovered training set”), and decoded Gaussian noise, to contextualize the metrics. We use 250 sampling steps for all runs while varying the decoder temperature for CoDAR .
Model
Gen.PPL( ↓ )
Diversity( ↑ )
LD4LG
167.47
0.5797
CoDAR
104.76
0.3264
Table 2: Unconditional generation on LM1b.
Solver
Sampling Steps
Gen.PPL( ↓ )
Div.( ↑ )
Ancestral
25
214.86
0.4251
50
206.54
0.4734
100
185.91
0.4757
250
164.89
0.4842
DPM-Solver
25
212.32
0.4929
50
178.82
0.4942
Table 3: Solver ablation for CoDAR . We compare ancestral sampling to DPM-Solver for unconditional generation across sampling budgets with decoder temperature set to 1.0.
Sampling Steps
Model
Gen.PPL( ↓ )
Div.( ↑ )
25
MDLM ∗
232.78
0.5287
SEDD
221.63
0.5171
CoDAR
212.32
0.4929
50
MDLM ∗
165.71
0.5046
SEDD
164.24
0.492
CoDAR
178.82
0.4942
Table 4: Few-step unconditional generation on OpenWebText. We compare our model sampled with DPM-Solver (decoder temperature T=1 ) against discrete diffusion baselines (MDLM, SEDD) under matched step budgets.
Department of Engineering, University of Cambridge. · Devotion AI Labs Ltd. · Donders Institute for Brain, Cognition, and Behaviour, Radboud University.