Continuous-latent diffusion language modeling

AURORA-LM: Autoencoding Unified Representation for Continuous-Latent Diffusion Language Modeling

Jiajun Liang1,*, Yucheng Liao1,*, Yukang Cao2,*, Jiazhe Wei1, Ken Li1, Wende Tan3, Jiankun Zhang1, ZY Cui1, Jingkang Yang1, Liucheng Guo3, Shiqi Yang1, B. Yang, Caifeng Shan1, Ziwei Liu2, and Chenyang Si1,†

1PRLab, Nanjing University · 2S-Lab, Nanyang Technological University · 3Imperial College London
* Equal contribution · † Corresponding author

Abstract

Language remains an outlier in modern generative modeling: while images, video, and audio are increasingly modeled in continuous latent spaces, text generation still relies predominantly on discrete tokens. Existing continuous language models either inherit embedding spaces not designed for generation and decoding jointly, or compress autoencoded latents to make diffusion easier at the cost of token-level fidelity. We challenge this prevailing design compromise. Instead of simplifying the representation to accommodate the generative model, we preserve a high-capacity, decodable text latent and design the diffusion model to learn its distribution directly.

We introduce AURORA-LM, a continuous-latent diffusion language model that separates the construction of a decodable text representation from the modeling of its generative distribution. To obtain such a representation, we use a Query-based Encoder-Decoder that organizes text into a high-capacity, prefix-aligned latent sequence. We then introduce a Block-causal Diffusion Transformer that learns the distribution of these full-width latents through flow matching, generating blocks from left to right while denoising the positions within each block in parallel. However, retaining a high-capacity latent representation for accurate token decoding also makes its distribution more challenging for the diffusion model to learn. AURORA-LM addresses this difficulty by restricting only the noisy-input pathway while retaining the full clean-latent prediction target, allowing the generative model to accommodate the full-width latent without reducing decoder-facing capacity. We further calibrate the noise-level distribution to the latent width, accounting for how the effective signal strength changes with representation dimensionality. Finally, we introduce self-trajectory consistency to bridge the gap between training on independently sampled noisy states and inference through iterative denoising.

Across comprehensive comparisons, AURORA-LM achieves the strongest performance among the evaluated continuous and diffusion-based language models on OpenWebText free generation and XSum conditional summarization. Scaling to 1B parameters with approximately 1,500 EFLOPs of total compute yields further gains and surpasses a larger publicly released latent-diffusion language model under a matched evaluation protocol. Our results demonstrate that continuous language generation can effectively bridge diffusion-based generative modeling and discrete token decoding through a high-capacity, causally structured, and decodable text representation. All experiments are conducted on Ascend NPUs.

The AURORA-LM framework overview

A high-capacity, decodable, prefix-ordered continuous text latent.
And distribution modeling designed around it.

AURORA-LM treats continuous language generation as two connected problems. It first constructs a decodable, causally ordered text latent, then freezes that interface and trains a block-causal denoiser to model the induced latent distribution.

AURORA-LM pipeline with a Query-based Encoder-Decoder, block-causal latent diffusion, and blockwise text generation.
Framework overview. The Query-based Encoder-Decoder constructs the continuous text interface; the block-causal denoiser models the induced latent distribution; inference generates latent blocks from left to right before decoding them into tokens.
STAGE 01

Construct the text latent

Learn a high-capacity, prefix-ordered latent sequence whose successive positions encode progressively longer token prefixes.

STAGE 02

Model the induced latent distribution

Standardize the encoder outputs and train a block-causal denoiser with flow matching.

STAGE 03

Generate and decode

Denoise latent blocks from left to right, invert standardization, and recover token logits with the fixed decoder.

Continuous text latent construction

A prefix-ordered latent connects continuous generation to discrete token recovery.

The representation must preserve enough information for accurate decoding while organizing latent positions in an order that supports blockwise left-to-right generation. AURORA-LM learns this interface rather than inheriting it from token embeddings or a pretrained encoder.

QUERY-BASED ENCODER

Write expanding token prefixes into latent positions.

Successive latent queries attend to progressively longer token prefixes and preceding latent states. The resulting latent sequence accumulates text from left to right.

QUERY-BASED DECODER

Recover each token from the matching latent prefix.

The decoder receives learned output queries rather than the original tokens. Its matched visibility constraint forces token content to be recoverable from the corresponding latent prefix.

Block-causal latent modeling

Model the latent prior with sequential conditioning across blocks and parallel denoising within each block.

The prefix order learned by the autoencoder induces a block-causal factorization of the latent prior. Each target block is conditioned on all preceding clean blocks, while positions inside the current block are denoised jointly.

FACTORIZE

Condition on completed prefixes

The model represents the joint latent distribution as a product of block conditionals.

CORRUPT

