Large Language Model Meets Constraint Propagation
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) excel at generating fluent text but struggle to enforce external constraints because they generate tokens sequentially without explicit control mechanisms. GenCP addresses this limitation by combining LLM predictions with Constraint Programming (CP) reasoning, formulating text generation as a Constraint Satisfaction Problem (CSP). In this paper, we improve GenCP by integrating Masked Language Models (MLMs) for domain generation, which allows bidirectional constraint propagation that leverages both past and future tokens. This integration bridges the gap between token-level prediction and structured constraint enforcement, leading to more reliable and constraint-aware text generation. Our evaluation on COLLIE benchmarks demonstrates that incorporating domain preview via MLM calls significantly improves GenCP's performance. Although this approach incurs additional MLM calls and, in some cases, increased backtracking, the overall effect is a more efficient use of LLM inferences and an enhanced ability to generate feasible and meaningful solutions, particularly in tasks with strict content constraints.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 18 of its 33 references that are in the map. First posted on arXiv 29 May 2025.
Builds on
18 of 33 references.
References · 18
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 815
- 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 237
- 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 182
- 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
- 2020Thinking Fast and Slow in AIcited by 70
- 2023COLLIE: Systematic Construction of Constrained Text Generation Taskscited by 70
6 more
- 2024Where is the signal in tokenization space?cited by 21
- 2022Why is constrained neural language generation particularly challenging?cited by 19
- 2024Combining Constraint Programming Reasoning with Large Language Model Predictionscited by 8
- 2023Constraints First: A New MDD-based Model to Generate Sentences Under Constraintscited by 4
- 2024Markov Constraint as Large Language Model Surrogatecited by 3
- 2024Intertwining CP and NLP: The Generation of Unreasonably Constrained Sentencescited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.