Constraints Are Graphs, Not Chains: Exact Decoding for Diffusion Language Models
On the map: Diffusion models → Discrete and text diffusion
Abstract (arXiv)
Diffusion language models (dLLMs) predict masked positions in arbitrary order, but their exact constrained decoders still encode constraints as sequential languages, whose state must track every unresolved dependency between positions. For relational constraints this encoding grows exponentially: for same-order copy, every finite automaton needs 4k states, deterministic or nondeterministic, and every context-free grammar has size 2Omega(k), while the factor graph of the same relation has size O(k) and a 16-entry peak table. We introduce FactorDLM, a training-free decoder that represents finite-domain relations as a factor graph and, at each denoising step, conditions the model's mean-field prediction on that graph exactly by variable elimination. Decoding cost then grows exponentially with the induced width of the constraint graph, which replaces automaton size as the governing parameter. Because a finite automaton is a chain-shaped factor graph, one compiler enforces syntax and nonlocal relations together: on JSON records with cross-field references, a schema automaton alone leaves references dangling, relational factors alone produce malformed JSON, and the combined plan is valid on both counts, including on records of variable length. Across nine relational benchmarks and three backbones, every output satisfies every declared constraint at 0.4-6.9% projection overhead, where unconstrained decoding is 0-79% valid, and compiled projection answers repeated queries 13.6x faster than CP-SAT with eight parallel workers. Because model-free rules solve three of five standard benchmarks, we construct benchmarks with exact chance and fixed-template floors, on which selecting among exact constrained samples beats greedy projection. Which encoding is cheaper, sequential state or direct factors, depends on the constraint and is computable before decoding begins.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 23 of its 33 references that are in the map. First posted on arXiv 26 Sep 2026.
Builds on
23 of 33 references.
Closest ancestors · 9
Same direction, newest first
- 2026Constrained Decoding for Diffusion Language Models via Efficient Inference over Finite Automata8 Jul
- 2026EPIC: Efficient and Parallel Inference under CFG Constraints for Diffusion Language Models30 May
- 2026Constrained Code Generation with Discrete Diffusion16 May
- 2026Primal-Dual Guided Decoding for Constrained Discrete Diffusion10 May
- 2026Search or Accelerate: Confidence-Switched Position Beam Search for Diffusion Language Models11 Feb
- 2026Breaking the Factorization Barrier in Diffusion Language Models9 Feb
- 2025Guided Discrete Diffusion for Constraint Satisfaction Problems16 Dec
- 2025Dream 7B: Diffusion Large Language Models21 Aug
- 2025Large Language Diffusion Models14 Feb
Other references · 14
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2020Shortcut Learning in Deep Neural Networkscited by 1,969
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,719
- 2018Annotation Artifacts in Natural Language Inference Datacited by 671
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
- 2020NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraintscited by 149
- 2024NATURAL PLAN: Benchmarking LLMs on Natural Language Planningcited by 128
- 2023SatLM: Satisfiability-Aided Language Models Using Declarative Promptingcited by 102
- 2013A Differential Approach to Inference in Bayesian Networkscited by 93
- 2026Generative Recursive Reasoningcited by 20
- 2025DINGO: Constrained Inference for Diffusion LLMscited by 16
- 2025Constrained Decoding of Diffusion LLMs with Context-Free Grammarscited by 14
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Twist, Don't Tilt: Trajectory-Exact Constrained Decoding for Masked Diffusion Models
- 2026Continuous Diffusion Models Can Obey Formal Syntax
- 2026What Gets Unmasked First? Trajectory Analysis of Diffusion Models for Graph-to-Text Generation
- 2025Diffusion Language Model Inference with Monte Carlo Tree Search
- 2026Unified Energy for Invariant and Independent Decoding in Diffusion Language Models
- 2025Beyond Confidence: Adaptive and Coherent Decoding for Diffusion Language Models
- 2026AsyncLane: Decoupling Refinement from Advancement in Diffusion Language Model Decoding
- 2026Window-Diffusion: Accelerating Diffusion Language Model Inference with Windowed Token Pruning and Caching