mlsanityData to 7 Oct 2026

Constrained Decoding for Diffusion Language Models via Efficient Inference over Finite Automata

arXiv 2607.07026 ↗First posted 8 Jul 2026cs.LGcited by 3

On the map: Diffusion models → Discrete and text diffusion

Abstract (arXiv)

Constrained decoding is essential for serving LLMs, ensuring that generated outputs follow specific structures such as JSON schema-formatted function calls. Existing systems are designed for autoregressive models and assume left-to-right generation, masking out invalid next tokens at each step. Diffusion language models, however, break this assumption: they sample multiple positions simultaneously from a fully-factorized mean-field distribution at each denoising step. In this paper, we present an exact and tractable algorithm for sampling from the constrained mean-field posterior under any constraint expressible as a finite automaton. Viewing finite automata as graphical models, we obtain tractable representations of the constrained distribution that enable efficient inference. The approach guarantees constraint satisfaction by construction, supports both greedy and sampling-based decoding, and is compatible with parallel and block-wise decoding under arbitrary remasking schedules. Applying depth-reduction techniques from arithmetic circuit theory, we further reduce sampling depth from linear to logarithmic in the sequence length. Empirical evaluations on Dream-7B and LLaDA-8B show substantial accuracy gains across various tasks including function calling (xLAM, BFCL), planning (Sudoku, Countdown), text-to-SQL (Spider), and math reasoning (GSM-Symbolic), with little inference overhead relative to unconstrained decoding. For example, on BFCL-Live, our approach improves Dream-7B's greedy decoding accuracy from 63.9% to 71.5%, and stochastic sampling accuracy from 22.3% to 69.0%, where the unconstrained baseline collapses, with under 5% wall-clock overhead.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 27 of its 37 references that are in the map. First posted on arXiv 8 Jul 2026.

Builds on

27 of 37 references.

Closest ancestors · 7

Same direction, newest first

  1. 2025Dream 7B: Diffusion Large Language Models21 Aug
  2. 2025Seed Diffusion: A Large-Scale Diffusion Language Model with High-Speed Inference4 Aug
  3. 2025Large Language Diffusion Models14 Feb
  4. 2024Simple and Effective Masked Diffusion Language Models11 Jun
  5. 2024Simplified and Generalized Masked Diffusion for Discrete Data6 Jun
  6. 2024Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data6 Jun
  7. 2023Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution25 Oct

Other references · 20

  1. 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,665
  2. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
  3. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  4. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  5. 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 533
  6. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
  7. 2025Mercury: Ultra-Fast Language Models Based on Diffusioncited by 225
  8. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
  9. 2023Efficient Guided Generation for Large Language Modelscited by 192
  10. 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasetscited by 188
  11. 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
  12. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
8 more
  1. 2024XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Modelscited by 73
  2. 2024SynCode: LLM Generation with Grammar Augmentationcited by 66
  3. 2025Flexible and Efficient Grammar-Constrained Decodingcited by 42
  4. 2025DINGO: Constrained Inference for Diffusion LLMscited by 15
  5. 2025Constrained Decoding of Diffusion LLMs with Context-Free Grammarscited by 13
  6. 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposalscited by 8
  7. 2024Restructuring Tractable Probabilistic Circuitscited by 7
  8. 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammarscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026EPIC: Efficient and Parallel Inference under CFG Constraints for Diffusion Language Models
  2. 2026Continuous Diffusion Models Can Obey Formal Syntax
  3. 2026S2D2: Fast Decoding for Diffusion LLMs via Training-Free Self-Speculation
  4. 2026LESS Is More: Mutual-Stability Sampling for Diffusion Language Models
  5. 2026Rethinking the Generation Order of Block Diffusion Language Models
  6. 2025From Bits to Rounds: Parallel Decoding with Exploration for Diffusion Language Models
  7. 2026Early-Bird Decoding: Accelerating Diffusion LLMs with Learnable Block Sizes and Parallel Sampling
  8. 2026SimSD: Simple Speculative Decoding in Diffusion Language Models