Noise every target block

Each clean block is independently placed on a linear flow-matching path from data to Gaussian noise.

TRAIN

Evaluate all blocks together

A two-stream attention mask exposes each noisy block only to itself and its clean prefix, enabling parallel teacher-forced training.

Further study · latent capacity

Why preserve a high-capacity latent?

Further studies examine how much information the decoder-facing latent should retain while remaining suitable for generative modeling, through channel capacity and sequence retention.

Latent-channel width, corrupted-latent recovery, generative modeling, and sequence-compression results.
Latent-capacity analysis. Wider channels retain token information under stronger corruption and produce better calibrated generation. Sequence compression reduces the number of generated positions but introduces a quality-efficiency trade-off.
(a)Robust token recovery

All widths reconstruct clean inputs, but wider latents preserve exact token information over a much broader corruption range.

(b)Stronger generative target

After calibrating the noise schedule for each width, higher-capacity latents yield consistently stronger generation quality across the tested widths.

(c)Controllable sequence compression

Sequence compression reduces the number of positions the prior generates, offering a controllable efficiency–quality trade-off. Moderate compression incurs only a small reduction, whereas aggressive compression lowers MAUVE.

Learning the full-width latent distribution

Model the full-width latent distribution without sacrificing decoding fidelity.

The frozen decoder requires a full-width clean target for accurate token recovery. AURORA-LM therefore changes how the denoiser reads and learns from corrupted latents, rather than compressing the clean representation itself.

01Noisy-input bottleneck

A low-rank projection is applied only to the corrupted input before Transformer processing. The output head continues to predict the full clean latent.

02Clean-endpoint flow matching

All block conditionals are trained in parallel to directly recover clean latents. The noise-level distribution is calibrated to the selected latent width.

03Self-conditioning

A detached draft clean-latent estimate is fed back to the main prediction pass, exposing the denoiser to the conditioning signal used during iterative inference.

Design evidence · full-width modeling

What enables full-width latent modeling without compressing the decoder-facing latent?

With the clean target held fixed, controlled ablations isolate the prior-side choices: noisy-input width, noise allocation, prediction target, and loss space.

Noisy-input bottleneck width and high-noise training-allocation studies.
Full-width latent modeling. A moderate input bottleneck gives the strongest mean MAUVE, while the selected full-width target benefits from allocating more supervision to highly corrupted states.
(a)Moderate noisy-input width

A very narrow pathway loses useful information, but reading the corrupted state at full width brings no consistent gain. A moderate bottleneck preserves the full clean target while simplifying the noisy input.

(b)High-noise calibration

Across tan-d and logit-normal schedules, MAUVE rises as more training mass is assigned to high-noise states. The final system adopts a high-noise calibrated schedule.

(c)Direct clean-latent regression

Predicting x0 with an x0-space loss performs best under both tested noisy-input widths.

TargetLossBottlenecked inputFull-width input
x0x00.8150.807
x0v0.0590.017
vx00.7290.325
vv0.6530.301
Self-trajectory consistency

Align neighboring predictions along the trajectory the model actually follows.

Self-trajectory consistency with an online prediction, detached Euler update, and EMA target at the neighboring state.
Self-trajectory consistency. An online prediction moves the noisy latent to the neighboring lower-noise state; an EMA model supplies the stop-gradient clean-latent target there.

One model-induced update

t′ = PrevS(t) < t
α̃t′ = (t′/t) αt + (1 − t′/t) sg(ẑθt, t))
Lct = || ẑθt, t) − sg(ẑθEMA(α̃t′, t′)) ||22

Flow matching anchors each prediction to the clean training target. The consistency term makes adjacent solver states agree on that target, with gradients flowing only through the online prediction.

Flow matching trains on independently sampled noisy states, but inference repeatedly follows a single model-induced denoising trajectory. Errors can therefore accumulate when clean-latent predictions disagree between successive solver states.

Self-trajectory consistency aligns the online model's clean estimate before and after one detached Euler update. A slowly moving EMA model provides the stable target at the neighboring lower-noise state.

Latent generation and text decoding

Generate blocks left to right while denoising positions within each block in parallel.

During training, each target block conditions on encoder-produced clean prefix blocks. At inference, completed generated blocks replace that prefix; for conditional generation, the encoded prompt initializes the prefix. The denoiser transforms a newly sampled Gaussian block from noise to a clean latent while conditioning on all completed blocks.

GENERATE

Blockwise latent sampling

Unconditional generation starts without a prefix; conditional generation initializes the prefix by encoding the prompt.

GUIDE

Control the trajectory

SC-CFG guides unconditional generation through self-conditioning, while standard classifier-free guidance strengthens prompt conditioning.

DECODE

Return to token space

