Proceedings

Constraining Generative Models: A Survey from the Constraint Programming Perspective

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Survey Track. Pages 7777-7786.

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.

  1. [Ahmed et al., 2026] Ahmed Ahmed, A. Feder Cooper, Sanmi Koyejo, and Percy Liang. Extracting books from production language models, 2026.
  2. [Allen, 1983] James F. Allen. Maintaining knowledge about temporal intervals. Commun. ACM, 26(11):832-843, November 1983.
  3. [Barbieri et al., 2012] Gabriele Barbieri, Francois Pachet, Pierre Roy, and Mirko Degli Esposti. Markov constraints for generating lyrics with style. Frontiers in Artificial In- telligence and Applications, 242, 08 2012.
  4. [Bonlarron and Régin, 2024a] Alexandre Bonlarron and Jean-Charles Régin. Intertwining cp and nlp: The gen- eration of unreasonably constrained sentences. In IJCAI, 2024. IJCAI
  5. [Bonlarron and Régin, 2024b] Alexandre Bonlarron and Jean-Charles Régin. Markov constraint as large language model surrogate. In IJCAI, 2024. IJCAI
  6. [Bonlarron et al., 2023] Alexandre Bonlarron, Aurélie Cal- abrèse, Pierre Kornprobst, and Jean-Charles Régin. Con- straints first: A new MDD-based model to generate sen- tences under constraints. In IJCAI, 2023. IJCAI
  7. [Bonlarron et al., 2025] Alexandre Bonlarron, Florian Régin, Elisabetta De Maria, and Jean-Charles Régin. Large language model meets constraint propagation. In James Kwok, editor, Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25, pages 10036-10044, 2025. IJCAI
  8. [Cappart et al., 2025] Quentin Cappart, Tias Guns, Michele Lombardi, Gilles Pesant, and Dimos Tsouros. Combining constraint programming and machine learning: From cur- rent progress to future opportunities. Journal of Artificial Intelligence Research, 84, 2025.
  9. [Castro et al., 2022] Margarita P. Castro, Andre A. Cire, and J. Christopher Beck. Decision diagrams for discrete opti- mization: A survey of recent advances. INFORMS Journal on Computing, 34(4):2271-2295, 2022.
  10. [Dechter, 2003] Rina Dechter. Constraint processing. Else- vier, 2003.
  11. [Garbacea and Mei, 2025] Cristina Garbacea and Qiaozhu Mei. Why is constrained neural language generation par- ticularly challenging? Transactions on Machine Learning Research, 2025.
  12. [Hochreiter and Schmidhuber, 1997] Sepp Hochreiter and Jürgen Schmidhuber. Long Short-Term Memory. Neural Computation, 9(8):1735-1780, 11 1997.
  13. [Jiang et al., 2022] Nan Jiang, Maosen Zhang, Willem-Jan Van Hoeve, and Yexiang Xue. Constraint reasoning em- bedded structured prediction. Journal of machine learning research, 23(345):1-40, 2022.
  14. [Khovanskii, 1992] Askold Georgievich Khovanskii. New- ton polyhedron, hilbert polynomial, and sums of finite sets. Functional Analysis and Its Applications, 26(4):276-281, 1992.
  15. [Lafleur et al., 2022] Daphné Lafleur, Sarath Chandar, and Gilles Pesant. Combining reinforcement learning and con- straint programming for sequence-generation tasks with hard constraints. In CP 2022, 2022.
  16. [Lamport, 1987] Leslie Lamport. My writings. https: //lamport.azurewebsites.net/pubs/pubs.html, 1987. Ac- cessed: 2026-06-08. Link
  17. [Legge, 2021] Gordon E. Legge. Psychophysics of Reading in Normal and Low Vision. CRC Press, 2 edition, 2021.
  18. [Manibod et al., 2025] Virasone Manibod, David Saikali, and Gilles Pesant. Constrained sequential inference in ma- chine learning using constraint programming. In James Kwok, editor, Proceedings of the Thirty-Fourth Interna- tional Joint Conference on Artificial Intelligence, IJCAI- 25, 2025.
  19. [Mézard and Montanari, 2009] Marc Mézard and Andrea Montanari. Information, Physics, and Computation. Ox- ford University Press, Oxford, UK, 2009.
  20. [Norvig, 2002] Peter Norvig. World's longest palindrome sentence. http://norvig.com/palindrome.html, 2002. Link
  21. [Pachet and Roy, 2011] Franc ¸ois Pachet and Pierre Roy. Markov constraints: Steerable generation of markov se- quences. Constraints, 16(2):148-172, apr 2011.
  22. [Pachet et al., 2011] Francois Pachet, Pierre Roy, and Gabriele Barbieri. Finite-length markov processes with constraints. In Proceedings of the Twenty-Second Inter- national Joint Conference on Artificial Intelligence, IJ- CAI'11, pages 635-642. AAAI Press, 2011. IJCAI
  23. [Pachet et al., 2015] Franc ¸ois Pachet, Pierre Roy, Alexandre Papadopoulos, and Jason Sakellariou. Generating 1/f noise sequences as constraint satisfaction: The voss constraint. In Proceedings of IJCAI 2015, pages 2482-2488, 2015. IJCAI
  24. [Pachet et al., 2021] Franc ¸ois Pachet, Pierre Roy, and Benoit Carré. Assisted music creation with flow machines: to- wards new categories of new, 2021.
  25. [Pachet, 2003] Francois Pachet. The continuator: Musical interaction with style. Journal of New Music Research, 32(3):333-341, 2003.
  26. [Pachet, 2026] Franc ¸ois Pachet. Tonal parsimony in chord- sequence analysis: combining modulation cost and tonal vocabulary, 2026.
  27. [Papadopoulos et al., 2014] Alexandre Papadopoulos, Pierre Roy, and Franc ¸ois Pachet. Avoiding plagiarism in markov sequence generation. In Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence, AAAI'14, page 2731-2737. AAAI Press, 2014.
  28. [Papadopoulos et al., 2015a] Alexandre Papadopoulos, Franc ¸ois Pachet, Pierre Roy, and Jason Sakellariou. Exact sampling for regular and markov constraints with belief propagation. In Gilles Pesant, editor, Principles and Practice of Constraint Programming, pages 341-350, Cham, 2015. Springer International Publishing.
  29. [Papadopoulos et al., 2015b] Alexandre Papadopoulos, Pierre Roy, Jean-Charles Régin, and Franc ¸ois Pachet. Generating all possible palindromes from ngram corpora. In Proceedings of the 24th International Conference on Artificial Intelligence, IJCAI'15, page 2489-2495. AAAI Press, 2015. IJCAI
  30. [Papadopoulos et al., 2016] Alexandre Papadopoulos, Pierre Roy, and Franc ¸ois Pachet. Assisted lead sheet composition using flowcomposer. In Michel Rueher, editor, Principles and Practice of Constraint Programming, pages 769-785, Cham, 2016. Springer International Publishing.
  31. [Pearl, 1986] Judea Pearl. Fusion, propagation, and structur- ing in belief networks. Artificial Intelligence, 29(3):241- 288, 1986.
  32. [Perez and Régin, 2015] Guillaume Perez and Jean-Charles Régin. Efficient operations on MDDs for building con- straint programming models. In Proceedings of the Inter- national Joint Conference on Artificial Intelligence, 2015. IJCAI
  33. [Perez and Régin, 2017] Guillaume Perez and Jean-Charles Régin. MDDs: Sampling and probability constraints. In Proceedings of the International Conference on Principles and Practice of Constraint Programming, page 226-242, 2017.
  34. [Perez et al., 2018] Guillaume Perez, Brendan Rappazzo, and Carla P. Gomes. Extending the capacity of 1/f noise generation. In CP 2018, 2018.
  35. [Pesant, 2004] Gilles Pesant. A regular language member- ship constraint for finite sequences of variables. In Mark Wallace, editor, Principles and Practice of Constraint Pro- gramming -CP 2004, pages 482-495, Berlin, Heidelberg, 2004. Springer Berlin Heidelberg.
  36. [Pesant, 2019] Gilles Pesant. From support propagation to belief propagation in constraint programming. J. Artif. In- tell. Res., 66:123-150, 2019.
  37. [Radner, 2017] W. Radner. Reading charts in ophthalmol- ogy. Graefe's Archive for Clinical and Experimental Oph- thalmology, 255(8):1465-1482, August 2017.
  38. [Régin, 1994] Jean-Charles Régin. A filtering algorithm for constraints of difference in csps. In Proceedings of the Twelfth National Conference on Artificial Intelligence (Vol. 1), page 362-367, USA, 1994. American Association for Artificial Intelligence.
  39. [Rivaud and Pachet, 2017] Stephane Rivaud and Franc ¸ois Pachet. Sampling markov models under constraints: Com- plexity results for binary equalities and grammar member- ship, 2017.
  40. [Rivaud et al., 2016] Stephane Rivaud, Franc ¸ois Pachet, and Pierre Roy. Sampling markov models under binary equal- ity constraints is hard. In Journées Francophones sur les Réseaux Bayésiens et les Modèles Graphiques Prob- abilistes, Clermont-Ferrand, France, 2016.
  41. [Ross, 1995] Sheldon M Ross. Stochastic processes. John Wiley & Sons, 1995.
  42. [Rossi et al., 2006] Francesca Rossi, Peter Van Beek, and Toby Walsh. Handbook of constraint programming. El- sevier, 1st edition, 2006.
  43. [Roy and Pachet, 2013] Pierre Roy and Francois Pachet. En- forcing meter in finite-length markov sequences. Pro- ceedings of the AAAI Conference on Artificial Intelligence, 27(1):854-861, Jun. 2013.
  44. [Roy et al., 2016] Pierre Roy, Guillaume Perez, Jean- Charles Régin, Alexandre Papadopoulos, F. Pachet, and M. Marchini. Enforcing structure on temporal sequences: the Allen constraint. In International conference on principles and practice of constraint programming, page 786-801. Springer, 2016.
  45. [Régin et al., 2024] Florian Régin, Elisabetta De Maria, and Alexandre Bonlarron. Combining Constraint Program- ming Reasoning with Large Language Model Predictions. In 30th International Conference on Principles and Prac- tice of Constraint Programming (CP 2024), 2024.
  46. [Sprockeels and Van Roy, 2024] Damien Sprockeels and Pe- ter Van Roy. Expressing musical ideas with constraint programming using a model of tonal harmony. In Kate Larson, editor, Proceedings of the Thirty-Third Interna- tional Joint Conference on Artificial Intelligence, IJCAI- 24, pages 7753-7761, 2024.
  47. [Sprockeels and Van Roy, 2025] Damien Sprockeels and Pe- ter Van Roy. Towards a practical tool for music com- position: Using constraint programming to model chord progressions and modulations. In James Kwok, editor, Proceedings of the Thirty-Fourth International Joint Con- ference on Artificial Intelligence, IJCAI-25, pages 10171- 10179, 2025.
  48. [Vassallo et al., 2025] Juan S. Vassallo, Örjan Sandred, and Julien Vincenot. Neuralconstraints: integrating a neu- ral generative model with constraint-based composition. Frontiers in Computer Science, Volume 7 -2025, 2025.
  49. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Sys- tems, pages 5998-6008, 2017.
  50. [Voss and Clarke, 1978] Richard F. Voss and John Clarke. "1/f noise" in music: Music from 1/f noise. The Jour- nal of the Acoustical Society of America, 63(1):258-263, 01 1978.
  51. [Wang and Shu, 2025] Haoran Wang and Kai Shu. Make ev- ery token count: A systematic survey on decoding meth- ods for foundation models, 01 2025.
  52. [Yao et al., 2024] Shunyu Yao, Howard Chen, Austin W. Hanjie, Runzhe Yang, and Karthik R Narasimhan. COL- LIE: Systematic construction of constrained text genera- tion tasks. In The Twelfth International Conference on Learning Representations, 2024.
  53. [Zheng et al., 2023] Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. Judging LLM-as-a- judge with MT-bench and chatbot arena. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards