MAP Inference Via ℓ 2-Sphere Linear Program Reformulation

Baoyuan Wu, Li Shen, Tong Zhang, Bernard Ghanem

TL;DR

This paper introduces a novel, exact reformulation of the Maximum A Posteriori (MAP) inference problem for graphical models by adding an $\ell_2$-sphere constraint to the standard linear programming (LP) relaxation. This LS-LP formulation is proven to be equivalent to the original integer linear program (ILP) for MAP inference. An adapted ADMM algorithm is proposed to efficiently solve this new formulation, demonstrating competitive performance against state-of-the-art methods.

What Problem Does This Paper Address?

MAP inference, a crucial task in graphical models, aims to find the most probable configuration of labels for a set of variables. For complex models, this problem is often intractable and is typically formulated as an Integer Linear Program (ILP). While LP relaxation offers a continuous approximation, it frequently yields fractional solutions that require post-processing (rounding) to obtain valid integer assignments. This rounding step can introduce errors and is a significant drawback. Existing methods either focus on tighter relaxations (which are computationally expensive) or exact methods (which are slow). This paper addresses the need for an exact, yet computationally efficient, method for MAP inference that directly produces valid integer solutions without rounding.

Methods

The core innovation is the LS-LP (ℓ2-Sphere Linear Program) reformulation. The authors take the standard LP relaxation of the MAP inference problem and add a new constraint: the solution vector must lie on an $\ell_2$-sphere. They mathematically prove that the intersection of this $\ell_2$-sphere constraint with the local marginal polytope (used in LP relaxation) precisely defines the space of all valid integer label configurations. This makes LS-LP an exact reformulation, not a relaxation.

To solve this new, non-convex (due to the sphere constraint) problem, they propose a perturbed Alternating Direction Method of Multipliers (ADMM) algorithm. This algorithm is designed to handle the separation of constraints and parallelization inherent in ADMM. A small perturbation ($\epsilon$) is added to the objective function and constraints to ensure convergence properties. The authors provide theoretical guarantees that their perturbed ADMM algorithm globally converges to an $\epsilon$-KKT point of the LS-LP problem, with analysis of its convergence rate.

Datasets

The authors evaluate their method on several benchmark datasets from:

  • Probabilistic Inference Challenge (PIC 2011)
  • OpenGM 2

Specific datasets mentioned include:

  • Segmentation (Seg-2, Seg-21)
  • Scene
  • Grids
  • Protein

The "Grids" and "Protein" datasets are highlighted as being particularly challenging, with "Grids" featuring dense cycles and "Protein" including high-order factors, which are important for testing the method's robustness.

Key Insights and Ideas

  • The $\ell_2$-sphere as an exact constraint: The most significant insight is the clever use of an $\ell_2$-sphere constraint to precisely delineate the space of valid integer solutions within the LP relaxation framework. This transforms an approximation into an exact representation.
  • Equivalence, not relaxation: Unlike traditional LP relaxation methods, LS-LP is proven to be equivalent to the original MAP inference problem, meaning its optimal solution is the true MAP solution.
  • ADMM for non-convexity: Adapting ADMM to handle the non-convex $\ell_2$-sphere constraint, through perturbation and theoretical convergence guarantees, is a key algorithmic contribution.
  • Direct integer solutions: The method directly yields valid integer label configurations, eliminating the need for potentially error-prone rounding steps common in other LP-based approaches.

Key Results

  • Competitive Performance: Experiments on benchmark datasets show that LS-LP achieves competitive performance compared to state-of-the-art MAP inference methods.
  • Valid Solutions: LS-LP consistently produces valid integer solutions, unlike some other methods that might yield fractional or approximate results.
  • Higher LogPot Values: On challenging datasets like Grids and Protein, LS-LP often achieves higher log-potential (objective) values, indicating better inference quality, especially when compared to other non-hybrid methods.
  • Efficiency: While not always the fastest in terms of raw runtime (due to implementation in MATLAB and the nature of ADMM), the proposed method often converges in fewer iterations than many comparable methods, suggesting good algorithmic efficiency. The parallelizable nature of the ADMM sub-problems also points to scalability.

Limitations and Future Work

  • Computational Complexity: While the method is efficient in terms of iterations and parallelizable, the computational complexity per iteration can still be significant for very large state spaces, as noted in the complexity analysis.
  • Implementation Language: The current implementation is in MATLAB. The authors suggest that implementing LS-LP in a lower-level language like C++ would likely yield much faster practical runtimes, making it more competitive with highly optimized solvers.
  • Hyperparameter Tuning: Like most ADMM-based methods, the performance can be sensitive to hyperparameter choices (e.g., $\rho$, $\epsilon$).
  • Future Work: The paper implicitly suggests exploring further optimizations for the ADMM algorithm and potentially applying this LS-LP formulation to other related inference problems in machine learning.

Summary updated

BibTeX
@article{wu2020map,
  author = {Baoyuan Wu and Li Shen and Tong Zhang and Bernard Ghanem},
  title = {{MAP Inference Via ℓ 2-Sphere Linear Program Reformulation}},
  journal = {Int. J. Comput. Vis.},
  year = {2020},
  url = {https://openreview.net/forum?id=XGYg29eqLqm},
}
Figure