Efficient and Asymptotically Unbiased Constrained Decoding for Large Language Models
Not on the map. Why?
Abstract (arXiv)
In real-world applications of large language models, outputs are often required to be confined: selecting items from predefined product or document sets, generating phrases that comply with safety standards, or conforming to specialized formatting styles. To control the generation, constrained decoding has been widely adopted. However, existing prefix-tree-based constrained decoding is inefficient under GPU-based model inference paradigms, and it introduces unintended biases into the output distribution. This paper introduces Dynamic Importance Sampling for Constrained Decoding (DISC) with GPU-based Parallel Prefix-Verification (PPV), a novel algorithm that leverages dynamic importance sampling to achieve theoretically guaranteed asymptotic unbiasedness and overcomes the inefficiency of prefix-tree. Extensive experiments demonstrate the superiority of our method over existing methods in both efficiency and output quality. These results highlight the potential of our methods to improve constrained generation in applications where adherence to specific constraints is essential.
Key facts. Cited by 5 papers in the map (data through 13 Oct 2026). Builds on 32 of its 57 references that are in the map. First posted on arXiv 12 Apr 2025.
Builds on
32 of 57 references.
References · 32
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2023GPT-4 Technical Reportcited by 18,278
- 2024The Llama 3 Herd of Modelscited by 14,486
- 2023Visual Instruction Tuningcited by 7,827
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,716
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,925
- 2023MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Modelscited by 2,703
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,368
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,237
- 2023mPLUG-Owl: Modularization Empowers Large Language Models with Multimodalitycited by 1,040
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 617
20 more
- 2019ELI5: Long Form Question Answeringcited by 571
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
- 2017Zero-Shot Relation Extraction via Reading Comprehensioncited by 425
- 2020Autoregressive Entity Retrievalcited by 333
- 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 234
- 2023SafetyBench: Evaluating the Safety of Large Language Modelscited by 197
- 2020CLIMATE-FEVER: A Dataset for Verification of Real-World Climate Claimscited by 195
- 2023Recommender Systems with Generative Retrievalcited by 192
- 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 188
- 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 181
- 2021MasakhaNER: Named Entity Recognition for African Languagescited by 155
- 2022Autoregressive Search Engines: Generating Substrings as Document Identifierscited by 112
- 2016Guided Open Vocabulary Image Captioning with Constrained Beam Searchcited by 105
- 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 100
- 2018CGMH: Constrained Sentence Generation by Metropolis-Hastings Samplingcited by 93
- 2023Learning to Tokenize for Generative Retrievalcited by 67
- 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?cited by 54
- 2018Improving Entity Linking by Modeling Latent Relations between Mentionscited by 53
- 2018Pytrec_eval: An Extremely Fast Python Interface to trec_evalcited by 46
- 2019Neural Grammatical Error Correction with Finite State Transducerscited by 6
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Vectorizing the Trie: Efficient Constrained Decoding for LLM-based Generative Retrieval on Acceleratorscited by 6
- 2026The Format Taxcited by 3
- 2026Schema-Key Wording as an Instruction Channel in Structured Generation under Constrained Decodingcited by 2
- 2026Autoregressive Ranking: Bridging the Gap Between Dual and Cross Encoderscited by 1
- 2026DecompressionLM: Deterministic, Diagnostic, and Zero-Shot Concept Graph Extraction from Language Modelscited by 0
- 2026Schema-Key Wording as an Instruction Channel in Structured Generation under Constrained Decoding16 Apr 2026
- 2026The Format Tax4 Apr 2026
- 2026Vectorizing the Trie: Efficient Constrained Decoding for LLM-based Generative Retrieval on Accelerators26 Feb 2026
- 2026DecompressionLM: Deterministic, Diagnostic, and Zero-Shot Concept Graph Extraction from Language Models30 Jan 2026
- 2026Autoregressive Ranking: Bridging the Gap Between Dual and Cross Encoders9 Jan 2026