Neural Dual Bounds: Valid-by-Construction JGLP Warm-Starts for MAP and Constrained MAP

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

TL;DR

Neural Dual Bounds introduces a "valid-by-construction" framework that uses neural networks to accelerate MAP inference in probabilistic graphical models. By constraining the network's architecture to output antisymmetric edge messages, the authors guarantee that the predicted upper bounds are mathematically sound, providing a "warm start" for classical solvers that is up to six orders of magnitude tighter than standard initializations.

What Problem Does This Paper Address?

In probabilistic graphical models (PGMs), finding the most likely state—the Maximum A Posteriori (MAP) assignment—is a fundamental but NP-hard problem. Researchers often rely on dual bounds (deterministic upper bounds) to prune search spaces in branch-and-bound algorithms or to certify the robustness of a model.

Classical methods like Join-Graph Linear Programming (JGLP) produce these bounds through iterative coordinate descent. While effective, they are slow, often requiring hundreds of iterations per query. Conversely, modern "learned" inference methods are fast but usually only provide statistical validity—they might violate the upper-bound property on a small fraction of queries. In safety-critical applications or exact search, a bound that fails even once is effectively useless.

The authors bridge this gap: How can we use the speed of neural networks to generate bounds that are guaranteed to be valid every single time?

Methods

The core innovation is a framework that produces Neural Dual Bounds using a single forward pass of a neural network.

  1. Antisymmetric Parameterization: Instead of predicting the bound value directly, the network predicts "edge messages" ($m$). These messages are passed through a fixed, sparse "scatter matrix" ($A$) that enforces an antisymmetry constraint. Essentially, any value added to one side of a cluster edge is subtracted from the other. This ensures that the underlying joint distribution remains unchanged, making the resulting upper bound valid by construction, regardless of whether the network is well-trained or even initialized with random weights.
  2. Self-Supervised Training: The network is trained to minimize the upper bound directly. To make the "hard max" operation in the dual objective differentiable, the authors use a smooth log-sum-exp surrogate with a temperature parameter ($\tau$). This allows the model to learn from raw data without needing expensive "ground truth" labels from a slow LP solver.
  3. Test-Time Adaptation (TTA): For the more complex Constrained MAP (CMPE) task—where you find the most likely state subject to budget constraints—the authors use a replay buffer to fine-tune the network on the fly. This helps the model adapt to the shifting Lagrange multipliers encountered during the optimization process.

Datasets

The authors evaluated their framework on 15 PGM benchmarks from the UAI 2022 inference competition, encompassing:

  • Bayesian Networks (BN): Models like BN_12 and BN_14.
  • Image Segmentation: The Seg family of models.
  • Grid Markov Random Fields: Various grid topologies (e.g., grid20x20).

They also tested on a larger 37-PGM suite in the appendix to demonstrate the breadth of the approach.

Key Insights and Ideas

  • Architecture as a Rigorous Guarantee: The most striking "aha moment" is that validity is a structural property of the network's output layer, not a learned behavior. This removes the need for post-hoc calibration or safety margins.
  • Self-Supervision Outperforms Supervision: Surprisingly, training the network to minimize the dual objective (self-supervised) resulted in better performance than training it to mimic an LP solver (supervised). The self-supervised loss naturally avoids "overshooting" the optimal reparameterization.
  • The Power of Warm-Starts: The network isn't meant to replace the classical solver entirely. Instead, it provides a high-quality starting point. This "warm start" captures the global structure of the problem instantly, leaving the iterative solver to handle only the final local refinements.

Key Results

  • Massive Tightness Gains: On the Segmentation family, the neural warm-start yielded dual gaps 4 to 6 orders of magnitude tighter than zero-initialization at the 100-iteration mark.
  • Efficiency: A single neural forward pass takes roughly 0.04ms to 0.4ms, whereas a single JGLP iteration can take anywhere from 1.6ms to 131ms depending on the model's complexity. The prediction is essentially "free" compared to the cost of even one solver iteration.
  • Constrained MAP Success: In the multi-constraint setting, the combination of neural warm-starts and test-time adaptation achieved the tightest dual gaps on grid and segmentation models, outperforming non-neural baselines by one to two orders of magnitude.

Limitations and Future Work

  • Fixed Topology: Currently, the network (an MLP) is tied to a specific join-graph. If the graph structure or the "i-bound" (a complexity parameter) changes, the model must be retrained.
  • Generalization across Graphs: The authors reported a "negative result" when trying to use Graph Neural Networks (GNNs) to generalize across different topologies. While GNNs are the logical next step for amortization, the current implementation underperformed compared to the per-graph MLPs.
  • Early-Iteration Focus: The benefits are most pronounced in the early stages of optimization. As the number of iterations approaches infinity, both the neural-start and zero-start methods converge to the same LP optimum.

The authors suggest that future work should focus on making GNNs work for this task to enable "cross-topology" transfer, allowing a single model to provide valid bounds for any graphical model it encounters.

Summary updated

Abstract

We present Neural Dual Bounds, a calibration-free framework that produces deterministic upper bounds for MAP inference in probabilistic graphical models using a single neural-network forward pass. The framework trains a network to output the edge messages of a mini-bucket style upper bound on a given join-graph decomposition in a self-supervised manner by directly minimizing a smooth dual objective. The output of this network can be used at test time to warm-start a standard JGLP optimizer. Across diverse benchmarks, this warm start yields dual gaps that are orders of magnitude tighter than those from zero initialization, with the largest gains in the early-iteration regime. We also apply our framework for the constrained MAP (CMPE) task, where neural warm starts with test-time adaptation are comparable to the adaptive baseline on Bayesian networks and achieve the tightest dual gaps, by one to two orders of magnitude, on the grid and segmentation families.
BibTeX
@inproceedings{vyas2026neural,
  author = {Akshay Vyas and Shivvrat Arya and Brij Malhotra and Tahrima Rahman and Vibhav Gogate and Nicholas Ruozzi},
  title = {{Neural Dual Bounds: Valid-by-Construction JGLP Warm-Starts for MAP and Constrained MAP}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=fdwZvjybdN},
}
Figure