After all blocks are generated, inverse standardization restores the decoder-compatible latent and the frozen query decoder produces token logits.

Design evidence · efficient blockwise generation

Few-step quality and block granularity shape blockwise generation.

These studies examine two factors behind efficient blockwise generation: self-trajectory consistency, a training-time objective that stabilizes short solver trajectories, and block granularity, which trades sequential conditioning against within-block parallelism at inference.

MAUVE across denoising budgets with and without self-trajectory consistency and across block sizes.
Blockwise-generation analysis. Self-trajectory consistency provides its largest gains with few denoising steps. Smaller blocks improve conditioning but require more sequential stages; Q = 16 is selected as the operating balance.
Trajectory consistency

Consistency improves MAUVE at every tested step budget, with the largest gains in the few-step regime. Its advantage narrows as the solver trajectory becomes more finely discretized.

Block granularity

Smaller blocks provide a more complete generated prefix but reduce parallelism. The selected Q = 16 reaches 0.816 MAUVE while reducing sequential block-generation stages from 32 to 8 relative to Q = 4.

System-level evaluation

Results across generation settings and model scales.

We evaluate AURORA-LM-S on OpenWebText free generation and XSum conditional summarization, then examine AURORA-LM-L on a suite of nine public language benchmarks. Reported parameter counts refer only to the block-causal denoiser.

AURORA-LM-S · Generation and summarization

We compare AURORA-LM-S with autoregressive, discrete-diffusion, and continuous-flow baselines on 1,024-token OpenWebText free generation. It achieves the lowest Gen-PPL and highest MAUVE among the evaluated systems. We also train and evaluate AURORA-LM-S on XSum conditional summarization, where it attains the best ROUGE scores across all three metrics.

AURORA-LM-L · Billion-parameter benchmark evaluation

We next examine whether the formulation remains effective when the block-causal denoiser is scaled to approximately 1B parameters. AURORA-LM-L is trained with approximately 1,500 EFLOPs of total training compute. Under a shared nine-task generative prompt-and-matching protocol, it surpasses a larger publicly released latent-diffusion language model.

AURORA-LM results for research-scale generation and billion-parameter benchmark evaluation.
End-to-end evaluation. Left: OpenWebText free generation and XSum conditional summarization, with AR, MDLM, and ELF-B shown as representative baselines. Right: shared nine-task generative prompt-and-matching evaluation of AURORA-LM-L (1B) and the released Cola-DLM checkpoint (1.8B).

Detailed results

The tables reproduce the reported comparisons. OpenWebText baselines are evaluated in our pipeline with 1,000 generated samples per evaluation seed; XSum values marked † are reported by ELF. Model-size and sampling details are provided in the paper appendix.

OpenWebText unconditional generation1,024-token free generation. Lower Gen-PPL is better; higher entropy and MAUVE are better.
ModelGen-PPL ↓Entropy ↑MAUVE ↑
AR39.405.6050.851
Duo86.575.5660.704
Duo-distilled78.225.5740.715
SEDD119.825.6440.693
MDLM121.365.6640.668
ELF-B24.115.1550.229
AURORA-LM-S23.565.2410.890
XSum conditional generationROUGE-1, ROUGE-2, and ROUGE-L; higher is better. † Values collected by ELF.
ModelR-1 ↑R-2 ↑R-L ↑
ELF-B†36.012.227.8
AR†30.510.224.4
MDLM†33.411.625.8
Duo†31.410.125.0
E2D2†28.48.322.0
SeqDiffuSeq†19.31.714.1
AURORA-LM-S36.613.428.9
Nine-task benchmark evaluationAll entries are percentages. Avg is the macro average over the nine tasks; higher is better for every metric.
ModelAvg ↑MMLUARC-COBQAHellaSwagWinoGrandeStoryClozeSIQARACESQuAD EM
AURORA-LM-L (1B)32.622.221.227.818.450.354.830.230.638.2
Cola-DLM (1.8B)25.119.620.624.25.745.333.826.824.225.7
Conclusion

AURORA-LM decouples representation learning from distribution modeling. A Query-based Encoder-Decoder first constructs a high-capacity, causally ordered latent sequence for accurate token recovery. The autoencoder is then frozen, and a block-causal denoiser learns the resulting full-width latent distribution through flow matching.

The controlled studies explain why the final system takes this form: wider latents preserve token information and support stronger generation; a moderate bottleneck simplifies only the noisy-input pathway; high-noise calibration and direct clean-latent regression improve full-width modeling; and self-trajectory consistency stabilizes few-step generation. Blockwise sampling then balances left-to-right conditioning with parallel denoising.

Together, these results establish a continuous interface between diffusion-based generation and discrete token decoding, and provide a foundation for scaling continuous language models to longer contexts, broader language capabilities, and eventually unified generation across language and other continuous modalities.