WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inference

Aiwei Liu, Minghua He, Shaoxun Zeng, Sijun Zhang, Linhao Zhang, Chuhan Wu, Wei Jia, Yuan Liu, Zhou Xiao, Jie Zhou

International Conference on Machine Learning 2026 · Oral

Overview

This talk introduces WeDLM, a novel systems and machine learning framework designed to resolve the fundamental conflict between the high-throughput parallel generation of diffusion language models (DLMs) and the infrastructure of standard autoregressive (AR) large language models. While autoregressive models deliver strong generation quality, their token-by-token sequential decoding creates a severe memory-bound bottleneck on modern hardware. Conversely, prior diffusion language models achieve parallel generation by predicting multiple tokens simultaneously, but they rely on bidirectional attention, which breaks the stability of standard Key-Value (KV) caches and creates prohibitive system inefficiencies.

Watch on SlidesLive

Visual summary for WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inference by Aiwei Liu, Minghua He, Shaoxun Zeng, Sijun Zhang, Linhao Zhang, Chuhan Wu, Wei Jia, Yuan Liu, Zhou Xiao, Jie Zhou
Visual summary for WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inference by Aiwei Liu, Minghua He, Shaoxun Zeng, Sijun Zhang, Linhao Zhang, Chuhan Wu, Wei Jia, Yuan Liu, Zhou Xiao, Jie Zhou

Key moments

  1. 0:00 Introduction to WeDLM and autoregressive versus diffusion paradigms
  2. 2:00 Key problems with bidirectional attention and KV cache stability
  3. 4:00 Overview of WeDLM: topological reordering and prefix cacheability
  4. 5:57 Dual-stream masking and stream parallel decoding details
  5. 7:40 Experimental setup and model performance results
  6. 9:50 Audience Q&A on token decoding and KV caching behavior

WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inference

Speakers: Aiwei Liu; Minghua He; Shaoxun Zeng; Sijun Zhang; Linhao Zhang; Chuhan Wu; Wei Jia; Yuan Liu; Zhou Xiao; Jie Zhou

Conference: ICML

YouTube: https://slideslive.com/39083720

Overview

This talk introduces WeDLM, a novel systems and machine learning framework designed to resolve the fundamental conflict between the high-throughput parallel generation of diffusion language models (DLMs) and the infrastructure of standard autoregressive (AR) large language models. While autoregressive models deliver strong generation quality, their token-by-token sequential decoding creates a severe memory-bound bottleneck on modern hardware. Conversely, prior diffusion language models achieve parallel generation by predicting multiple tokens simultaneously, but they rely on bidirectional attention, which breaks the stability of standard Key-Value (KV) caches and creates prohibitive system inefficiencies.

The authors—representing a broad research team—demonstrate that diffusion language models do not actually require bidirectional attention for effective denoising. By introducing topological reordering, dual-stream masking, and stream parallel decoding, WeDLM reconciles discrete diffusion generation with standard causal attention. This allows models initialized from established AR checkpoints (such as Qwen 2.5 7B and Qwen 3 8B) to achieve parallel generation speedups without sacrificing foundational model quality, outperforming prior DLM architectures on standard reasoning, math, and coding benchmarks.

Background

▶ Watch: Introduction to WeDLM and autoregressive versus diffusion paradigms (0:00)

The systems and ML landscape for text generation has long been divided into two paradigms: autoregressive decoding and diffusion-based non-autoregressive generation. Standard autoregressive LLMs generate text strictly one token at a time. Each generated token depends causally on all preceding tokens, allowing systems to store historical states in a KV cache. However, because generation occurs sequentially, modern GPUs—with their massive parallel compute capacity—are severely underutilized during the decode phase. The operation is memory-bound, requiring the system to stream model weights and KV caches from memory for every single token produced.

To utilize idle GPU compute, researchers turned to diffusion language models adapted for discrete token spaces. Unlike continuous image diffusion models that operate on Gaussian noise, text diffusion models corrupt discrete tokens into mask tokens and iteratively denoise them. Representative prior work like LADA proved that DLMs could be trained from scratch using bidirectional attention, yet they exhibited a noticeable capability gap compared to state-of-the-art AR models like Qwen.

Subsequent work such as DREAM adapted pre-trained AR models into DLMs via continuous pre-training, retaining the strong capabilities of the original checkpoints. However, these models still relied heavily on bidirectional attention. In a bidirectional attention mechanism, tokens within a denoising region are mutually dependent; if a single token changes during an intermediate denoising step, the KV cache for neighboring tokens is invalidated.

To mitigate this, prior systems introduced block diffusion, which restricts bidirectional attention to local blocks. Yet, block-level architectures suffer from a "stop-and-wait" bottleneck. Because tokens within the same block are coupled, the system cannot safely commit a token's KV cache until the entire block is finalized. This introduces severe execution bubbles and limits actual inference speedups.

Key Findings

▶ Watch: Overview of WeDLM: topological reordering and prefix cacheability (4:00)

The central discovery of WeDLM is that bidirectional attention is not a strict prerequisite for mask recovery in discrete diffusion language models. By structuring the attention mechanism topologically, the model can perform parallel denoising while remaining fully compatible with standard causal masks and KV cache infrastructures.

  • Capability Retention and Improvement: WeDLM models initialized from standard AR checkpoints do not suffer performance degradation. In evaluations spanning math, code, and general reasoning benchmarks, WeDLM 8B achieves superior average scores compared to its base Qwen 3 8B checkpoint, proving that conversion to a diffusion generation paradigm can enhance rather than compromise pre-trained capabilities.
  • Significant Speedups: Utilizing a sliding window stream decoding approach rather than rigid block-wise decoding, WeDLM achieves up to a 19x speedup over traditional block diffusion baselines by eliminating synchronization bubbles.
  • Prefix Cacheability Metrics: The authors introduce a formal metric, P-cache (defined as the ratio of generated tokens to total forward passes including recomputations), to evaluate cache efficiency. WeDLM maximizes this metric by enforcing a continuous left-to-right prefix commitment strategy.
  • Hyperparameter Robustness: Ablations reveal that varying block or window sizes yields stable average performance, indicating that the framework is robust and easily configurable across diverse serving infrastructures.

