mlsanityData to 7 Oct 2026

Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammars

arXiv 2602.00612 ↗First posted 31 Jan 2026cs.CLcited by 6

Not on the map. Why?

Abstract (arXiv)

Diffusion Large Language Models (dLLMs) have demonstrated promising generative capabilities and are increasingly used to produce formal languages defined by context-free grammars, such as source code and chemical expressions. However, as probabilistic models, they still struggle to generate syntactically valid outputs reliably. A natural and promising direction to address this issue is to adapt constrained decoding techniques to enforce grammatical correctness during generation. However, applying these techniques faces two primary obstacles. On the one hand, the non-autoregressive nature of dLLMs renders most existing constrained decoding approaches inapplicable. On the other hand, current approaches specifically designed for dLLMs may allow intermediate outputs that are impossible to complete into valid sentences, which significantly limits their reliability in practice. To address these challenges, we present LAVE, a constrained decoding approach specifically designed for dLLMs. Our approach leverages a key property of dLLMs, namely their ability to predict token distributions for all positions in parallel during each forward pass. Whenever a new token is proposed by model, LAVE performs lookahead using these distributions to efficiently and reliably verify the validity of the proposed token. This design ensures reliable constraints by reliably preserving the potential for intermediate outputs to be extended into valid sentences. Extensive experiments across four widely used dLLMs and three representative benchmarks demonstrate that LAVE consistently outperforms existing baselines and achieves substantial improvements in syntactic correctness, while incurring negligible runtime overhead.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 46 of its 64 references that are in the map. First posted on arXiv 31 Jan 2026.

Builds on

46 of 64 references.

References · 46

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  4. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  5. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  6. 2024Simple and Effective Masked Diffusion Language Modelscited by 800
  7. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
  8. 2025LLaDA 1.5: Variance-Reduced Preference Optimization for Large Language Diffusion Modelscited by 273
  9. 2024Scaling Diffusion Language Models via Adaptation from Autoregressive Modelscited by 268
  10. 2025Mercury: Ultra-Fast Language Models Based on Diffusioncited by 225
  11. 2025AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agentscited by 196
  12. 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 186
34 more
  1. 2025DiffuCoder: Understanding and Improving Masked Diffusion Models for Code Generationcited by 184
  2. 2025Seed Diffusion: A Large-Scale Diffusion Language Model with High-Speed Inferencecited by 173
  3. 2025dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Cachingcited by 168
  4. 2025LLaDA2.0: Scaling Up Diffusion Language Models to 100Bcited by 154
  5. 2025LLaDA-V: Large Language Diffusion Models with Visual Instruction Tuningcited by 145
  6. 2025Diffusion LLMs Can Do Faster-Than-AR Inference via Discrete Diffusion Forcingcited by 111
  7. 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 99
  8. 2022Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generationcited by 90
  9. 2020A Theoretical Analysis of the Repetition Problem in Text Generationcited by 83
  10. 2025Dream-Coder 7B: An Open Diffusion Language Model for Codecited by 81
  11. 2025FlashDLM: Accelerating Diffusion Language Model Inference via Efficient KV Caching and Guided Diffusioncited by 77
  12. 2024SynCode: LLM Generation with Grammar Augmentationcited by 66
  13. 2025Sparse-dLLM: Accelerating Diffusion LLMs with Dynamic Cache Evictioncited by 64
  14. 2025Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlocited by 45
  15. 2025Flexible and Efficient Grammar-Constrained Decodingcited by 42
  16. 2023Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspectivecited by 39
  17. 2025WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inferencecited by 38
  18. 2024Constrained Decoding for Secure Code Generationcited by 35
  19. 2025Attention Is All You Need for KV Cache in Diffusion LLMscited by 32
  20. 2024IterGen: Iterative Semantic-aware Structured LLM Generation with Backtrackingcited by 28
  21. 2025Free Draft-and-Verification: Toward Lossless Parallel Decoding for Diffusion Large Language Modelscited by 19
  22. 2025DINGO: Constrained Inference for Diffusion LLMscited by 15
  23. 2025Constrained Decoding of Diffusion LLMs with Context-Free Grammarscited by 13
  24. 2025Pre3: Enabling Deterministic Pushdown Automata for Faster Structured LLM Generationcited by 11
  25. 2025TreeDiff: AST-Guided Code Generation with Diffusion LLMscited by 11
  26. 2025DEER: Draft with Diffusion, Verify with Autoregressive Modelscited by 9
  27. 2022CodePAD: Sequence-based Code Generation with Pushdown Automatoncited by 7
  28. 2024Using Grammar Masking to Ensure Syntactic Validity in LLM-based Modeling Taskscited by 6
  29. 2024Constrained Decoding with Speculative Lookaheadscited by 6
  30. 2025Rethinking Repetition Problems of LLMs in Code Generationcited by 6
  31. 2024FANTAstic SEquences and Where to Find Them: Faithful and Efficient API Call Generation through State-tracked Constrained Decoding and Rerankingcited by 5
  32. 2022On the Intersection of Context-Free and Regular Languagescited by 3
  33. 2025Earley-Driven Dynamic Pruning for Efficient Structured Decodingcited by 3
  34. 2025Constrained Adaptive Rejection Samplingcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.