---
title: "Constraining Generative Models: A Survey from the Constraint Programming Perspective"
authors:
  - "Alexandre Bonlarron"
  - "François Pachet"
  - "Pierre Roy"
  - "Jean-Charles Régin"
doi: "10.24963/ijcai.2026/864"
url: "https://ijcai.org/proceedings/2026/864"
pdf: "https://ijcai.org/proceedings/2026/0864.pdf"
venue: "Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence"
year: 2026
pages: "7777-7786"
track: "Survey Track"
keywords:
  - "Search: Combinatorial search and optimisation"
  - "Multidisciplinary Topics and Applications: Arts and creativity"
  - "Constraint Satisfaction and Optimization: Constraint programming"
  - "Machine Learning: Generative models"
---

# Constraining Generative Models: A Survey from the Constraint Programming Perspective

Alexandre Bonlarron, François Pachet, Pierre Roy, Jean-Charles Régin

*Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence*, pages 7777-7786. DOI: [10.24963/ijcai.2026/864](https://doi.org/10.24963/ijcai.2026/864)

## Abstract

Generative models produce long and high probability sequences, yet they often fail to satisfy explicit constraints set by users. Over the past two decades, Constraint Programming (CP) has provided a complementary paradigm: combining generative models with a constraint solver to guarantee feasibility. This survey reviews the main concepts behind these CP-driven hybrid approaches, from enforcing ubiquitous structural rules (e.g., length and patterns) to preventing plagiarism. It synthesizes how learned models can be treated as constraints, compiled structures, or probabilistic factors. We highlight what has remained stable across applications, then discuss how these principles transfer to the Large Language Model era and outline open challenges for controllable and trustworthy generative systems.
