dLLM: Simple Diffusion Language Modeling

Zhanhui Zhou, Lingjie Chen, Hanghang Tong, Dawn Song

TL;DR

dLLM is a new open-source framework that unifies the fragmented landscape of Diffusion Language Models (DLMs) by standardizing their training, inference, and evaluation pipelines. Beyond providing a clean codebase to reproduce state-of-the-art DLMs like LLaDA and Dream, it offers simple recipes to convert standard BERT-style encoders and autoregressive models into functional diffusion chatbots using only lightweight supervised fine-tuning (SFT).

What Problem Does This Paper Address?

While autoregressive (left-to-right) language models currently dominate generative AI, Diffusion Language Models (DLMs) are rapidly emerging as a powerful alternative. DLMs offer unique advantages, such as parallel token generation, flexible steering, and iterative text refinement.

However, the field faces a major reproducibility crisis. Because DLM research is moving so fast, new models are typically released in isolated, ad-hoc codebases with inconsistent APIs and opaque evaluation setups. This fragmentation makes it incredibly difficult for researchers to fairly compare architectures, reuse inference optimizations, or build upon existing work. dLLM addresses this gap by providing a modular, extensible, and unified infrastructure for the entire DLM lifecycle.

Methods

The dLLM framework standardizes the DLM pipeline into three core modular components:

  1. Unified Trainers (dllm/core/trainers): It provides decoupled training modules for the most common diffusion objectives, primarily Masked Diffusion (MDLM) and Block Diffusion (BD3LM). Because the diffusion logic is separated from the underlying model architecture, users can swap objectives or adapt models with minimal code changes.
  2. Pluggable Samplers: dLLM introduces a lightweight Sampler(model).sample() abstraction. This decouples the model from specific decoding algorithms, allowing users to seamlessly swap in advanced, training-free decoding accelerators like Fast-dLLM without altering the base model.
  3. Terminal Visualizer: Unlike autoregressive models that generate text linearly, DLMs decode tokens in any order. dLLM includes a visualizer tool to track and debug this non-left-to-right token evolution over decoding timesteps.
Figure 3: Terminal Visualizer showing transition from masked to decoded tokens.
  1. Standardized Evaluation: By extending the popular lm-evaluation-harness, dLLM meticulously matches the exact preprocessing, decoding hyperparameters, and post-processing steps used in official DLM papers to ensure fair, reproducible benchmarking.

Datasets

The authors demonstrate the utility of dLLM by training and evaluating several models across diverse datasets:

  • Reasoning Finetuning: Large open-weight DLMs (LLaDA, Dream) were finetuned on the s1K dataset to elicit chain-of-thought reasoning capabilities.
  • Small DLMs from Scratch (BERT-Chat & Tiny-A2D): Models were trained using instruction-tuning mixtures from Tulu 3 SFT, SmolTalk, and opc-sft (stages 1 & 2).
  • Evaluation Benchmarks: The framework integrates a massive suite of standard benchmarks, including GSM8K, MATH500, HumanEval, MBPP, MMLU, MMLU-Pro, HellaSwag, LAMBADA, WinoGrande, GPQA, IFEval, and Minerva.

Key Insights and Ideas

  • Extreme Hyperparameter Sensitivity: A major "aha moment" from the paper is just how sensitive DLMs are to inference-time configurations. Minor tweaks to parameters like the maximum number of new tokens, temperature, Classifier-Free Guidance (CFG), or token suppression can completely tank a model's performance. This highlights why a standardized evaluation harness is so critical for the field.
Figure 5: Sensitivity to decoding hyperparameters. We vary individual sampling hy- perparameters at inference time and observe that performance can degrade sharply from the optimal configuration. BASELINE denotes the best-performing setting; SUPPRESS does not suppress <eos> from the beginning of generation; CFG sets cfg=0.5; PARALLEL @ 4 generates four tokens per step; and TEMP @ 0 sets temperature=0.0.
  • Architecture Agnosticism: You don't need a specialized architecture to build a DLM. The authors successfully converted standard, encoder-only models (like ModernBERT) and standard autoregressive models (like Qwen3) into functional diffusion models using only SFT, without any architectural modifications or expensive continual pretraining.

Key Results

  • Faithful Reproduction & Acceleration: dLLM successfully reproduced the official results of LLaDA and Dream. Furthermore, by plugging in the integrated Fast-dLLM sampler, they achieved substantial inference speedups (up to 11x on certain configurations) while maintaining baseline accuracy.
Figure 4: Fast-dLLM evaluation results with max new tokens @ 256 and 512. Model selection follows the original Fast-dLLM evaluation for consistency and fair comparison. CACHE uses block-wise approximate KV caching within each decoding block; PARALLEL uses confidence-based parallel token updates; CACHE & PARALLEL combines both. Note that max new tokens determines the number of pre-allocated padding tokens in the bidirec- tional context window, therefore affecting compute and measured performance.
  • ModernBERT-Chat: The converted ModernBERT-large-chat-v0.1 model (an encoder-only backbone) outperformed GPT-2 variants on most benchmarks and even beat Qwen1.5-0.5B-Chat on complex tasks like Big-Bench Hard (BBH) and MATH.
  • Tiny-A2D: Converting Qwen3-0.6B into a Block Diffusion model (Qwen3-0.6B-bd3lm-v0.1) yielded a model that actually surpassed the original autoregressive base model on code generation tasks (HumanEval and MBPP), despite only being trained on SFT data.

Limitations and Future Work

While the lightweight conversion of standard LMs to DLMs is highly compute-efficient, a clear performance gap still remains. At smaller scales (e.g., <1B parameters), these converted DLMs still trail their pure autoregressive counterparts on broader knowledge and reasoning benchmarks like MMLU.

Moving forward, the authors plan to expand dLLM by integrating Reinforcement Learning (RL) algorithms tailored for diffusion language modeling as those techniques mature, alongside adding support for new open-weight DLMs as they are released.

Summary updated

BibTeX
@inproceedings{zhou2026dllm,
  author = {Zhanhui Zhou and Lingjie Chen and Hanghang Tong and Dawn Song},
  title = {{dLLM: Simple Diffusion Language Modeling}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-demo.8},
}
Figure