Proceedings

DPSampler: Exact Weighted Sampling Using Dynamic Programming

Video #1 Video #2 Download BibTeX Cite

Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence. Main Track. Pages 1795-1803.

https://doi.org/10.24963/ijcai.2022/250

Abstract

The problem of exact weighted sampling of solutions of Boolean formulas has applications in Bayesian inference, testing, and verification. The state-of-the-art approach to sampling involves carefully decomposing the input formula and compiling a data structure called d-DNNF in the process. Recent work in the closely connected field of model counting, however, has shown that smartly composing different subformulas using dynamic programming and Algebraic Decision Diagrams (ADDs) can outperform d-DNNF-style approaches on many benchmarks. In this work, we present a modular algorithm called DPSampler that extends such dynamic-programming techniques to the problem of exact weighted sampling.

DPSampler operates in three phases. First, an execution plan in the form of a project-join tree is computed using tree decompositions. Second, the plan is used to compile the input formula into a succinct tree-of-ADDs representation. Third, this tree is traversed to generate a random sample. This decoupling of planning, compilation and sampling phases enables usage of specialized libraries for each purpose in a black-box fashion. Further, our novel ADD-sampling algorithm avoids the need for expensive dynamic memory allocation required in previous work. Extensive experiments over diverse sets of benchmarks show DPSampler is more scalable and versatile than existing approaches.

  1. [Achlioptas et al., 2018] Dimitris Achlioptas, Zayd S Ham- moudeh, and Panos Theodoropoulos. Fast sampling of perfectly uniform satisfying assignments. In International Conference on Theory and Applications of Satisfiability Testing, pages 135-147. Springer, 2018.
  2. [Bacchus et al., 2003] Fahiem Bacchus, Shannon Dalmao, and Toniann Pitassi. Algorithms and complexity results for# sat and bayesian inference. In 44th Annual IEEE Sym- posium on Foundations of Computer Science, 2003. Pro- ceedings., pages 340-351. IEEE, 2003.
  3. Bahar et al., 97]
  4. R Iris Bahar, Erica A Frohm, Charles M Gaona, Gary D Hachtel, Enrico Macii, Abelardo Pardo, and Fabio Somenzi. Algebraic decision diagrams and their applications. Form Method Sys Des, 10(2-3):171-206, '97.
  5. [Bellare et al., 2000] Mihir Bellare, Oded Goldreich, and Erez Petrank. Uniform generation of np-witnesses using an np-oracle. Information and Computation, 163(2):510- 526, 2000.
  6. [Bova et al., 2015] Simone Bova, Florent Capelli, Stefan Mengel, and Friedrich Slivovsky. On compiling cnfs into structured deterministic dnnfs. In International Confer- ence on Theory and Applications of Satisfiability Testing, pages 199-214. Springer, 2015.
  7. [Brayton et al., 1984] Robert K Brayton, Gary D Hachtel, Curt McMullen, and Alberto Sangiovanni-Vincentelli. Logic minimization algorithms for VLSI synthesis, vol- ume 2. Springer Science & Business Media, 1984.
  8. [Bryant, 1986] Randal E Bryant. Graph-based algorithms for Boolean function manipulation. IEEE TC, 100(8):677- 691, 1986.
  9. [Chakraborty et al., 2014a] Supratik Chakraborty, Daniel Fremont, Kuldeep Meel, Sanjit Seshia, and Moshe Vardi. Distribution-aware sampling and weighted model count- ing for sat. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 28, 2014.
  10. [Chakraborty et al., 2014b] Supratik Chakraborty, Kuldeep S Meel, and Moshe Y Vardi. Balancing scalability and uniformity in sat witness generator. In 2014 51st acm/edac/ieee design automation conference (dac), pages 1-6. IEEE, 2014.
  11. [Chakraborty et al., 2015] Supratik Chakraborty, Daniel J Fremont, Kuldeep S Meel, Sanjit A Seshia, and Moshe Y Vardi. On parallel scalable uniform sat witness generation. In International Conference on Tools and Algorithms for the Construction and Analysis of Systems, pages 304-319. Springer, 2015.
  12. [Chakraborty et al., 2020] Supratik Chakraborty, Aditya A Shrotri, and Moshe Y Vardi. On Uniformly Sampling Traces of a Transition System. In 2020 IEEE/ACM In- ternational Conference On Computer Aided Design (IC- CAD), pages 1-9. IEEE, 2020.
  13. [Chavira and Darwiche, 2007] Mark Chavira and Adnan Darwiche. Compiling Bayesian networks using variable elimination. In IJCAI, pages 2443-2449, 2007. IJCAI
  14. [Darwiche and Marquis, 2002] Adnan Darwiche and Pierre Marquis. A knowledge compilation map. Journal of Arti- ficial Intelligence Research, 17:229-264, 2002.
  15. [Darwiche, 2004] Adnan Darwiche. New advances in com- piling cnf to decomposable negation normal form. In Proc. of ECAI, pages 328-332. Citeseer, 2004.
  16. [Darwiche, 2011] Adnan Darwiche. Sdd: A new canoni- cal representation of propositional knowledge bases. In Twenty-Second International Joint Conference on Artifi- cial Intelligence, 2011. IJCAI
  17. [de Colnet and Mengel, 2021] Alexis de Colnet and Ste- fan Mengel. Lower bounds on intermediate results in bottom-up knowledge compilation. arXiv preprint arXiv:2112.12430, 2021.
  18. [Dudek et al., 2019] Jeffrey M Dudek, Leonardo Dueñas- Osorio, and Moshe Y Vardi. Efficient contraction of large tensor networks for weighted model counting through graph decompositions. preprint arXiv:1908.04381, 2019.
  19. [Dudek et al., 2020a] Jeffrey M. Dudek, Vu H. N. Phan, and Moshe Y. Vardi. ADDMC: weighted model counting with algebraic decision diagrams. In AAAI, volume 34, pages 1468-1476, 2020.
  20. [Dudek et al., 2020b] Jeffrey M Dudek, Vu HN Phan, and Moshe Y Vardi. Dpmc: Weighted model counting by dy- namic programming on project-join trees. In International Conference on Principles and Practice of Constraint Pro- gramming, pages 211-230. Springer, 2020.
  21. [Dudek et al., 2021] Jeffrey M Dudek, Vu HN Phan, and Moshe Y Vardi. Procount: Weighted projected model counting with graded project-join trees. In International Conference on Theory and Applications of Satisfiability Testing, pages 152-170. Springer, 2021.
  22. [Dutra et al., 2018] Rafael Dutra, Kevin Laeufer, Jonathan Bachrach, and Koushik Sen. Efficient sampling of sat so- lutions for testing. In 2018 IEEE/ACM 40th International Conference on Software Engineering (ICSE), pages 549- 559. IEEE, 2018.
  23. [Fargier and Marquis, 2009] Hélène Fargier and Pierre Mar- quis. Knowledge compilation properties of trees-of-bdds, revisited. In Twenty-First International Joint Conference on Artificial Intelligence, 2009.
  24. [Fargier et al., 2014] Hélene Fargier, Pierre Marquis, Alexandre Niveau, and Nicolas Schmidt. A knowl- edge compilation map for ordered real-valued decision diagrams. In AAAI, 2014.
  25. [Fichte et al., 2022] Johannes K Fichte, Markus Hecher, Patrick Thier, and Stefan Woltran. Exploiting database management systems and treewidth for counting. The- ory and Practice of Logic Programming, 22(1):128-157, 2022.
  26. [Gogate and Domingos, 2011] Vibhav Gogate and Pedro Domingos. Approximation by Quantization. In UAI, pages 247-255, 2011.
  27. [Gomes et al., 2006] Carla P Gomes, Ashish Sabharwal, and Bart Selman. Near-uniform sampling of combinatorial spaces using xor constraints. In NIPS, pages 481-488, 2006.
  28. [Gupta et al., 2019] Rahul Gupta, Shubham Sharma, Subha- jit Roy, and Kuldeep S Meel. Waps: Weighted and pro- jected sampling. In TACAS (1), pages 59-76, 2019.
  29. [Hoey et al., 1999] Jesse Hoey, Robert St-Aubin, Alan Hu, and Craig Boutilier. SPUDD: stochastic planning using decision diagrams. In UAI, pages 279-288, 1999.
  30. [Jerrum et al., 1986] Mark R Jerrum, Leslie G Valiant, and Vijay V Vazirani. Random generation of combinatorial structures from a uniform distribution. Theoretical com- puter science, 43:169-188, 1986.
  31. [Kitchen, 2010] Nathan Boyd Kitchen. Markov Chain Monte Carlo stimulus generation for constrained random simula- tion. University of California, Berkeley, 2010.
  32. [Korhonen and Järvisalo, 2021] Tuukka Korhonen and Matti Järvisalo. Integrating tree decompositions into decision heuristics of propositional model counters. In 27th In- ternational Conference on Principles and Practice of Constraint Programming (CP 2021). Schloss Dagstuhl- Leibniz-Zentrum für Informatik, 2021.
  33. [Lagniez and Marquis, 2017] Jean-Marie Lagniez and Pierre Marquis. An improved decision-DNNF compiler. In IJ- CAI, pages 667-673, 2017. IJCAI
  34. [Meel, 2018] Kuldeep S Meel. Constrained counting and sampling: bridging the gap between theory and practice. arXiv preprint arXiv:1806.02239, 2018.
  35. [Muise et al., 2012] Christian Muise, Sheila A McIlraith, J Christopher Beck, and Eric I Hsu. D sharp: fast d-dnnf compilation with sharpsat. In Canadian Conference on Artificial Intelligence, pages 356-361. Springer, 2012.
  36. [Naveh et al., 2007] Yehuda Naveh, Michal Rimon, Itai Jaeger, Yoav Katz, Michael Vinov, Eitan s Marcu, and Gil Shurek. Constraint-based random stimuli generation for hardware verification. AI magazine, 28(3):13-13, 2007.
  37. [Roy et al., 2018] Subhajit Roy, Awanish Pandey, Brendan Dolan-Gavitt, and Yu Hu. Bug synthesis: Challenging bug-finding tools with deep faults. In Proceedings of the 2018 26th ACM Joint Meeting on European Software En- gineering Conference and Symposium on the Foundations of Software Engineering, pages 224-234, 2018.
  38. [Samer and Szeider, 2010] Marko Samer and Stefan Szeider. Algorithms for propositional model counting. Journal of Discrete Algorithms, 8(1):50-64, 2010.
  39. [Sharma et al., 2018] Shubham Sharma, Rahul Gupta, Sub- hajit Roy, and Kuldeep S Meel. Knowledge compilation meets uniform sampling. In LPAR, pages 620-636, 2018.
  40. [Somenzi, 2012] Fabio Somenzi. Cudd: Cu decision dia- gram package-release 2.4. 0. University of Colorado at Boulder, 2012.
  41. [Soos et al., 2020] Mate Soos, Stephan Gocht, and Kuldeep S Meel. Tinted, detached, and lazy cnf-xor solving and its applications to counting and sampling. In International Conference on Computer Aided Verification, pages 463-484. Springer, 2020.
  42. [Strasser, 2017] Ben Strasser. Computing tree decompo- sitions with flowcutter: Pace 2017 submission. arXiv preprint arXiv:1709.08949, 2017.
  43. [Subbarayan et al., 2007] Sathiamoorthy Subbarayan, Lucas Bordeaux, and Youssef Hamadi. Knowledge compilation properties of tree-of-bdds. In AAAI, pages 502-507, 2007.
  44. [Subbarayan, 2005] Sathiamoorthy Subbarayan. Integrating csp decomposition techniques and bdds for compiling con- figuration problems. In International Conference on In- tegration of Artificial Intelligence (AI) and Operations Research (OR) Techniques in Constraint Programming, pages 351-365. Springer, 2005.
  45. [van Dijk and van de Pol, 2017] Tom van Dijk and Jaco van de Pol. Sylvan: multi-core framework for decision di- agrams. International Journal on Software Tools for Tech- nology Transfer, 19(6):675-696, 2017.
  46. [Wang et al., 2001] Dong Wang, Edmund Clarke, Yunshan Zhu, and James Kukula. Using cutwidth to improve symbolic simulation and boolean satisfiability. In Sixth IEEE International High-Level Design Validation and Test Workshop, pages 165-170. IEEE, 2001.
  47. [Yuan et al., 2004] Jun Yuan, Adnan Aziz, Carl Pixley, and Ken Albin. Simplifying boolean constraint solving for random simulation-vector generation. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Sys- tems, 23(3):412-420, 2004.

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

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