TL;DR
This paper introduces Partial Sum-of-Squares (PSOS), a scalable semidefinite programming (SDP) approach for Maximum A Posteriori (MAP) inference in graphical models. By restricting the SDP to local regions and using non-convex optimization, the authors scale a traditionally "un-scalable" theoretical tool to problems with tens of thousands of variables, consistently outperforming standard Belief Propagation.
The Challenge of MAP Inference
In graphical models, Maximum A Posteriori (MAP) inference—finding the most likely state of a system of interacting variables—is a fundamental but NP-hard combinatorial problem.
For decades, researchers have relied on Belief Propagation (BP) and its variants. These are fast but are essentially "Linear Programming (LP) relaxations." While they work well on trees, they often struggle with "loopy" graphs or complex dependencies. Theoretically, Sum-of-Squares (SOS) hierarchies based on Semidefinite Programming (SDP) offer much stronger guarantees and higher accuracy.
The catch? SOS is computationally heavy. For a graph with $n$ variables, a standard SOS relaxation requires solving an SDP with $n^{\Theta(d)}$ variables. In practice, this meant SOS couldn't handle more than about 20–40 variables, making it a theoretical curiosity for large-scale machine learning—until now.
Bridging Theory and Practice: The Methods
The authors bridge the gap between theoretical power and practical scale using three key innovations:
1. Partial SOS (PSOS)
Taking a cue from Generalized Belief Propagation (GBP), the authors avoid looking at all possible subsets of variables. Instead, they only introduce decision variables for contiguous regions (like triangles or squares in a grid). This reduces the number of variables from a high-degree polynomial to $O(n)$.
2. Burer-Monteiro Optimization
Standard SDP solvers (interior-point methods) are too slow for large matrices. The authors use a non-convex "low-rank" factorization approach. They solve the resulting problem using a trust-region coordinate ascent method, which is much faster and more memory-efficient.
3. CLAP (Confidence Lift and Project)
To turn the continuous SDP solution back into discrete values (+1 or -1), they developed a sequential rounding procedure. It identifies variables where the model is highly "confident," fixes them, and then re-solves the remaining sub-problem.
Key Insights and Results
The authors evaluated their approach on two classic benchmarks: Image Denoising ($100 \times 100$ binary images corrupted by noise) and Ising Spin Glasses (2D grids of various sizes).
- Unprecedented Scale: The authors successfully ran SOS-style relaxations on problems with 10,000 variables in minutes. Previous state-of-the-art SOS implementations rarely exceeded 50 variables.
- Dominance in Spin Glasses: In a massive battery of 800 Ising spin glass experiments, PSOS(4) achieved the largest objective value in every single instance. For smaller grids where the exact answer could be calculated via exhaustive search, PSOS(4) found the exact optimum every time.
- Better Denoising: On image tasks, PSOS(4) consistently outperformed BP-SP, BP-MP, and GBP, producing cleaner reconstructions and higher objective values, especially under difficult "blockwise" noise conditions.
Why Does it Work So Well?
- Locality is Enough: The most surprising insight is that you don't need the full, global SOS hierarchy to get superior results. Enforcing SOS constraints on small, overlapping local regions provides almost all the accuracy benefit while drastically reducing the computational cost.
- Non-convexity isn't a Dealbreaker: While the Burer-Monteiro method is technically non-convex (meaning it could get stuck in local optima), the authors found that for these specific inference problems, it consistently finds high-quality solutions that outperform LP-based methods.
- Theoretical Tightness: They prove that for planar graphs with no vertex potentials, PSOS is tight (it finds the exact global optimum) as long as the regions cover all "chordless cycles" in the graph.
Limitations and Future Work
- Binary Domain: The current implementation is tailored for binary variables ($+1, -1$). While the authors believe the logic extends to larger finite domains (like Potts models), this hasn't been implemented or tested yet.
- The "Gap" in Theory: The tightness proof requires the vertex potentials to be zero. However, the experiments show the algorithm works brilliantly even when they aren't zero. There is still a theoretical gap to be bridged to explain why it works so well in the general case.
- Massive Scale: While 10,000 variables is a huge leap, "industrial-scale" problems (like high-res 3D medical imaging) might require even further optimizations to the Burer-Monteiro solver.
Summary updated