Continuous Diffusion Models Can Obey Formal Syntax
On the map: Diffusion models → Discrete and text diffusion
Abstract (arXiv)
Diffusion language models offer a promising alternative to autoregressive models due to their global, non-causal generation process, but their continuous latent dynamics make discrete constraints -- e.g., the output should be a JSON file that matches a given schema -- difficult to impose. We introduce a training-free guidance method for steering continuous diffusion language models to satisfy formal syntactic constraints expressed using regular expressions. Our approach constructs an analytic score estimating the probability that a latent state decodes to a valid string accepted by a given regular expression, and uses its gradient to guide sampling, without training auxiliary classifiers. The denoising process targets the base model conditioned on syntactic validity. We implement our method in Diffinity on top of the PLAID diffusion model and evaluate it on 180 regular-expression constraints over JSON and natural-language benchmarks. Diffinity achieves 68-96% constraint satisfaction while incurring only a small perplexity cost relative to unconstrained sampling, outperforming autoregressive constrained decoding in both constraint satisfaction and output quality. Diffinity is open-sourced at github.com/large-loris-models/Diffinity.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 18 of its 27 references that are in the map. First posted on arXiv 12 Feb 2026.
Builds on
18 of 27 references.
Closest ancestors · 5
Same direction, newest first
- 2025Dream 7B: Diffusion Large Language Models21 Aug
- 2025Continuous Diffusion Model for Language Modeling17 Feb
- 2025Large Language Diffusion Models14 Feb
- 2023Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution25 Oct
- 2023Likelihood-Based Diffusion Language Models30 May
Other references · 13
- 2020Denoising Diffusion Probabilistic Modelscited by 20,952
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,028
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,213
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,685
- 2021Variational Diffusion Modelscited by 1,148
- 2022Diffusion-LM Improves Controllable Text Generationcited by 1,012
- 2023Efficient Guided Generation for Large Language Modelscited by 197
- 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 188
- 2025JSONSchemaBench: A Rigorous Benchmark of Structured Outputs for Language Modelscited by 69
- 2024Grammar-Aligned Decodingcited by 54
- 2025Flexible and Efficient Grammar-Constrained Decodingcited by 42
- 2025Constrained Sampling for Language Models Should Be Easy: An MCMC Perspectivecited by 14
1 more
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026CoDAR: Continuous Diffusion Language Models are More Powerful Than You Think
- 2026Constraints Are Graphs, Not Chains: Exact Decoding for Diffusion Language Models
- 2026Constrained Decoding for Diffusion Language Models via Efficient Inference over Finite Automata
- 2025Diffusion Beats Autoregressive in Data-Constrained Settings
- 2026Hierarchical Continuous Diffusion Language Models
- 2025A Survey on Diffusion Language Models
- 2026LESS Is More: Mutual-Stability Sampling for Diffusion Language Models
- 2025Breaking AR's Sampling Bottleneck: Provable Acceleration via Diffusion Language Models