paper-with-me

Papers

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

2026-01-31 · Yitong Zhang, Yongmin Li, Yuetong Liu, Jia Li, Xiaoran Jia, Zherui Li, Ge Li 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.

📄 PDF Abstract BibTeX arXiv:2602.00612

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Constrained Decoding with Speculative Lookaheads

2024-12-09 · Nishanth Nakshatri, Shamik Roy, Rajarshi Das, Suthee Chaidaroon 외

Constrained decoding with lookahead heuristics (CDLH) is a highly effective method for aligning LLM generations to human preferences. However, the extensive lookahead roll-out operations for each generated token makes CD…

NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristics

2021-12-16 · NAACL 2022 7 · Ximing Lu, Sean Welleck, Peter West, Liwei Jiang 외

The dominant paradigm for neural text generation is left-to-right decoding from autoregressive language models. Constrained or controllable generation under complex lexical constraints, however, requires foresight to pla…

Machine TranslationTable-to-Text GenerationText Generation

LoPA: Scaling dLLM Inference via Lookahead Parallel Decoding

2025-12-18 · Chenkai Xu, Yijie Jin, Jiajun Li, Yi Tu 외 arxiv

Diffusion Large Language Models (dLLMs) have demonstrated significant potential for high-speed inference. However, current confidence-driven decoding strategies are constrained by limited parallelism, typically achieving…

Adaptive Multi-Step Lookahead Decoding for Diffusion Language Models

2026-07-17 · Yingqian Cui, Wei Deng, Lantao Mei, Hang Li 외 arxiv

Masked diffusion language models (DLMs) enable parallel text generation by iteratively refining masked tokens, offering a promising alternative to autoregressive decoding. Recent lookahead-based decoding methods improve …

Text Generation

Break the Sequential Dependency of LLM Inference Using Lookahead Decoding

2024-02-03 · Yichao Fu, Peter Bailis, Ion Stoica, Hao Zhang

Autoregressive decoding of large language models (LLMs) is memory bandwidth bounded, resulting in high latency and significant wastes of the parallel processing power of modern accelerators. Existing methods for accelera…

Code Completion