• Home
  • Search
  • Sparse Hashing for Scalable Approximate Model Counting
  • Cite Icon22
  • https://doi.org/10.1145/3373718.3394809Copy DOI Icon

Sparse Hashing for Scalable Approximate Model Counting

  • Jul 8, 2020
  • Kuldeep S Meel +1 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Given a CNF formula F on n variables, the problem of model counting, also referred to as #SAT, is to compute the number of models or satisfying assignments of F. Recent years have witnessed a surge of effort towards developing efficient algorithmic techniques that combine the classical strongly 2-universal hash functions (from [Stockmeyer 1983]) with the remarkable progress in SAT solving over the past decade. These techniques augment the CNF formula F with random XOR constraints and invoke an NP oracle repeatedly on the resultant CNF-XOR formulas. In practice, the NP oracle calls are replaced by calls to a SAT solver and it is observed that runtime performance of modern SAT solvers (based on conflict-driven clause learning) on CNF-XOR formulas is adversely affected by the size of XOR constraints. The standard construction of 2-universal hash functions chooses every variable with probability p = 1/2 leading to XOR constraints of size n/2 in expectation. Consequently, the main challenge is to design sparse hash functions, where variables can be chosen with smaller probability and lead to smaller sized XOR constraints, which can then replace strongly 2-universal hash functions. In this paper, our goal is to address this challenge both from a theoretical and a practical perspective. First, we formalize a relaxation of universal hashing, called concentrated hashing, a notion implicit in prior works to design sparse hash functions. We then establish a novel and beautiful connection between concentration measures of these hash functions and isoperimetric inequalities on boolean hypercubes. This allows us to obtain tight bounds on variance as well as the dispersion index and show that p = O(log2 m/m) suffices for the design of sparse hash functions from {0, 1}n to {0, 1}m belonging to the concentrated hash family. Finally, we use sparse hash functions belonging to this concentrated hash family to develop new approximate counting algorithms. A comprehensive experimental evaluation of our algorithm on 1893 benchmarks demonstrates that the usage of sparse hash functions can lead to significant speedups. To the best of our knowledge, this work is the first study to demonstrate runtime improvement of approximate model counting algorithms through the usage of sparse hash functions, while still retaining strong theoretical guarantees (a la 2-universal hash functions).

Similar Papers
  • Supplementary Content
  • Citations8

Approximate Model Counting: Is SAT Oracle More Powerful than NP Oracle?

  • Jun 17, 2023
  • arXiv (Cornell University)
  • Diptarka Chakraborty +3
  • Conference Article
  • Citations72

Exact sampling and approximate counting techniques

  • Jan 01, 1998
  • Mark Huber
  • Book Chapter
  • Citations25

RC4-Hash: A New Hash Function Based on RC4

  • Jan 01, 2006
  • Donghoon Chang +2
  • Conference Article
  • Citations18

High-Dimensional Sparse Cross-Modal Hashing with Fine-Grained Similarity Embedding

  • Apr 19, 2021
  • Yongxin Wang +3
  • Conference Article
  • Citations37

The Evaluation Report of SHA-256 Crypt Analysis Hash Function

  • Jan 01, 2009
  • Arul Lawrence Selvakumar +1
  • Research Article
  • Citations3

Two approximate algorithms for model counting

  • Jun 06, 2016
  • Theoretical Computer Science
  • Jinyan Wang +2
  • Conference Article
  • Citations1

Gaussian Elimination Meets Maximum Satisfiability

  • Sep 01, 2021
  • Mate Soos +1
  • Book Chapter
  • Citations33

On the Design of Provably-Secure Cryptographic Hash Functions

  • Jan 01, 1991
  • Alfredo De Santis +1
  • Research Article
  • Citations4

Fast and Efficient Design of a PCA-Based Hash Function

  • May 08, 2015
  • International Journal of Computer Network and Information Security
  • Alaa Eddine Belfedhal +1
  • Book Chapter
  • Citations4

Analysis of Message Injection in Stream Cipher-Based Hash Functions

  • Jan 01, 2011
  • Yuto Nakano +3
  • Research Article
  • Citations1

Improving IntSat by expressing disjunctions of bounds as linear constraints

  • Sep 04, 2015
  • AI Communications
  • Roberto Asín +2
  • Book Chapter
  • Citations25

Propositional SAT Solving

  • Jan 01, 2018
  • Joao Marques-Silva +1
  • Conference Article

Approximate Model Counting Via Extension Rule and Clause Reduction

  • May 19, 2018
  • Hao Liu +4
  • Book Chapter

Connecting ABT with a SAT Solver

  • Jan 01, 2016
  • Frontiers in artificial intelligence and applications
  • GirÁLdez-CrÚ JesÚS +2
  • Conference Article
  • Citations60

SAT-based analysis of large real-world feature models is easy

  • Jul 20, 2015
  • Jia Hui Liang +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.