Proceedings

Towards Cardinality-Aware Local Search for SAT with Cardinality Constraints

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 2256-2264.

https://doi.org/10.24963/ijcai.2026/251

Abstract

Satisfiability (SAT) with cardinality constraints arises naturally in many practical applications, where high-level counting requirements coexist with standard Conjunctive Normal Form (CNF) clauses. Translating these constraints into CNF can destroy structural information, limiting the effectiveness of search-based heuristics. In this paper, we propose a cardinality-aware local search framework to solve this problem, denoted as CardSAT-LS. CardSAT-LS integrates a preprocessing phase based on the generalized unit propagation and resolution, a cardinality-sensitive scoring function combining the make-break mechanism and cardinality violation, and an initialization based on fake-backbone variables. Furthermore, CardSAT-LS employs a unified framework that adaptively alternates between flip and swap operators when the search gets trapped in local optima. Finally, we conduct experiments on five public benchmarks from real-world applications as well as the MaxSAT and SAT competitions. Compared with ten state-of-the-art competitors, including SAT, MaxSAT, and PB solvers, CardSAT-LS solves the most instances with the lowest PAR-2 score. Additionally, we integrate CardSAT-LS into exact solvers for phase selection, which leads to significant speedups.

  1. [Abío and Stuckey, 2014] Ignasi Abío and Peter J Stuckey. Encoding linear constraints into sat. In International Con- ference on Principles and Practice of Constraint Program- ming, pages 75-91. Springer, 2014.
  2. [Anbulagan and Grastien, 2009] Anbulagan and A. Grastien. Importance of variables semantic in CNF encoding of car- dinality constraints. In Eighth Symposium on Abstraction, Reformulation and Approximation (SARA-09), 2009.
  3. [Asín et al., 2009] Roberto Asín, Robert Nieuwenhuis, Al- bert Oliveras, and Enric Rodríguez-Carbonell. Cardinality networks and their applications. In International Confer- ence on Theory and Applications of Satisfiability Testing, pages 167-180. Springer, 2009.
  4. [Asín et al., 2011] Roberto Asín, Robert Nieuwenhuis, Al- bert Oliveras, and Enric Rodríguez-Carbonell. Cardinality networks: a theoretical and empirical study. Constraints, 16(2):195-221, 2011.
  5. [Bailleux and Boufkhad, 2003] Olivier Bailleux and Yacine Boufkhad. Efficient cnf encoding of boolean cardinal- ity constraints. In International conference on principles and practice of constraint programming, pages 108-122. Springer, 2003.
  6. [Bard et al., 2007] Gregory V Bard, Nicolas T Courtois, and Chris Jefferson. Efficient methods for conversion and so- lution of sparse systems of low-degree multivariate poly- nomials over gf (2) via sat-solvers. Cryptology ePrint Archive, 2007.
  7. [Berg et al., 2024] Jeremias Berg, Matti Järvisalo, Ruben Martins, Andreas Niskanen, and Tobias Paxian. Maxsat evaluation 2024: Solver and benchmark descriptions. 2024.
  8. [Biere and Fröhlich, 2015] Armin Biere and Andreas Fröhlich. Evaluating cdcl variable scoring schemes. In International conference on theory and applications of satisfiability testing, pages 405-422. Springer, 2015.
  9. [Biere, 2013] Armin Biere. Lingeling, plingeling and treen- geling entering the sat competition 2013. 2013.
  10. [Biere, 2017] Armin Biere. CaDiCaL, Lingeling, Plingeling, Treengeling, YalSAT Entering the SAT Competition 2017.
  11. In Tomáš Balyo, Marijn Heule, and Matti Järvisalo, edi- tors, Proc. of SAT Competition 2017 -Solver and Bench- mark Descriptions, volume B-2017-1 of Department of Computer Science Series of Publications B, pages 14-15. University of Helsinki, 2017.
  12. [Cai et al., 2013] Shaowei Cai, Kaile Su, and Chuan Luo. Improving walksat for random k-satisfiability problem with k > 3. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 27, pages 145-151, 2013.
  13. [Cai et al., 2015] Shaowei Cai, Chuan Luo, and Kaile Su. Ccanr: A configuration checking based local search solver for non-random satisfiability. In International Conference on Theory and Applications of Satisfiability Testing, pages 1-8. Springer, 2015.
  14. [Cai et al., 2017] Shaowei Cai, Jinkun Lin, and Chuan Luo. Finding a small vertex cover in massive sparse graphs: Construct, local search, and preprocess. Journal of Arti- ficial Intelligence Research, 59:463-494, 2017.
  15. [Chen et al., 2022] Zhihan Chen, Xindi Zhang, Shaowei Cai, and Pinyan Lu. Cdcl solvers with improved local search cooperation and pre-processing. SAT COMPETITION, 2022:37-38, 2022.
  16. [Chen et al., 2024] Zhihan Chen, Peng Lin, Hao Hu, and Shaowei Cai. Parls-pbo: A parallel local search solver for pseudo boolean optimization. arXiv preprint arXiv:2407.21729, 2024.
  17. [Chowdhury et al., 2020] Md Solimul Chowdhury, Jia You, et al. Guiding cdcl sat search via random exploration amid conflict depression. In Proceedings of the AAAI Confer- ence on Artificial Intelligence, volume 34, pages 1428- 1435, 2020.
  18. [Chowdhury et al., 2024] Md Solimul Chowdhury, Cay- den R Codel, and Marijn JH Heule. Tassat: Transfer and share sat. In International Conference on Tools and Algo- rithms for the Construction and Analysis of Systems, pages 34-42. Springer, 2024.
  19. [Chu et al., 2023] Yi Chu, Shaowei Cai, Chuan Luo, Zhen- dong Lei, and Cong Peng. Towards more efficient local search for pseudo-boolean optimization. In 29th Inter- national Conference on Principles and Practice of Con- straint Programming (CP 2023), pages 12-1. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2023.
  20. [Codel et al., 2025] Cayden Codel, Katalin Fazekas, Marijn J. H. Heule, and Markus Iser. Proceedings of SAT Compe- tition 2025: Solver and Benchmark Descriptions. August 2025.
  21. [Devriendt et al., 2021] Jo Devriendt, Stephan Gocht, Emir Demirović, Jakob Nordström, and Peter J Stuckey. Cut- ting to the core of pseudo-boolean optimization: Combin- ing core-guided search with cutting planes reasoning. In Proceedings of the AAAI Conference on Artificial Intelli- gence, volume 35, pages 3750-3758, 2021.
  22. [Elffers and others, 2020] Jan Elffers et al. A cardinal im- provement to pseudo-boolean solving. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 1495-1503, 2020.
  23. [Horbach, 2010] Andrei Horbach. A boolean satisfiability approach to the resource-constrained project scheduling problem. Annals of Operations Research, 181(1):89-107, 2010.
  24. [Hutter et al., 2002] Frank Hutter, Dave AD Tompkins, and Holger H Hoos. Scaling and probabilistic smoothing: Ef- ficient dynamic local search for sat. In International Con- ference on Principles and Practice of Constraint Program- ming, pages 233-248. Springer, 2002.
  25. [Ignatiev et al., 2018] Alexey Ignatiev, Antonio Morgado, and Joao Marques-Silva. Pysat: A python toolkit for pro- totyping with sat oracles. In International Conference on Theory and Applications of Satisfiability Testing, pages 428-437. Springer, 2018.
  26. [Kovásznai et al., 2018] Gergely Kovásznai, Balázs Erdélyi, and Csaba Biró. Investigations of graph properties in terms of wireless sensor network optimization. In 2018 IEEE International Conference on Future IoT Technologies (Fu- ture IoT), pages 1-8. IEEE, 2018.
  27. [Kovásznai et al., 2019] Gergely Kovásznai, Krisztián Gajdár, and Laura Kovács. Portfolio sat and smt solving of cardinality constraints in sensor network optimization. In 2019 21st International Symposium on Symbolic and Numeric Algorithms for Scientific Computing (SYNASC), pages 85-91. IEEE, 2019.
  28. [Le Berre and Parrain, 2011] Daniel Le Berre and Anne Par- rain. The sat4j library, release 2.2: System description. Journal on Satisfiability, Boolean Modelling and Compu- tation, 7(2-3):59-64, 2011.
  29. [Lei et al., 2020] Zhendong Lei, Shaowei Cai, and Chuan Luo. Extended conjunctive normal form and an efficient algorithm for cardinality constraints. In IJCAI, pages 1141-1147, 2020. IJCAI
  30. [Lei et al., 2021] Zhendong Lei, Shaowei Cai, Chuan Luo, and Holger Hoos. Efficient local search for pseudo boolean optimization. In International Conference on Theory and Applications of Satisfiability Testing, pages 332-348. Springer, 2021.
  31. [Lindauer et al., 2022] Marius Lindauer, Katharina Eggensperger, Matthias Feurer, André Biedenkapp, Difan Deng, Carolin Benjamins, Tim Ruhkopf, René Sass, and Frank Hutter. Smac3: A versatile bayesian optimization package for hyperparameter optimization. Journal of Machine Learning Research, 23(54):1-9, 2022.
  32. [Marques-Silva and Lynce, 2007] Joao Marques-Silva and Inês Lynce. Towards robust cnf encodings of cardinal- ity constraints. In International Conference on Principles and Practice of Constraint Programming, pages 483-497. Springer, 2007.
  33. [Martins et al., 2014] Ruben Martins, Vasco Manquinho, and Inês Lynce. Open-wbo: A modular maxsat solver. In International Conference on Theory and Applications of Satisfiability Testing, pages 438-445. Springer, 2014.
  34. [Morris, 1993] Paul Morris. The breakout method for escap- ing from local minima. In Proceedings of the eleventh na- tional conference on Artificial intelligence, pages 40-45, 1993.
  35. [Mull et al., 2022] Nathan Mull, Shuo Pang, and Alexan- der Razborov. On cdcl-based proof systems with the or- dered decision strategy. SIAM Journal on Computing, 51(4):1368-1399, 2022.
  36. [Niemetz and Preiner, 2023] Aina Niemetz and Mathias Preiner. Bitwuzla. In International Conference on Com- puter Aided Verification, pages 3-17. Springer, 2023.
  37. [Ogawa et al., 2013] Toru Ogawa, Yangyang Liu, Ryuzo Hasegawa, Miyuki Koshimura, and Hiroshi Fujita. Mod- ulo based cnf encoding of cardinality constraints and its application to maxsat solvers. In 2013 IEEE 25th Inter- national Conference on Tools with Artificial Intelligence, pages 9-17. IEEE, 2013.
  38. [Reeves et al., 2024] Joseph E Reeves, Marijn JH Heule, and Randal E Bryant. From clauses to klauses. In International Conference on Computer Aided Verification, pages 110- 132. Springer, 2024.
  39. [Reeves et al., 2025] Joseph E Reeves, Joao Filipe, Min- Chien Hsu, Ruben Martins, and Marijn JH Heule. The impact of literal sorting on cardinality constraint encod- ings. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 11327-11335, 2025.
  40. [Rintanen et al., 2006] Jussi Rintanen, Keijo Heljanko, and Ilkka Niemelä. Planning as satisfiability: parallel plans and algorithms for plan search. Artificial Intelligence, 170(12-13):1031-1080, 2006.
  41. [Selman et al., 1994] Bart Selman, Henry A Kautz, Bram Cohen, et al. Noise strategies for improving local search. In AAAI, volume 94, pages 337-343, 1994.
  42. [Sinz, 2005] Carsten Sinz. Towards an optimal cnf encoding of boolean cardinality constraints. In International con- ference on principles and practice of constraint program- ming, pages 827-831. Springer, 2005.
  43. [Vizel et al., 2015] Yakir Vizel, Georg Weissenbacher, and Sharad Malik. Boolean satisfiability solvers and their ap- plications in model checking. Proceedings of the IEEE, 103(11):2021-2035, 2015.
  44. [Wynn, 2018] Ed Wynn. A comparison of encodings for cardinality constraints in a sat solver. arXiv preprint arXiv:1810.12975, 2018.
  45. [Zhao et al., 2025] Yujiao Zhao, Yiyuan Wang, Yi Chu, Wenbo Zhou, Shaowei Cai, and Minghao Yin. Improving local search algorithm for pseudo boolean optimization. Journal of Artificial Intelligence Research, 83, 2025.

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

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