Abstract
Computing the partition function ($Z$) of a graphical model is a fundamental but #P-hard challenge in probabilistic machine learning. This paper bridges the gap between counting and optimization by reducing partition function estimation to a sequence of Maximum A Posteriori (MAP) inference queries subject to random parity constraints. By leveraging connections to coding theory and employing Integer Linear Programming (ILP) with constraint sparsification via Gauss-Jordan elimination, the authors provide a framework for "anytime" upper and lower bounds that significantly outperform traditional variational methods.
Introduction
In probabilistic machine learning, the partition function $Z$ is the normalization constant required to transform raw scores into valid probabilities. For a system with $n$ binary variables, calculating $Z$ involves a summation over $2^n$ configurations, a task that is #P-hard. While existing methods like Markov Chain Monte Carlo (MCMC) or variational inference are widely used, they often lack rigorous guarantees or provide only loose lower bounds. This work addresses these limitations by building upon the WISH algorithm, which uses random XOR constraints to estimate $Z$ via MAP queries, and solving the resulting hard optimization problems using advanced ILP techniques.
Methodology
The authors introduce several key technical contributions to make parity-constrained MAP inference practical:
1. Coding Theory Connection
The paper formally proves that MAP inference with parity constraints is equivalent to the Maximum-Likelihood Decoding problem in coding theory. This establishes that the problem is not only NP-hard to solve but also hard to approximate, justifying the need for sophisticated solvers.
2. ILP Formulation and Sparsification
To solve these queries, the authors translate the MAP problem into an Integer Linear Program (ILP). They utilize the Yannakakis "compact polytope" encoding to represent parity constraints efficiently with $O(n^3)$ variables. A critical challenge is that random parity constraints are typically "dense," involving many variables and significantly slowing down solvers. The authors apply Gauss-Jordan elimination to transform these into an equivalent but much sparser set of constraints, making them digestible for ILP solvers.
3. Short XOR Constraints
The authors also introduce a variant of WISH that uses "short" XOR constraints involving only a few variables. Although this weakens the theoretical pairwise independence of the hash functions, they prove it still yields a valid probabilistic lower bound on the partition function.
Experimental Results
The approach was evaluated on synthetic Ising models (10x10 and 15x15 grids) with both "attractive" and "mixed" interactions.
Sparsification and Solver Efficiency
Preprocessing is essential for scalability. As demonstrated in experimental evaluations, without sparsification, top-tier solvers like CPLEX fail to find any solution once more than 15 parity constraints are added. With Gauss-Jordan elimination, the solver handles 100+ constraints easily, enabling accurate estimation.
Accuracy and Comparison
The ILP-based approach provides superior accuracy compared to standard baselines like Loopy Belief Propagation (BP) and Tree-Reweighted BP (TRWBP). On complex 15x15 mixed Ising models, the method produced log-partition estimates with near-zero error, whereas traditional methods were off by orders of magnitude.
Anytime Upper Bounds
A major advantage of the ILP formulation is its "anytime" performance. By solving a sequence of LP relaxations, the method provides provable (with high probability) upper bounds on the partition function. These bounds are significantly tighter than those from state-of-the-art tree-reweighted message passing, particularly in the "hard" regime of high-strength interactions.
Conclusion
This work demonstrates that optimization techniques, specifically ILP with algebraic preprocessing, can be effectively applied to the problem of discrete integration. By bridging coding theory and graphical models, the authors provide a robust framework for obtaining anytime bounds on the partition function. While scaling to thousands of variables remains a challenge, the significant improvement in accuracy and the provision of tight upper bounds represent a major advancement in the field.
Summary updated