CONTINUOUS DIFFUSION LANGUAGE MODELS

Better evaluation.
Better CDLMs.

CDLM-Bench: A Unified Library and Benchmark
for Continuous Diffusion Language Models

1 Polyadic Research Group · 2 SAGA Lab, CUHK-Shenzhen
3 School of Computer Science, Peking University · 4 Dots Studio, Xiaohongshu

THE EVALUATION BLIND SPOT

512 real texts.
A reference distribution.

OUTPUT SUPPORT512 distinct texts
A schematic of output diversity Different source texts spread across a field. Repeating one text collapses the field to a single support point. The point layout is illustrative.

Same output count. A different distribution.
Point positions are schematic; scores come from the experiments below.

Generative perplexityExternal judge · lower is usually preferred
25.960
Within-text entropyVocabulary variation inside each text
4.275
Distribution discrepancySigned-root MMD · lower discrepancy
0.01549

An independent real sample provides a reference for finite-sample variation.

OWT · 128-token source windows · 512 outputs per set · means over 3 folds

The benchmark

Make every improvement
mean something.

A score is useful when we know what it measures, what it misses, and how to reproduce it.

01

Interpret the likelihood.

Separate exact text likelihood, variational slack, and numerical error. A tighter bound and a better model are different improvements.

Understand the comparison
02

Evaluate the distribution.

Compare generated sets with real text. Track diversity, coverage, repetition, and rare failures alongside a fixed kernel discrepancy.

Explore the stress tests
03

Reproduce the comparison.

Connect model definitions, sampling settings, saved outputs, and evaluation protocols through a common experimental interface.

See the library design

Likelihood matters. So does its meaning.

Three perplexities.
Three different questions.

Keep the model’s probability, a computable bound, and an external judge’s score distinct.

EXACT PPL

What probability does the model assign to real text?

Autoregressive token conditionals give a directly computable discrete likelihood under a specified tokenizer and scoring convention.

PPLθ = exp(𝓛θ)
BOUND PPL

How large is an upper bound on the model’s NLL?

A latent CDLM’s bound includes posterior mismatch. Its ranking combines model fit with the tightness of the inference reference.

𝓤r = 𝓛θ + 𝓖r𝓖r ≥ 0
GEN PPL

How predictable are generated outputs to a judge?

An external language model scores generated texts. Concentrating on easy texts can improve this score while reducing output diversity.

GenPPL = exp(CEjudge)

A useful comparison has a direction.

Under matched scoring, a valid CDLM NLL bound below exact AR NLL certifies a likelihood improvement. A bound above AR NLL does not establish the reverse ranking. A reference-scale optimum also does not certify a small total gap.

Controlled experiments

Stress the metric.
Understand its blind spots.

Constructed output sets isolate collapse, local corruption, and formatting sensitivity. Explore what each measurement sees.

n = 512

Swipe to see all metrics

Three-fold mean scores for controlled OpenWebText constructions. MMD and MAUVE show standard deviations over folds.
Output constructionGen PPL ↓HrowMMD display ↓MAUVE ↑
Independent real control25.9604.2750.01549 ± 0.007480.96026 ± 0.00221
One selected text × 5122.4614.4190.68248 ± 0.058840.00407 ± 0.00000
256 texts × 225.9444.2740.03130 ± 0.006080.88665 ± 0.02012
64 texts × 825.6934.2730.07308 ± 0.001340.05743 ± 0.01755
Judge-easiest quartile13.4274.1780.08610 ± 0.006620.93391 ± 0.01353

Repeating one selected text improves both conventional scores, while MMD and MAUVE reveal the collapsed output distribution.

Experimental protocol and how to read the scores

OWT validation pilot: 128-token source windows, 512 outputs per set, and 3 folds from one available shard. Gen PPL is scored by GPT-2 Large. Hrow is mean within-text unigram entropy.

“MMD display” is sign(MMD²)√|MMD²|, using BF16 mean-pooled GPT-2 Large features and a reference-median RBF bandwidth. MAUVE uses FP32 last-token features, 51 clusters, and 3 clustering seeds per fold. Their default pipelines differ; the table does not isolate the discrepancy formula.

± denotes fold standard deviation, not a confidence interval. Controlled repetitions are descriptive stress tests. The selected single text minimizes judge NLL subject to entropy at least the control mean; it was not selected by human ratings. Feature-neighbor selection uses the same mean-feature space and is a directed diagnostic.

The scoring protocol uses independent kernel calibration for statistical inference and keeps it distinct from these historical default-pipeline results. No model leaderboard is implied by constructed output sets.

01 / COLLAPSE

Sample quality is only part of the story.

Within-text entropy can stay high when every output is identical. Measure variation across outputs as well as inside each text.

02 / SENSITIVITY

The representation changes what you see.

Mean and last-token features respond differently to edit location. Formatting can move a score more than structural corruption.

03 / CALIBRATION

A small distance has limits.

Rare errors can be diluted in global measurements. Pair the distribution score with explicit event rates, coverage, and real-versus-real controls.

A common experimental foundation

From checkpoint
to a comparison you can trace.

A shared evaluation core, model-specific interfaces, and explicit protocols for model and sampler studies.

01 · MODELDefine the model.

Weights, decoder,
and likelihood target.

02 · SAMPLERSpecify the process.

Solver, temperature,
steps, and seeds.

03 · OUTPUTSSave the evidence.

Sample records,
hashes, and metadata.

04 · EVALUATIONCompare with context.

Fixed measurements,
controls, and uncertainty.

CDLM-BENCH LIBRARY

One evaluation interface.
More interpretable results.

Use a common sample interface for Gen PPL, entropy decomposition, MMD, MAUVE, and diagnostic metrics. Evaluate saved outputs with the same preprocessing and reference budget.

LangFlowRePlaidAR & discrete controls

The benchmark design separates original-recipe reproduction from standardized comparison. Sampler studies hold the checkpoint fixed.

View code & documentation
evaluate.py
from dlm_metrics import evaluate

report = evaluate(
    {"ours": "samples.pt"},
    reference="owt_ref.pt",
    preset="owt",
    n=512,
)

print(report.table())
report.save("results.json")
Use a reference file containing at least 2n rows.

Build on the benchmark

Make evaluation
a shared foundation.

Find the implementation, follow the research, and cite the project.

BibTeX
@unpublished{jiang2026cdlmbench,
  title  = {CDLM-Bench: A Unified Library
            and Benchmark for Continuous
            Diffusion Language Models},
  author = {Hao Jiang and Yujian Chen and
            Weijian Luo and Tianyang Hu},
  year   = {2026},
  note   = {Research manuscript},
  url    = {https://hojawn.github.io/CDLM-Bench/}
}