Large Language Model Meets Constraint Propagation
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. AI, Arts & Creativity. Pages 10036-10044.
https://doi.org/10.24963/ijcai.2025/1115
Keywords
- Methods and resources: Techniques for combining fast inference and problem solving
- Methods and resources: Applications and software frameworks
- Application domains: Text, literature and creative language
Abstract
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.
@inproceedings{ijcai2025p1115,
title = {Large Language Model Meets Constraint Propagation},
author = {Bonlarron, Alexandre and Régin, Florian and De Maria, Elisabetta and Régin, Jean-Charles},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {10036--10044},
year = {2025},
month = {8},
note = {AI, Arts & Creativity},
doi = {10.24963/ijcai.2025/1115},
url = {https://doi.org/10.24963/ijcai.2025/1115},
}
TY - CPAPER TI - Large Language Model Meets Constraint Propagation AU - Bonlarron, Alexandre AU - Régin, Florian AU - De Maria, Elisabetta AU - Régin, Jean-Charles T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 10036 EP - 10044 DO - 10.24963/ijcai.2025/1115 UR - https://doi.org/10.24963/ijcai.2025/1115 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: