Learning to Guide Local Search for MPE Inference in Probabilistic Graphical Models
Brij Malhotra, Shivvrat Arya, Tahrima Rahman, Vibhav Giridhar Gogate
TL;DR
The paper addresses the NP-hard problem of Most Probable Explanation (MPE) inference in probabilistic graphical models, particularly in regimes where the graph is fixed but evidence varies across many queries. It introduces BEACON, an amortized lookahead framework that uses an attention-based neural network to score 1-flip neighbors by their likelihood of reducing the Hamming distance to a near-optimal solution, and combines this with the exact log-likelihood gain via a convex blend controlled by a parameter $\lambda$. Training data are generated by solving training queries with anytime MPE solvers to obtain high-quality references, and labels indicate distance-reducing moves along trajectories collected by local search. Empirically, BEACON improves over standard SLS and GLS+ across 25 high-treewidth PGMs, demonstrating faster convergence and higher final log-likelihoods, with the most pronounced gains early in search and robust performance in amortized inference settings. The work highlights the practical impact of transferable, learned guidance for local search in structured probabilistic models and suggests directions for richer supervision, multi-step lookahead, and broader applicability to discrete optimization problems.
Abstract
Most Probable Explanation (MPE) inference in Probabilistic Graphical Models (PGMs) is a fundamental yet computationally challenging problem arising in domains such as diagnosis, planning, and structured prediction. In many practical settings, the graphical model remains fixed while inference must be performed repeatedly for varying evidence patterns. Stochastic Local Search (SLS) algorithms scale to large models but rely on myopic best-improvement rule that prioritizes immediate likelihood gains and often stagnate in poor local optima. Heuristics such as Guided Local Search (GLS+) partially alleviate this limitation by modifying the search landscape, but their guidance cannot be reused effectively across multiple inference queries on the same model. We propose a neural amortization framework for improving local search in this repeated-query regime. Exploiting the fixed graph structure, we train an attention-based network to score local moves by predicting their ability to reduce Hamming distance to a near-optimal solution. Our approach integrates seamlessly with existing local search procedures, using this signal to balance short-term likelihood gains with long-term promise during neighbor selection. We provide theoretical intuition linking distance-reducing move selection to improved convergence behavior, and empirically demonstrate consistent improvements over SLS and GLS+ on challenging high-treewidth benchmarks in the amortized inference setting.
