Stochastic Integration via Error-Correcting Codes

Dimitris Achlioptas, Pei JiangUAI 2015

Estimating the partition function ($Z$) of graphical models is a fundamental challenge in Bayesian statistics and machine learning. As a #P-hard problem, calculating this normalizing constant requires summing over an exponentially large domain $\Omega$, which is computationally intractable for complex models. This paper introduces SECCO, a novel approach that transforms stochastic integration into a series of tractable optimization problems by leveraging the principles of error-correcting codes.

The Challenge: Solver Collapse

Recent hashing-based methods, such as the WISH algorithm, attempt to estimate $Z$ by adding random parity (XOR) constraints to the domain. This "thins" the space, allowing the total sum to be estimated from the maximum values found in these subsets. However, to maintain statistical accuracy, these methods require "long" XOR constraints involving approximately 50% of the variables.

Such dense constraints are catastrophic for modern optimization solvers like CPLEX. As the number of constraints increases, solvers often "collapse," failing to find high-quality solutions within reasonable timeframes. This failure directly leads to poor estimates of the partition function.

Figure 4: Comparison of solver performance across different constraint types. PEG LDPC codes significantly delay the 'solver collapse' compared to standard dense or sparse parity constraints.

Proposed Methodology

To overcome solver collapse while preserving statistical rigor, the authors propose three key innovations:

  1. Random Affine Maps: Instead of adding constraints to the high-dimensional original space, SECCO uses a random affine transformation $g(x) = Ax + b$ to map a smaller $d$-dimensional space into the original $n$-dimensional space. This converts a difficult constrained optimization problem into an easier unconstrained one over a reduced domain.
  2. LDPC Codes for Sparse Constraints: When working in the original space is necessary, the authors replace dense XORs with parity check matrices from Low-Density Parity Check (LDPC) codes, specifically using Progressive-Edge-Growth (PEG) constructions. These codes are designed to have high girth and few short cycles, allowing solvers to prune the search space more effectively through techniques like unit propagation.
  3. Branch-and-Bound Stratification: To reduce the computational burden, the algorithm uses a greedy branch-and-bound approach to prioritize solving the quantiles that contribute most to the uncertainty of the total sum, significantly reducing the total number of optimization calls required.

Experimental Results

The authors evaluated SECCO on 10x10 Ferromagnetic Ising Grids, a standard benchmark for partition function estimation. The results demonstrate a significant leap in both speed and robustness.

Figure 1: Best solution found versus solver timeout. Affine maps find superior solutions much faster than traditional parity-based methods, especially under tight time constraints.

Key Findings

  • Efficiency: The combination of LDPC codes and stratified sampling yielded a 7x to 12x average speedup, with some instances reaching 100x faster execution than the WISH algorithm.
  • Accuracy: On difficult Ising instances where previous methods failed to find good solutions within 10 minutes, SECCO identified better solutions in just 30 seconds.
  • Robustness: While traditional dense XORs cause solver performance to drop sharply after 10–20 constraints, the PEG LDPC-based approach remains competitive even with more than 40 constraints, as shown in the performance plots.

Conclusion

By shifting the focus from the statistical properties of hash functions to the computational properties of the resulting optimization problems, this work provides a practical path forward for high-dimensional stochastic integration. The use of error-correcting codes ensures that thinned samples are well-distributed across the domain, capturing the function's geometry without overwhelming the underlying solvers. Future work remains to formally prove the variance properties of LDPC-thinning and to extend these techniques to non-binary domains.

Summary updated

BibTeX
@inproceedings{achlioptas2015stochastic,
  author = {Dimitris Achlioptas and Pei Jiang},
  title = {{Stochastic Integration via Error-Correcting Codes}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2015},
}
Figure