NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Locally Coherent Parallel Decoding in Diffusion Language Models

Michael Hersche, Nicolas Menet, Ronan Tanios, Abbas Rahimi

Introduction

Standard Large Language Models (LLMs) rely on autoregressive (AR) decoding, generating text one token at a time from left to right. While this strict sequential process ensures high syntactic coherence, it suffers from linear latency—the time it takes to generate a sequence grows directly with its length.

Diffusion Language Models (DLMs) have emerged as a promising, faster alternative. By refining multiple tokens in parallel, DLMs offer sub-linear generation latency and powerful bidirectional editing capabilities. However, this speed comes at a cost: the "coherence gap." Because standard DLMs predict each token's probability independently during a single step, they lack a joint understanding of how concurrently generated tokens fit together. In precise domains like code generation, this independent sampling frequently breaks multi-token structures, resulting in mismatched brackets, broken variable names, and severe syntax errors.

To bridge this gap, researchers have introduced CoDiLA (Coherent Diffusion with Local Autoregression), a hybrid framework that reconciles the parallel speed of DLMs with the local logical consistency of AR models.

The CoDiLA Framework

CoDiLA operates on a simple but powerful premise: delegate the broad, global structure to a fast parallel model, and hand off the fine-grained, local syntax to a tiny sequential model.

Architecture and Workflow

  1. Block-wise Factorization: Rather than treating every token as an independent entity, CoDiLA groups tokens into small, contiguous blocks (e.g., 2, 4, or 8 tokens).
  2. The DLM "Drafter": A large bidirectional diffusion model (in this study, Dream-Coder-7B) acts as the global architect. It drafts the overall structure of the code and resolves long-range dependencies across the entire sequence.
  3. The AR "Refiner": A highly compact autoregressive model (Qwen3-0.6B) handles the local decoding within each block. By processing tokens sequentially within these small windows, it ensures syntactic validity without bottlenecking the overall generation speed.
  4. Soft-Conditioning Interface: The technical breakthrough of CoDiLA lies in how the Drafter communicates with the Refiner. Instead of passing the single most likely token (which discards valuable uncertainty data), CoDiLA feeds the AR model a "soft embedding"—a weighted average of all possible token embeddings based on the DLM's probability distribution. This allows the tiny AR model to "see" the DLM's confidence levels and make highly informed local corrections.

CoDiLA is highly flexible, capable of operating in Static Parallelism (unmasking fixed-size blocks) or Dynamic Parallelism (adjusting the number of unmasked tokens based on the model's confidence).

Key Insights

  • The Math of Blocks: The researchers provide theoretical proof that modeling tokens in blocks strictly improves the Negative Evidence Lower Bound (NELBO) compared to token-wise independence. Larger blocks inherently capture richer local dependencies.
  • The Efficiency Paradox: You do not need a massive model to correct a massive model. A 0.6B parameter refiner proved entirely sufficient to eliminate the coherence artifacts of a 7B parameter drafter. Scaling the refiner to 1.7B or 4B parameters yielded no significant accuracy gains but unnecessarily increased latency.
  • Preserving "Any-Order" Capabilities: Unlike other acceleration methods that force a model into strict left-to-right generation, CoDiLA maintains the DLM's native ability to fill in the middle of a file or edit code non-linearly.

Empirical Results

The models were rigorously evaluated on code-generation benchmarks, including HumanEval, MBPP, and BigCodeBench (Full and Hard), after being finetuned on the Ling-Coder-SFT dataset (4.48M instruction-response pairs).

  • Drastic Syntax Error Reduction: In high-parallelism settings (unmasking 8 tokens simultaneously), the base DLM suffered a staggering 70% syntax error rate. CoDiLA slashed this error rate to just 16%.
  • A New Pareto Frontier: CoDiLA achieved a 2x speedup over traditional models while maintaining the exact same accuracy as a standard sequential model.
  • Infilling Excellence: On the HumanEval-Infilling task (filling in the middle of existing code), CoDiLA accelerated generation by 1.3x to 1.5x while matching the high accuracy of the best sequential baselines, outperforming pure AR models of a similar scale.

Limitations and Future Work

While CoDiLA establishes a new standard for DLM decoding, the authors identify a few areas for future refinement:

  • Dynamic Block Lengths: Currently, the block size is a fixed hyperparameter. Future iterations could utilize semantically grounded block lengths, dynamically sizing blocks based on logical statements or function boundaries.
  • Training Overhead: The auxiliary AR model requires specific finetuning on the target domain (e.g., code) to function as an effective refiner.
  • Domain Expansion: The current research heavily emphasizes code generation. Testing CoDiLA's efficacy on natural language tasks, creative writing, or mathematical reasoning remains an exciting open frontier.

Summary updated

BibTeX
@inproceedings{hersche2026locally,
  author = {Michael Hersche and Nicolas Menet and Ronan Tanios and Abbas Rahimi},
  title = {{Locally Coherent Parallel Decoding in Diffusion Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=hn4ndkaD6x},
}
Figure