Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3531130.3533338acmconferencesArticle/Chapter ViewAbstractPublication PageslicsConference Proceedingsconference-collections
research-article
Open access

On Almost-Uniform Generation of SAT Solutions: The power of 3-wise independent hashing

Published: 04 August 2022 Publication History

Abstract

Given a Boolean formula φ and a distribution parameter ε, the problem of almost-uniform generation seeks to design a randomized generator such that every solution of φ is output with probability within (1 + ε)-factor of where sol(φ) is the set of all the solutions of φ. The prior state of the art scheme due to Jerrum, Valiant, and Vazirani, makes calls to a SAT oracle and employs 2 − wise independent hash functions.
In this work, we design a new randomized algorithm that makes calls to a SAT oracle and employs 3 − wise independent hash functions. The widely used 2 − wise independent hashing is tabulation hashing proposed by Carter and Wegman. Since this classical scheme is also 3 − wise independent, we observe that practical implementation of our technique does not incur additional overhead. We demonstrate that theoretical improvements translate to practice; in particular, we conduct a comprehensive study over 562 benchmarks and demonstrate that while JVV would time out for 544 out of 562 instances, our proposed scheme can handle all the 562 instances. To the best of our knowledge, this is the first almost-uniform generation scheme that can handle practical instances from real-world applications. We also present a nuanced analysis focusing on the both the size of SAT queries as well as the number of queries.

References

[1]
[1] Durgesh Agrawal, Bhavishya, and Kuldeep S. Meel. On the sparsity of xors in approximate model counting. In Proceedings of the International Conference on Theory and Applications of Satisfiability Testing (SAT), 7 2020.
[2]
[2] M. Bellare, O. Goldreich, and E. Petrank. Uniform generation of NP-witnesses using an NP-oracle. Information and Computation, 163(2):510–526, 2000.
[3]
[3] Mihir Bellare and Erez Petrank. Making zero-knowledge provers efficient. In Proceedings of the twenty-fourth annual ACM symposium on Theory of computing, pages 711–722, 1992.
[4]
[4] J Lawrence Carter and Mark N Wegman. Universal classes of hash functions. In Proceedings of the ninth annual ACM symposium on Theory of computing, pages 106–112. ACM, 1977.
[5]
[5] S. Chakraborty, D. J. Fremont, K. S. Meel, S. A. Seshia, and M. Y. Vardi. Distribution-aware sampling and weighted model counting for SAT. In Proc. of AAAI, pages 1722–1730, 2014.
[6]
[6] S. Chakraborty, K. S. Meel, and M. Y. Vardi. A scalable and nearly uniform generator of SAT witnesses. In Proc. of CAV, pages 608–623, 2013.
[7]
[7] S. Chakraborty, K. S. Meel, and M. Y. Vardi. A scalable approximate model counter. In Proc. of CP, pages 200–216, 2013.
[8]
[8] S. Chakraborty, K. S. Meel, and M. Y. Vardi. Balancing scalability and uniformity in SAT witness generator. In Proc. of DAC, pages 1–6, 2014.
[9]
[9] S. Chakraborty, K. S. Meel, and M. Y. Vardi. Algorithmic improvements in approximate counting for probabilistic inference: From linear to logarithmic SAT calls. In Proc. of IJCAI, 2016.
[10]
[10] M.R. Jerrum, L.G. Valiant, and V.V. Vazirani. Random generation of combinatorial structures from a uniform distribution. Theoretical Computer Science, 43(2-3):169–188, 1986.
[11]
[11] S. Malik and L. Zhang. Boolean Satisfiability From Theoretical Hardness to Practical Success. Commun. ACM, 52(8):76–82, 2009.
[12]
[12] George Markowsky, J Lawrence Carter, and Mark N Wegman. Analysis of a universal class of hash functions. In International Symposium on Mathematical Foundations of Computer Science, pages 345–354. Springer, 1978.
[13]
[13] Joao Marques-Silva. Computing with sat oracles: Past, present and future. In Conference on Computability in Europe, pages 264–276. Springer, 2018.
[14]
[14] Kuldeep S. Meel r S. Akshay. Sparse hashing for scalable approximate model counting: Theory and practice. In Proceedings of Logic in Computer science (LICS), 7 2020.
[15]
[15] Y. Naveh, M. Rimon, I. Jaeger, Y. Katz, M. Vinov, E. Marcus, and G. Shurek. Constraint-based random stimuli generation for hardware verification. In Proc of IAAI, pages 1720–1727, 2006.
[16]
[16] Mihai Pǎtraşcu and Mikkel Thorup. The power of simple tabulation hashing. Journal of the ACM (JACM), 59(3):1–50, 2012.
[17]
[17] Palash Sashittal and Mohammed El-Kebir. Titus: Sampling and summarizing transmission trees with muti-strain infections. bioRxiv, 2020.
[18]
[18] J. P. Schmidt, A. Siegel, and A. Srinivasan. Chernoff-Hoeffding bounds for applications with limited independence. SIAM Journal on Discrete Mathematics, 8:223–250, May 1995.
[19]
[19] M. Soos, K. Nohl, and C. Castelluccia. Extending SAT Solvers to Cryptographic Problems. In Proc. of SAT. Springer-Verlag, 2009.
[20]
[20] Mate Soos and Kuldeep S Meel. Bird: Engineering an efficient cnf-xor sat solver and its applications to approximate model counting. In Proceedings of AAAI Conference on Artificial Intelligence (AAAI)(1 2019), 2019.
[21]
[21] L. Stockmeyer. The complexity of approximate counting. In Proc. of STOC, pages 118–126, 1983.

Cited By

View all
  • (2024)Diversity-aware fairness testing of machine learning classifiers through hashing-based samplingInformation and Software Technology10.1016/j.infsof.2023.107390167:COnline publication date: 12-Apr-2024

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
LICS '22: Proceedings of the 37th Annual ACM/IEEE Symposium on Logic in Computer Science
August 2022
817 pages
ISBN:9781450393515
DOI:10.1145/3531130
This work is licensed under a Creative Commons Attribution International 4.0 License.

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 04 August 2022

Check for updates

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Funding Sources

Conference

LICS '22
Sponsor:

Acceptance Rates

Overall Acceptance Rate 215 of 622 submissions, 35%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)291
  • Downloads (Last 6 weeks)32
Reflects downloads up to 25 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Diversity-aware fairness testing of machine learning classifiers through hashing-based samplingInformation and Software Technology10.1016/j.infsof.2023.107390167:COnline publication date: 12-Apr-2024

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Login options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media