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:
- 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. - 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. - 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.
- 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.
- 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.
- ModernBERT-Chat: The converted
ModernBERT-large-chat-v0.1model (an encoder-only backbone) outperformed GPT-2 variants on most benchmarks and even beatQwen1.5-0.5B-Chaton complex tasks like Big-Bench Hard (BBH) and MATH. - Tiny-A2D: Converting
Qwen3-0.6Binto 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