Proceedings

One Model, Any CSP: Graph Neural Networks as Fast Global Search Heuristics for Constraint Satisfaction

Download BibTeX Cite

Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence. Main Track. Pages 4280-4288.

https://doi.org/10.24963/ijcai.2023/476

Abstract

We propose a universal Graph Neural Network architecture which can be trained as an end-2-end search heuristic for any Constraint Satisfaction Problem (CSP). Our architecture can be trained unsupervised with policy gradient descent to generate problem specific heuristics for any CSP in a purely data driven manner.

The approach is based on a novel graph representation for CSPs that is both generic and compact and enables us to process every possible CSP instance with one GNN, regardless of constraint arity, relations or domain size. Unlike previous RL-based methods, we operate on a global search action space and allow our GNN to modify any number of variables in every step of the stochastic search. This enables our method to properly leverage the inherent parallelism of GNNs.

We perform a thorough empirical evaluation where we learn heuristics for well known and important CSPs, both decision and optimisation problems, from random data, including graph coloring, MAXCUT, and MAX-k-SAT, and the general RB model. Our approach significantly outperforms prior end-2-end approaches for neural combinatorial optimization. It can compete with conventional heuristics and solvers on test instances that are several orders of magnitude larger and structurally more complex than those seen during training.

  1. [Amizadeh et al., 2019] Saeed Amizadeh, Sergiy Matu- sevych, and Markus Weimer. Pdp: A general neural frame- work for learning constraint satisfaction solvers. arXiv preprint arXiv:1903.01969, 2019.
  2. [Audemard et al., 2020] Gilles Audemard, Frédéric Bousse- mart, Christophe Lecoutre, Cédric Piette, and Olivier Rous- sel. Xcsp3 and its ecosystem. Constraints, 25(1):47-69, 2020.
  3. [Audemard et al., 2022] Gilles Audemard, Christophe Lecoutre, and Emmanuel Lonca, editors. XCSP3 Com- petition 2022 Proceedings, XCSP3 Competition, Artois, France, 2022. [
  4. [Audemard, 2018] Gilles Audemard. Cosoco 1.12. In XCSP3 Competition 2018 Proceedings, XCSP3 Competition, pages 78-79, 2018.
  5. [Balint and Schöning, 2018] Adrian Balint and Uwe Schön- ing. probsat. In Proceedings of SAT Competition 2018: Solver and Benchmark Descriptions. Department of Com- puter Science, University of Helsinki, 2018.
  6. [Barrett et al., 2020] Thomas Barrett, William Clements, Jakob Foerster, and Alex Lvovsky. Exploratory combi- natorial optimization with reinforcement learning. In Pro- ceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 3243-3250, 2020.
  7. [Barrett et al., 2022] Thomas D Barrett, Christopher WF Par- sonson, and Alexandre Laterre. Learning to solve combina- torial graph partitioning problems via efficient exploration. arXiv preprint arXiv:2205.14105, 2022.
  8. [Bello et al., 2016] Irwan Bello, Hieu Pham, Quoc V Le, Mo- hammad Norouzi, and Samy Bengio. Neural combinatorial optimization with reinforcement learning. arXiv preprint arXiv:1611.09940, 2016.
  9. [Benlic and Hao, 2013] Una Benlic and Jin-Kao Hao. Break- out local search for the max-cutproblem. Engineering Appli- cations of Artificial Intelligence, 26(3):1162 -1173, 2013.
  10. [Biere et al., 2021] A. Biere, M. Heule, H. Van Maaren, and T. Walsh. Handbook of Satisfiability. IOS Press, 2nd edition, 2021.
  11. [Brélaz, 1979] Daniel Brélaz. New methods to color the ver- tices of a graph. Communications of the ACM, 22(4):251- 256, 1979.
  12. [Cai and Lei, 2020] Shaowei Cai and Zhendong Lei. Old techniques in new ways: Clause weighting, unit propaga- tion and hybridization for maximum satisfiability. Artificial Intelligence, 287:103354, 2020.
  13. [Cappart et al., 2021] Quentin Cappart, Didier Chételat, Elias B. Khalil, Andrea Lodi, Christopher Morris, and Petar Veličković. Combinatorial optimization and reason- ing with graph neural networks. In Zhi-Hua Zhou, editor, Proceedings of the Thirtieth International Joint Confer- ence on Artificial Intelligence, IJCAI-21, pages 4348-4355. International Joint Conferences on Artificial Intelligence Organization, 8 2021. Survey Track. [Galinier and Hao, 1999] Philippe Galinier and Jin-Kao Hao. Hybrid evolutionary algorithms for graph coloring. Journal of combinatorial optimization, 3(4):379-397, 1999. IJCAI
  14. [Gasse et al., 2019] Maxime Gasse, Didier Chetelat, Nicola Ferroni, Laurent Charlin, and Andrea Lodi. Exact com- binatorial optimization with graph convolutional neural networks. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32.
  15. Curran Associates, Inc., 2019.
  16. [Gilmer et al., 2017] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning- Volume 70, pages 1263-1272. JMLR. org, 2017.
  17. [Goemans and Williamson, 1995] Michel X Goemans and David P Williamson. Improved approximation algo- rithms for maximum cut and satisfiability problems using semidefinite programming. Journal of the ACM (JACM), 42(6):1115-1145, 1995.
  18. [Joshi et al., 2020] Chaitanya K. Joshi, Quentin Cappart, Louis-Martin Rousseau, Thomas Laurent, and Xavier Bres- son. Learning TSP requires rethinking generalization. CoRR, abs/2006.07054, 2020.
  19. [Khalil et al., 2017] Elias Khalil, Hanjun Dai, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning combinatorial op- timization algorithms over graphs. Advances in neural information processing systems, 30, 2017.
  20. [Kool et al., 2018] Wouter Kool, Herke van Hoof, and Max Welling. Attention, learn to solve routing problems! In In- ternational Conference on Learning Representations, 2018.
  21. [Lecoutre, 2022] Christophe Lecoutre. Ace a generic con- straint solver. In XCSP3 Competition 2022 Proceedings, XCSP3 Competition, pages 58-59, 2022.
  22. [Lewis et al., 2012] Rhyd Lewis, Jonathan Thompson, Chris- tine Mumford, and Jonathan Gillard. A wide-ranging computational comparison of high-performance graph colouring algorithms. Computers & Operations Research, 39(9):1933-1950, 2012.
  23. [Lewis, 2015] Rhyd Lewis. A guide to graph colouring, vol- ume 7. Springer, 2015.
  24. [Luo et al., 2015] Chuan Luo, Shaowei Cai, Wei Wu, Zhong Jie, and Kaile Su. Ccls: An efficient local search algorithm for weighted maximum satisfiability. IEEE Transactions on Computers, 64(7):1830-1843, 2015.
  25. [Mehta, 2019] Hermish Mehta. Cvx graph algorithms. https://github.com/hermish/cvx-graph-algorithms, 2019. Link
  26. [Russell et al., 2020] S. Russell, S.J. Russell, P. Norvig, and E. Davis. Artificial Intelligence: A Modern Approach. Pren- tice Hall, 4th edition, 2020.
  27. [Selman et al., 1993] Bart Selman, Henry A Kautz, Bram Co- hen, et al. Local search strategies for satisfiability testing. Cliques, coloring, and satisfiability, 26:521-532, 1993.
  28. [Selsam et al., 2018] Daniel Selsam, Matthew Lamm, Benedikt Bünz, Percy Liang, Leonardo de Moura, and David L Dill. Learning a sat solver from single-bit supervision. arXiv preprint arXiv:1802.03685, 2018.
  29. [Tönshoff et al., 2021] Jan Tönshoff, Martin Ritzert, Hin- rikus Wolf, and Martin Grohe. Graph neural networks for maximum constraint satisfaction. Frontiers in Artificial Intelligence, 3, 2021.
  30. [Vinyals et al., 2015] Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. Advances in neural information processing systems, 28, 2015.
  31. [Wang et al., 2021] Runzhong Wang, Zhigang Hua, Gan Liu, Jiayi Zhang, Junchi Yan, Feng Qi, Shuang Yang, Jun Zhou, and Xiaokang Yang. A bi-level framework for learning to solve combinatorial optimization on graphs. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Pro- cessing Systems, volume 34, pages 21453-21466.
  32. Curran Associates, Inc., 2021.
  33. [Williams, 1992] Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforce- ment learning. Machine learning, 8(3):229-256, 1992.
  34. [Xu and Li, 2003] Ke Xu and Wei Li. Many hard examples in exact phase transitions. Science Direct Working Paper No S1574-034X (04), pages 70228-8, 2003.
  35. [Yao et al., 2021] Fan Yao, Renqin Cai, and Hongning Wang. Reversible action design for combinatorial optimization with reinforcement learning. In AAAI-22 Workshop on Ma- chine Learning for Operations Research (ML4OR), 2021.
  36. [Ye, 2003] Yinyu Ye. Gset. https://web.stanford.edu/~yyye/yyye/Gset/, 2003. Link
  37. [Yolcu and Póczos, 2019] Emre Yolcu and Barnabás Póczos. Learning local search heuristics for boolean satisfiability. Advances in Neural Information Processing Systems, 32, 2019.
  38. [Zhang et al., 2020] Wenjie Zhang, Zeyu Sun, Qihao Zhu, Ge Li, Shaowei Cai, Yingfei Xiong, and Lu Zhang. Nlocal- sat: Boosting local search with solution prediction. arXiv preprint arXiv:2001.09398, 2020. IJCAI
  39. [Zhou, 2022] Neng-Fa Zhou. An xcsp3 solver in picat. In XCSP3 Competition 2022 Proceedings, XCSP3 Competi- tion, pages 79-81, 2022.

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

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