arXiv:2610.39305cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39305

Learning to Bound: Monotonic, Calibrated Neural Upper Bounds for MPE Inference

Akshay Vyas, Hailiang Dong, Shivvrat Arya, Brij Malhotra, Tahrima Rahman, Vibhav Gogate, Nicholas Ruozzi

Abstract

Probabilistic graphical models (PGMs) compactly encode structured joint distributions, but Most Probable Explanation (MPE), which finds the highest-probability assignment to unobserved variables, remains computationally intractable in large, densely structured models. Anytime systematic search, such as branch-and-bound (B&B), is a popular approach, but its efficiency depends on tight admissible upper bounds that are often prohibitively expensive to compute using classical methods like Mini-Bucket Elimination (MBE). We introduce Learning to Bound (L2B), a data-driven framework that amortizes bound computation cost by training a neural predictor. L2B targets two key properties required for effective search bounds: admissibility, which is achieved via statistical calibration techniques, and progressive tightening as evidence accumulates, which is enforced through structural architectural constraints that ensure monotonicity by construction. Across challenging benchmarks, L2B delivers tighter, monotonic bounds at orders-of-magnitude lower cost on every PGM family, and yields measurable improvements when integrated with branch-and-bound on high-treewidth instances.

1 Introduction

Probabilistic graphical models (PGMs) (Koller and Friedman, 2009; Darwiche, 2009) provide a principled representation of structured uncertainty, and have been used for applications in diagnosis, planning, computational biology, and computer vision. A central inference task in PGMs is the most probable explanation (MPE) problem, which seeks an assignment to all non-evidence variables that maximizes the probability of the resulting complete assignment. Exact MPE inference is NP-hard in general (Shimony, 1994), and its complexity grows rapidly with model size and treewidth. The complexity of this task motivates exact inference algorithms that exploit problem structure, as well as approximate and anytime methods that trade computational cost for solution quality.

The cost of exact inference is governed by the structure of the graphical model. For example, variable elimination (Dechter, 1999) has time and space complexity exponential in treewidth. Search-based exact solvers, such as AND/OR Branch-and-Bound (AOBB) (Marinescu and Dechter, 2005) and TOULBAR2 (Givry, 2023), instead explore a structured search space while maintaining a lower bound given by the best solution found so far and an upper bound on the best solution that can be obtained below each search node. The quality of the upper bound is critical: tighter bounds allow the solver to prune larger portions of the search space, while inexpensive bounds allow the solver to evaluate more nodes within a fixed time budget.

Classical upper-bounding methods, such as mini-bucket elimination (MBE), dual decomposition, and join graph linear programming (JGLP) (Dechter and Rish, 2003b; Komodakis et al., 2011; Meshi et al., 2012;

*Correspondence to: akshay.vyas@utdallas.edu

Globerson and Jaakkola, 2007b), face a persistent tightness-cost tradeoff. Inexpensive bounds are often too weak to guide search effectively, whereas tighter relaxations yield stronger upper bounds and improve pruning, but they require substantially more time and memory. This tradeoff becomes especially restrictive inside branch-and-bound, where the solver must evaluate bounds repeatedly under many partial assignments. As a result, practical solvers often choose between fast but weak pruning and strong but expensive pruning.

In this work, we address this bottleneck by seeking strong upper bounds that can be computed at low cost. The ideal regime for branch-and-bound combines the pruning effectiveness of tight bounds with the efficiency of inexpensive evaluations, enabling aggressive pruning without slowing the search. To approach this regime, we introduce a learning-based method that amortizes the cost of computing high-quality bounds. Rather than computing expensive bounds at each search node, we train a neural network offline using high-quality bounds, separately for each PGM, to predict upper bounds on the MPE value from partial assignments. These high-quality bounds are too costly to compute during search, but they provide informative training signals. At test time, the network predicts bounds in milliseconds while retaining much of their quality, enabling fast and effective pruning.

Using neural predictions inside branch-and-bound raises two technical challenges. First, unlike classical bounds, which are admissible by construction, neural predictions may fail to provide valid upper bounds. Second, classical bounds such as MBE and JGLP are monotone along search paths: adding evidence cannot increase the upper bound. Neural predictors do not inherently satisfy this property and may therefore produce inconsistent bounds along AOBB search paths. We address validity through statistical calibration, which converts neural predictions into upper bounds with high-probability validity. We address monotonicity through an encoding scheme that reduces evidence monotonicity to value monotonicity. We instantiate this scheme using a Scalable Monotonic Neural Network (SMNN) (Kim and Lee, 2024), which enforces monotonicity by construction.

Building on these components, we introduce a framework for training neural networks to predict tight upper bounds for MPE inference from partial assignments and integrate the resulting bounds into a branch-and-bound solver. The learned bounds are monotone by construction and statistically calibrated for high-probability validity. To the best of our knowledge, this is the first branch-and-bound solver to combine these properties. Classical bounds such as MBE and JGLP are deterministically valid and monotone non-increasing in evidence; a learned predictor has neither property by default. To the best of our knowledge, L2B is the first learned bound to recover both—monotonicity by construction, and, in place of deterministic validity, a finite-sample high-probability guarantee—and to be deployed inside a branch-and-bound solver for MPE. Our key contributions are:

  • A monotone-by-construction architecture that enforces evidence-monotone bounds together with a statistical calibration that converts raw predictions into high-probability-valid bounds.

  • A comprehensive empirical evaluation across PGM families: we show calibrated bounds can be 5−10×5-10\times tighter than MBE, computed in just milliseconds, and improve anytime MPE solution quality when integrated into branch-and-bound.

References (33)