High Dimensional Discrete Integration by Hashing and Optimization

Raj Kumar Maity, Arya Mazumdar, Soumyabrata PalarXiv 2018

Introduction

Discrete integration—the task of summing a non-negative function over a massive domain—is a cornerstone of computational science and statistical physics. It is essential for calculating partition functions, which characterize the equilibrium properties of physical systems, and for computing matrix permanents. However, these domains are typically exponentially large. For a system with $n$ variables where each variable can take $q$ values (a "hypergrid"), the domain size is $q^n$.

While previous research successfully addressed binary systems ($q=2$) using random hashing to transform counting into optimization, extending these methods to larger alphabets ($q > 2$) proved difficult. Naive extensions resulted in approximation errors that grew quadratically with $q$, rendering them impractical for many real-world applications like the Potts model or complex constraint satisfaction problems (CSPs).

The MB-WISH Framework

To overcome these limitations, this paper introduces MB-WISH (Multi-Bin Weighted-Integrals-and-Sums-by-Hashing). The algorithm leverages the "hashing-to-optimization" framework, utilizing an NP-oracle (such as an Integer Linear Programming solver) to find the maximum weight within subsets of the domain defined by random hash functions.

The primary innovation of MB-WISH lies in its use of Multi-Bin Hashing. Instead of evaluating a single hash bin (a single parity constraint), the algorithm optimizes over multiple bins simultaneously. In $q$-ary settings, these multiple bins can be represented succinctly as inequality constraints (e.g., $Ax + b \preceq s$). This allows the solver to explore a more representative portion of the configuration space without a significant increase in computational cost.

Visualization of the multi-bin hashing approach used in MB-WISH to approximate the number of configurations across different weight thresholds.

Key Innovations and Theoretical Bounds

The shift from single-bin to multi-bin hashing is the "aha moment" of the research. By capturing more bins, the algorithm increases the probability that the maximum weight identified by the oracle serves as an accurate proxy for the total sum.

Theoretically, the authors prove that MB-WISH achieves an approximation factor of $4(1 + \frac{1}{q-1})^2$ for odd $q$. As $q$ increases, this factor approaches a near-constant value of 4. This is a dramatic improvement over the previous $O(q^2)$ baseline. Furthermore, the algorithm works directly in the original $q$-ary domain, avoiding the pitfalls of "bit-blasting"—the process of converting $q$-ary problems to binary—which often creates invalid configurations and degrades solver performance.

Empirical Performance

The researchers evaluated MB-WISH across various domains, including synthetic Potts models, high-dimensional probability distributions, and real-world CSPs like Markov networks and protein folding models.

  • Accuracy: In experiments on path-graphs with $q=31$, the multi-bin approach consistently yielded approximation ratios much closer to the ground truth than single-bin methods.
  • Comparison with MCMC: MB-WISH provided results that were often closer to exact Belief Propagation (BP) values than standard Markov Chain Monte Carlo (MCMC) methods, particularly as system size increased.
  • Scalability: The algorithm successfully estimated the log-partition function for a 120-node network (a domain of $2^{120}$), demonstrating its capability to handle massive state spaces.

Conclusion and Future Directions

MB-WISH represents a significant advancement in discrete integration, providing a robust and scalable method for approximating sums over high-dimensional hypergrids. By reducing the approximation factor from $q^2$ to a near-constant 4, it opens new possibilities for analyzing non-binary systems in physics and AI.

Future work remains in optimizing the interaction between the hashing functions and the NP-oracles. Developing "oracle-friendly" hash functions that simplify the optimization landscape for solvers like CPLEX or Gurobi could further enhance the speed and precision of these approximations.

Summary updated

BibTeX
@misc{maity2018high,
  author = {Raj Kumar Maity and Arya Mazumdar and Soumyabrata Pal},
  title = {{High Dimensional Discrete Integration by Hashing and Optimization}},
  year = {2018},
  eprint = {1806.11542},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.11542},
}
Figure