The Theory and Practice of MAP Inference over Non-Convex Constraints
Leander Kurscheidt, Gabriele Masina, Roberto Sebastiani, Antonio Vergari
TL;DR
This work tackles MAP inference under non-convex algebraic SMT($\mathcal{LRA}$) constraints with non-log-concave densities. It introduces MpMap, an exact, scalable message-passing algorithm for tree-structured problem graphs, and PaMap, a modular framework that partitions the feasible SMT region into convex polytopes and optimizes locally, with pruning and optional SOS/summary bounds. The methods are validated on synthetic benchmarks and real-world tasks (trajectory prediction and VAE-based imputation), surpassing constraint-agnostic baselines and competing solvers in accuracy and efficiency. Overall, the paper advances practical, scalable constrained MAP inference for complex densities and non-convex constraints, with potential impact on safety-critical ML systems.
Abstract
In many safety-critical settings, probabilistic ML systems have to make predictions subject to algebraic constraints, e.g., predicting the most likely trajectory that does not cross obstacles. These real-world constraints are rarely convex, nor the densities considered are (log-)concave. This makes computing this constrained maximum a posteriori (MAP) prediction efficiently and reliably extremely challenging. In this paper, we first investigate under which conditions we can perform constrained MAP inference over continuous variables exactly and efficiently and devise a scalable message-passing algorithm for this tractable fragment. Then, we devise a general constrained MAP strategy that interleaves partitioning the domain into convex feasible regions with numerical constrained optimization. We evaluate both methods on synthetic and real-world benchmarks, showing our approaches outperform constraint-agnostic baselines, and scale to complex densities intractable for SoTA exact solvers.