Technical Deep Dive

▶ Watch: Dual-stream masking and stream parallel decoding details (5:57)

The architectural and algorithmic innovations in WeDLM span both training and inference phases, bridging the gap between non-autoregressive diffusion and causal transformer infrastructure.

Topological Reordering

In standard diffusion models, tokens within a sequence $X_1$ to $X_6$ are mixed with mask tokens and processed via bidirectional attention. WeDLM alters this physical layout without changing logical semantics. Observed (clean) tokens are relocated to a continuous prefix, while mask tokens are moved to the suffix. Crucially, their original logical positions are preserved using RoPE (Rotary Position Embedding). Because all mask tokens physically appear after all observed tokens in this reordered sequence, a standard causal attention mask is sufficient to allow mask tokens to attend to the entire observed context without requiring custom bidirectional attention kernels.

Dual-Stream Masking

To minimize the distribution shift between training and inference, WeDLM employs a dual-stream masking strategy during training:

  1. Clean Memory Stream: Provides finalized, committed historical context.
  2. Mask Prediction Stream: Dedicated to training the model to recover future masked tokens based on the clean memory stream.

At inference time, the memory stream is discarded, simplifying execution to a single causal sequence where committed tokens populate the standard KV cache and remaining positions sit inside a dynamic sliding window.

Stream Parallel Decoding & Distance Penalty

Unlike block diffusion models that force the system to halt until an entire block resolves, WeDLM uses a sliding window strategy. After each forward pass, the leftmost reliable tokens are committed directly to the KV cache, unresolved masks are retained, and new masks are refilled on the right.

Because multi-token prediction can occasionally lead the model to resolve later positions with higher confidence before early positions are finalized, WeDLM introduces a distance penalty. This penalty discourages out-of-order resolution by gently penalizing confident predictions at later sequence indices, forcing the model to prioritize left-to-right completion. This ensures that the prefix remains continuous, maximizing the utility of the KV cache.

Experimental Setup & Results

▶ Watch: Experimental setup and model performance results (7:40)

The empirical evaluation of WeDLM focuses on two primary model scales initialized from robust open-weights checkpoints:

  • WeDLM 7B: Initialized from Qwen 2.5 7B.
  • WeDLM 8B: Initialized from Qwen 3 8B.

Training Pipeline

The training regimen consists of two distinct stages:

  1. Continued Pre-training: Conducted on 100 billion tokens to adapt the network weights to the topological reordering and dual-stream masking paradigms.
  2. Supervised Fine-Tuning (SFT): Conducted on 10 billion tokens focused on instruction-following and alignment.

Benchmark Performance

Evaluation suites target mathematical reasoning, code generation, and general knowledge benchmarks. The WeDLM 8B variant achieves the highest average score across the evaluated test suite, outperforming prior discrete diffusion models (such as LADA and DREAM variants) and matching or exceeding the baseline performance of the source Qwen 3 8B model.

Inference Dynamics & Tradeoffs

  • Entropy Thresholds: Serving teams can tune entropy threshold parameters to control the speed-quality Pareto frontier. Higher thresholds force the model to accept more tokens per step, accelerating generation at a minor cost to accuracy.
  • Streaming vs. Block-Wise Decoding: Empirical profiling confirms that the sliding-window streaming approach eliminates the idle bubbles characteristic of block diffusion, yielding up to a 19x speedup in generation throughput over rigid block-wise baselines.

Practical Implications

▶ Watch: Audience Q&A on token decoding and KV caching behavior (9:50)

For infrastructure teams and model deployers, WeDLM offers a compelling path toward accelerating LLM inference without requiring custom attention kernels or abandoning standard serving engines like vLLM or TensorRT-LLM. By reconciling discrete diffusion with standard causal attention and KV caching, practitioners can deploy diffusion language models using existing hardware acceleration stacks.

However, certain trade-offs remain. The reliance on distance penalties and entropy thresholds introduces tuning complexity for production serving environments. Furthermore, out-of-order token resolution—even with penalties—requires careful management of cache invalidation logic during intermediate steps to prevent correctness regressions in long-context applications.

Key Takeaways

  • Bridging Paradigms: WeDLM proves that discrete diffusion language models can utilize standard causal attention and traditional KV cache infrastructures without sacrificing generation parallelism.
  • Topological Reordering: By moving observed tokens to a prefix while preserving their logical positions via RoPE, standard causal masks provide sufficient context for parallel mask recovery.
  • Superior Efficiency: Stream parallel decoding with a sliding window eliminates the "stop-and-wait" execution bubbles of block diffusion, achieving up to a 19x throughput speedup.
  • Model Quality Preservation: Initialized from Qwen 2.5 7B and Qwen 3 8B, WeDLM 8B surpasses its base checkpoint average scores across math, code, and reasoning benchmarks.
  • Production-Ready Architecture: The framework aligns closely with existing autoregressive deployment pipelines, reducing engineering friction for teams seeking to transition from sequential to parallel generation models.

About the Speaker(s)

Authors: Aiwei Liu, Minghua He, Shaoxun Zeng, Sijun Zhang, Linhao Zhang, Chuhan Wu, Wei Jia, Yuan Liu, Zhou Xiao, Jie Zhou.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026