Akshay Vyas Paper (PDF)

NeurIPS 2026Spotlight292 of 30,709 submissions (0.95%)

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

1The University of Texas at Dallas   2New Jersey Institute of Technology

A neural network that predicts upper bounds for MAP inference, built so that every output is a valid bound. One forward pass gives a certificate that holds whatever the weights are, and it gives the classical JGLP solver a head start.

Poster session: Thursday, December 10, 2026, 10:00 AM to 1:00 PM Eastern, Hall C1, at the NeurIPS 2026 site in Atlanta.

D(θ,Am) ≥ MAP∗D(\theta, Am) \,\ge\, \mathrm{MAP}^*for every output m

The paper's three-cluster example has a true optimum of 17. The bars count the bounds that random message vectors m produce. None can land left of the line.

2040true optimum, 17no outputlands here17202530354044+value of the boundcurrent m: 19
Bounds drawn
300
Below the optimum
0
Exactly at the optimum
14
Work the example
Valid by architecture
The network outputs antisymmetric edge messages on a join graph, so every output is an upper bound on the MAP value: trained, untrained or adversarial. We checked 7,990 such bounds against an exact LP solver and none fell below the optimum.
Trained without labels
For MAP inference the loss is the bound itself, through a smooth surrogate that is also a valid bound. Training needs no LP solver, no converged JGLP messages and no calibration set.
Useful where search spends its time
As a warm start it tightens JGLP's first iterations on 9 of 15 benchmark models. With test-time adaptation it gives the tightest bounds for constrained MAP on the grid and segmentation families.

A bound is only useful if it is never wrong

Many uses of probabilistic graphical models ask closely related questions again and again on one fixed graph. Branch-and-bound search expands one node per query, robustness certification verifies one input per query, constrained planning evaluates one constraint per query, and bound-based learning computes a new bound at every gradient step. Each query needs an upper bound on the MAP value, the score of the most probable assignment.

Classical dual methods such as JGLP always return a valid bound, but they often need hundreds of coordinate-descent iterations per query to make it tight. A neural network answers in a fraction of a millisecond, but a learned bound is usually valid only statistically. That is not enough. If a predicted bound falls below the true optimum on even a small fraction of queries, branch-and-bound can prune the optimal solution and a robustness certificate stops being a certificate. Conformal calibration adds a safety margin estimated on held-out data and still permits violations at its target rate. Learned search heuristics and inference networks speed up a solver or approximate its answer, but they do not certify a bound for every query.

Neural Dual Bounds removes the tradeoff by changing what the network predicts.

The network predicts messages, not bounds

A mini-bucket decomposition splits the model into small clusters CαC_\alpha that overlap on shared variables. Maximizing each cluster on its own and adding the results gives an upper bound, because a sum of maxima is at least the maximum of the sum. The bound is loose when neighboring clusters prefer different values of a variable they share.

Cost shifting tightens it. A message λαβ\lambda_{\alpha\beta} on the separator between two clusters is added to one and subtracted from the other:

θCα(xCα,λ)=θCα(xCα)+∑β∈N(α)λαβ(xSαβ),λαβ(xS)+λβα(xS)=0  on every edge, for every xS.\begin{gathered}\theta_{C_\alpha}(x_{C_\alpha}, \lambda) = \theta_{C_\alpha}(x_{C_\alpha}) + \sum_{\beta \in N(\alpha)} \lambda_{\alpha\beta}(x_{S_{\alpha\beta}}), \\[6pt] \lambda_{\alpha\beta}(x_S) + \lambda_{\beta\alpha}(x_S) = 0 \ \text{ on every edge, for every } x_S.\end{gathered}

For any complete assignment the two contributions cancel, so the model is unchanged, but the per-cluster maxima move. The reparameterized bound is valid for every antisymmetric λ\lambda:

D(θ,λ)=∑αmax⁡xCαθCα(xCα,λ)  ≥  MAP∗.D(\theta, \lambda) = \sum_{\alpha} \max_{x_{C_\alpha}} \theta_{C_\alpha}(x_{C_\alpha}, \lambda) \;\ge\; \mathrm{MAP}^*.

Our network outputs one real number per edge and separator assignment, a vector m∈Redim⁡m \in \mathbb{R}^{e_{\dim}}. A fixed sparse matrix AA with entries in {−1,0,+1}\{-1, 0, +1\}, determined by the join graph alone, writes each number into one cluster with a plus sign and into its neighbor with a minus sign, θ′=θ+Am\theta' = \theta + Am. The antisymmetry lives in AA, not in the weights, so training never has to enforce feasibility and nothing has to be checked afterwards. Trained, untrained and adversarial outputs all give valid bounds. Training only decides how tight they are.

Only the first step is learned. The steps that make the output a bound are fixed.
Input
Evidence, cluster tablesee and θ\theta
Learned
MLP fϕf_\phioutputs messages mm
Fixed by the join graph
Antisymmetric scatterθ′=θ+Am\theta' = \theta + Am
Fixed, no parameters
Sum of cluster maximaD=∑αmax⁡ θCα′D = \sum_\alpha \max\,\theta'_{C_\alpha}
Output
Upper boundD≥MAP∗D \ge \mathrm{MAP}^* for any weights

Proposition 1

For every temperature τ>0\tau > 0 and every message vector, the smooth surrogate used for training is itself an upper bound: Dτ(θ,λ)  ≥  D(θ,λ)  ≥  MAP∗,0  ≤  Dτ−D  ≤  τ∑αlog⁡nα,\begin{gathered}D_\tau(\theta, \lambda) \;\ge\; D(\theta, \lambda) \;\ge\; \mathrm{MAP}^*, \\[4pt] 0 \;\le\; D_\tau - D \;\le\; \tau \sum_{\alpha} \log n_\alpha,\end{gathered} where DτD_\tau replaces each max by τlog⁡∑exp⁡(⋅/τ)\tau \log \sum \exp(\cdot/\tau) and nαn_\alpha is the number of configurations of cluster α\alpha.

Why: fix any complete assignment. Each edge adds λαβ\lambda_{\alpha\beta} to one cluster and λβα\lambda_{\beta\alpha} to the other at the same separator values, so the pair cancels and the total equals the original score. Replacing each cluster term by its maximum can only increase the sum. Neither step uses any property of the network.

Try to push the bound below the optimum

This is the worked example from the paper: four binary variables in three clusters, chained by the shared variables x1x_1 and x2x_2. The true optimum is 17. With no messages the bound is 19, because the clusters disagree about x1x_1 and x2x_2, and that disagreement is the gap of 2.

Move the four messages or scramble them. Each one is taken from one cluster and given to its neighbor. The outlined entries belong to the optimal assignment and always add up to 17, so the three maxima can never add up to less.

Three clusters, two shared variables, four messagesLarge numbers are the reparameterized tables θ′=θ+Am\theta' = \theta + Am. Small numbers are the original entries.
Cluster C₁x₀, x₁
x₁=0x₁=1
x₀=0
2was 2
5was 5
x₀=1
1was 1
7was 7
cluster maximum7
shared variable x₁
C₁ gives up, C₂ gains
0
0
Cluster C₂x₁, x₂
x₂=0x₂=1
x₁=0
8was 8
1was 1
x₁=1
4was 4
6was 6
cluster maximum8
shared variable x₂
C₂ gives up, C₃ gains
0
0
Cluster C₃x₂, x₃
x₃=0x₃=1
x₂=0
3was 3
0was 0
x₂=1
2was 2
4was 4
cluster maximum4

largest entry in its clusterentry of the optimal assignment (1, 1, 1, 1)

The bound: three cluster maxima added
7 + 8 + 4 = 19gap of 2
The optimal assignment's three entries
7 + 6 + 4 = 17always 17
Complete assignments that keep their score
16 of 16

With the paper's messages, m=(−3,−2,−2,−3)m = (-3, -2, -2, -3), every cluster maximum moves and the bound becomes exact: 9+7+1=179 + 7 + 1 = 17.

Tested against an exact solver, with inputs built to fail

The guarantee is a theorem, so a single counterexample would falsify it. We tested it where an exact reference exists. For each of 1,598 benchmark queries we computed the optimum of the join-graph dual with an independent LP solver, then bounded the query with six different message sources: no messages, the trained network, an untrained network, the trained messages negated and scaled by five, Gaussian noise at ten times the trained scale, and values of ±104\pm 10^4. The last three are deliberate attempts to produce an invalid bound.

All 7,990 bounds produced from a network or from noise sit strictly above the optimum. The adversarial sources are valid by a wide margin precisely because they are loose: they cannot break the bound, only waste it. The only margins that are not positive are 53 cases with no messages at all, on the three models where the mini-bucket bound coincides with the LP optimum, and they are at floating-point level.

9,588 bounds, six message sources, none below the LP optimum beyond roundingMargin is the bound minus the exact optimum of the relaxation, D−DLPD - D^{\mathrm{LP}}. It must not be negative.
Message sourceSmallest marginMedian marginSmallest relative marginBoundsLargest change in a total score
No messages (the mini-bucket bound)−6.07×10⁻⁸1.86−1.22×10⁻¹⁰1,5980
Trained network0.08311.471.25×10⁻⁴1,5989.09×10⁻¹³
Untrained network, random initialization62.51540.04011,5989.09×10⁻¹³
Trained messages multiplied by −510.142.00.01291,5981.36×10⁻¹²
Gaussian noise at 10× the trained scale34.72100.06161,5989.09×10⁻¹²
Extreme values, ±10⁴1.44×10⁶5.98×10⁶1,4601,5982.46×10⁻¹⁰
All sources−6.07×10⁻⁸104−1.22×10⁻¹⁰9,5882.46×10⁻¹⁰

Source: Table 29. Queries are the 1,598 (model, evidence seed) pairs of the 100-seed MAP evaluation.

Trained on the bound itself, with no labels and no solver in the loop

Because every output is feasible, the bound can be the loss. We replace the hard max with the log-sum-exp surrogate DτD_\tau, which is differentiable and, by Proposition 1, still an upper bound, and minimize it directly over sampled evidence configurations. There are no optimal messages to generate, no LP solves and no JGLP runs during training, and a single backward pass through the smooth dual gives the gradient.

Two design choices matter more than the network's size. Predicting edge messages instead of cluster tables keeps the output in the valid subspace: with edge messages the network's bound beat the mini-bucket bound on 94% of test instances, and with direct cluster-table prediction on none. Training on the bound also beat regressing onto JGLP's messages, 94% against 72% on BN_12.

For constrained MAP we report two training routes. One supervises the network with LP-optimal messages for each Lagrangian. The other uses the same smooth dual with no LP in the loop, and it gave similar bound quality in a six-model pilot (Appendices B.20 and B.28).

Model
Three-layer MLP with LayerNorm and GELU, 512, 512 and 256 hidden units, one per join graph
Input and output
Evidence encoding in, edim⁡e_{\dim} edge messages out
Optimization
AdamW with cosine annealing, 500 gradient steps at batch size 16, τ\tau annealed from 0.01 to 0.001
Training data
Evidence configurations with 10 to 90% of variables observed, sampled fresh, with no inference labels
Training time
About 2.5 to 6.5 minutes per graph on the three models timed
Query time
0.23 to 0.39 ms per forward pass on a CPU, against 1.6 to 131 ms for one JGLP iteration

For MAP, the warm start buys the first iterations

We evaluate on 15 models from the UAI 2022 inference competition, covering Bayesian networks, image segmentation and grid Markov random fields, all at i-bound 4. The reference is DLPD^{\mathrm{LP}}, the exact optimum of the join-graph dual solved as a linear program, because JGLP's coordinate descent can stop short of it. Every gap below is measured to that optimum.

Started from the network's bound, JGLP is ahead from the first iterationThe bound D(θ,m)D(\theta, m) on one instance from each family over 200 JGLP iterations. Lower is tighter. Figure 1 of the paper, redrawn from its curves.
  • JGLP from zero initialization
  • JGLP from the neural warm start
  • the forward pass alone, before any iteration

BN_12Bayesian network

−32.0−31.8−31.6−31.4−31.2050100150200forward pass alone

grid20×20.f10Grid MRF

2,7702,7802,7902,8002,810050100150200forward pass alone

Seg_14Image segmentation

−142.0−141.5−141.0−140.5050100150200forward pass alone
View as table
IterationBN_12, zero initBN_12, warm startgrid20×20.f10, zero initgrid20×20.f10, warm startSeg_14, zero initSeg_14, warm start
0−31.16−31.592,809.62,780.5−140.48−142.05
1−31.19−31.732,799.12,775.4−140.57−142.14
5−31.34−31.872,782.12,771.5−141.30−142.17
10−31.50−31.922,777.32,770.2−141.76−142.17
20−31.70−31.972,773.62,769.0−142.11−142.17
50−31.91−32.012,770.12,767.5−142.18−142.18
100−31.98−32.032,767.82,766.4−142.18−142.18
200−32.02−32.042,766.02,765.5−142.18−142.18
Bound value at selected JGLP iterations. The warm start's value at iteration 0 is the forward pass alone.

Values are read from the vector curves of Figure 1 in the camera-ready paper.

One instance is an illustration. For the evidence, both starts were run on the same 100 evidence seeds per model, and the comparison is paired: for each seed we take the ratio of the two dual gaps, then report its median with a bootstrap interval and a Wilcoxon signed-rank test, Holm-corrected across models.

At iteration 10 the warm start is significantly tighter on 9 of 15 modelsMedian over seeds of the per-seed ratio of dual gaps, zero init over warm start, with 95% bootstrap intervals. 15 models, 100 seeds each.
  • warm start significantly tighter
  • zero init significantly tighter
  • not significant
zero init tighterwarm start tightermedian effectwon or tied2×equal2×5×10×Bayesian networksBN_91.2× tighter59%BN_121.7× tighter100%BN_131.8× tighter100%BN_141.6× tighter96%Image segmentationSeg_121.5× tighter86%Seg_148.6× tighter97%Seg_166.1× tighter100%Seg_181.5× tighter85%Seg_196% tighter55%Grid Markov random fieldsGrids_26no difference54%Grids_28no difference43%Grids_292% tighter76%grid10×10.f51% tighter67%grid10×10.f101.1× looser31%grid20×20.f101.2× tighter100%

The largest effects are on the segmentation models, up to 8.6× on Seg_14. Zero initialization is significantly tighter on one model, grid10×10.f10, where the mini-bucket start is already at the optimum on many seeds.

View as table, all five checkpoints
ModelIteration 0: median, 95% intervalSeeds won or tiedIteration 10: median, 95% intervalSeeds won or tiedIteration 50: median, 95% intervalSeeds won or tiedIteration 100: median, 95% intervalSeeds won or tiedIteration 500: median, 95% intervalSeeds won or tied
Bayesian networks
BN_9−0.081* [−0.124, −0.052]28%+0.070 [−0.014, +0.100]59%−0.914* [−1.354, −0.540]13%−0.002* [−0.006, −0.001]79%+0.000* [+0.000, +0.000]100%
BN_12+0.105* [+0.094, +0.112]97%+0.230* [+0.212, +0.258]100%+0.206* [+0.180, +0.240]91%+0.152* [+0.122, +0.193]93%+0.000 [+0.000, +0.000]96%
BN_13+0.103* [+0.077, +0.112]89%+0.244* [+0.231, +0.273]100%+0.129* [+0.099, +0.186]90%+0.062* [+0.035, +0.093]72%+0.000* [+0.000, +0.000]84%
BN_14−0.039* [−0.082, −0.026]31%+0.200* [+0.157, +0.232]96%+0.104* [+0.080, +0.151]78%+0.000 [−0.020, +0.040]54%+0.000* [+0.000, +0.000]96%
Image segmentation
Seg_12+0.003 [−0.015, +0.025]53%+0.180* [+0.094, +0.206]86%−0.216* [−1.164, −0.038]18%−0.099* [−0.154, −0.056]26%+0.000* [+0.000, +0.000]99%
Seg_14+0.278* [+0.202, +0.322]96%+0.932* [+0.754, +1.094]97%−3.497* [−3.878, −3.111]6%−1.888* [−2.190, −1.434]0%+0.000* [+0.000, +0.000]100%
Seg_16+0.445* [+0.410, +0.495]100%+0.783* [+0.696, +0.903]100%+2.251* [+1.690, +2.561]86%−0.765 [−1.335, −0.101]39%+0.000* [−0.001, +0.000]100%
Seg_18+0.024 [−0.007, +0.081]59%+0.180* [+0.148, +0.199]85%−0.280* [−1.106, −0.029]33%−0.177* [−0.536, −0.053]5%+0.000* [+0.000, +0.000]100%
Seg_19−0.279* [−0.387, −0.200]12%+0.027 [−0.068, +0.108]55%−2.489* [−3.009, −2.113]20%−1.292* [−1.733, −0.923]7%+0.000* [+0.000, +0.000]98%
Grid Markov random fields
Grids_26+0.008* [+0.001, +0.024]62%+0.000 [−0.001, +0.002]54%−1.121* [−2.928, −0.022]25%−1.902* [−2.264, −1.362]12%−0.028* [−0.054, −0.015]97%
Grids_28+0.007* [+0.003, +0.021]62%+0.000 [−0.002, +0.000]43%−1.501* [−3.758, −0.016]24%−2.484* [−2.933, −2.243]7%−0.025* [−0.044, −0.013]97%
Grids_29−0.007 [−0.012, +0.001]42%+0.010* [+0.005, +0.013]76%−0.095* [−2.110, +0.000]39%−1.496* [−2.142, −1.132]12%−0.009* [−0.017, −0.004]96%
grid10×10.f5−0.039* [−0.047, −0.024]19%+0.003 [+0.002, +0.005]67%−3.835* [−4.370, −3.235]16%−1.084* [−1.900, −0.151]56%+0.000* [+0.000, +0.000]100%
grid10×10.f10−0.262* [−7.948, −0.090]0%−0.060* [−5.370, −0.016]31%+0.000* [−0.007, +0.000]56%−0.104* [−2.374, +0.000]51%+0.000* [+0.000, +0.000]99%
grid20×20.f5 (same file as Grids_29)−0.007 [−0.013, +0.000]42%+0.010* [+0.005, +0.013]77%−0.119* [−1.850, +0.000]38%−1.816* [−2.221, −1.187]12%−0.010* [−0.017, −0.004]96%
grid20×20.f10+0.227* [+0.218, +0.239]100%+0.064* [+0.060, +0.067]100%+0.023* [+0.016, +0.030]79%+0.013* [+0.004, +0.022]67%+0.003 [−0.008, +0.013]54%
Median over seeds of log₁₀(zero-init gap ÷ warm-start gap). Positive favours the warm start and one unit is one order of magnitude. An asterisk marks significance at 0.05 after Holm correction. At iterations 100 and 500 both starts are at or near the LP solver's working accuracy on several models, so the paper cautions against reading those differences as a result in either direction.

Source: Tables 31 and 32. Significance is a two-sided Wilcoxon signed-rank test at 0.05 after Holm correction. A seed is won or tied when the warm start's gap is no larger than zero init's. The suite has 16 rows for 15 distinct models, because one UAI file ships under two names; the duplicate row is in the table but not in the chart. All MAP numbers use the corrected evaluation pipeline of Appendix B.24.

The gain is concentrated early. Both runs descend the same convex objective, so the warm start changes the shape of the first few tens of iterations rather than the converged bound, and by iteration 500 the two agree to within a few percent. Those early iterations are what a branch-and-bound node expansion spends, and a forward pass costs a fraction of one JGLP iteration, so the prediction is recovered whenever it saves one.

For constrained MAP, adaptation wins where the problem keeps moving

Constrained MAP asks for the most probable assignment subject to budgets defined by other models on the same graph, which covers safety, fairness, adversarial and resource-constrained reasoning. Its Lagrangian relaxation is a sequence of MAP bounds: projected gradient descent on the multipliers μ≥0\mu \ge 0, with one inner bound per step.

L(μ)=max⁡x[∑αθα(xα)−∑k=1Kμk(∑αθαk(xα)−qk)].L(\mu) = \max_x \Big[ \sum_{\alpha} \theta_\alpha(x_\alpha) - \sum_{k=1}^{K} \mu_k \Big( \sum_{\alpha} \theta^k_\alpha(x_\alpha) - q_k \Big) \Big].

A hundred multiplier steps means a hundred closely related queries on one graph, and with several constraints the multiplier is a vector, which earlier bounding methods for this task do not handle directly. We condition the network on μ\mu and compare four ways to start each inner solve.

With two constraints, the adapted network is the tightest start on every grid and segmentation modelMean gap to the LP optimum of the Lagrangian bound at a fixed inner-iteration budget, two constraints, 50 seeds and 100 multiplier steps per model. Log scale, lower is tighter.
  • NN+TTA, adapted network
  • JGLP+WS, reuse the previous step
  • JGLP from zero
adapted network vs reuse0.010.11101001,000Bayesian networksBN_91.3× tighterBN_121.2× looserBN_131.5× tighterBN_142.7× tighterImage segmentationSeg_1249× tighterSeg_14110× tighterSeg_1641× tighterSeg_1873× tighterSeg_1928× tighterGrid Markov random fieldsGrids_2627× tighterGrids_2819× tighterGrids_2958× tightergrid10×10.f5150× tightergrid20×20.f109.0× tighter

At 10 inner iterations NN+TTA is 9× to 150× tighter than JGLP+WS on the grid and segmentation models, where reusing a stale solution is worse than starting from zero. On the Bayesian networks the two are within a factor of 3.

View as table, all four methods and three budgets
ModelJGLP from zeroNN, frozenJGLP+WSNN+TTAPaired median, NN+TTA against JGLP+WS
Bayesian networks
BN_90.179 ± 0.0900.167 ± 0.0740.028 ± 0.0460.021 ± 0.046+0.60 [+0.09, +0.89]
BN_120.622 ± 0.1520.523 ± 0.1360.082 ± 0.0950.097 ± 0.126+0.16 [−0.02, +0.30]
BN_130.461 ± 0.1270.351 ± 0.1230.065 ± 0.0960.044 ± 0.082+0.31 [+0.11, +0.46]
BN_140.305 ± 0.1260.240 ± 0.1210.072 ± 0.1100.027 ± 0.071+1.15* [+0.73, +1.52]
Image segmentation
Seg_120.709 ± 0.7211.05 ± 0.9696.32 ± 3.470.129 ± 0.362+3.44* [+3.36, +3.55]
Seg_140.828 ± 1.020.832 ± 0.8799.49 ± 5.870.083 ± 0.314+3.66* [+3.53, +3.70]
Seg_162.37 ± 2.081.51 ± 1.589.02 ± 5.040.220 ± 0.676+3.21* [+3.16, +3.25]
Seg_180.883 ± 0.8300.628 ± 0.5866.19 ± 3.120.085 ± 0.262+3.00* [+2.92, +3.07]
Seg_192.54 ± 3.532.06 ± 2.5912.0 ± 8.070.436 ± 1.25+3.30* [+3.27, +3.37]
Grid Markov random fields
Grids_2636.1 ± 53.037.0 ± 52.8429 ± 37116.0 ± 34.1+3.35* [+3.00, +3.45]
Grids_2882.7 ± 12084.2 ± 1201,019 ± 88553.0 ± 90.6+1.90* [+1.53, +2.26]
Grids_297.71 ± 11.98.30 ± 11.992.5 ± 80.51.60 ± 5.65+3.23* [+3.21, +3.28]
grid10×10.f50.172 ± 0.2800.244 ± 0.2442.30 ± 2.110.015 ± 0.072+3.24* [+3.11, +3.36]
grid20×20.f5 (same file as Grids_29)7.71 ± 11.98.33 ± 11.992.5 ± 80.51.60 ± 5.65+3.24* [+3.20, +3.29]
grid20×20.f10207 ± 202205 ± 202913 ± 526102 ± 134+1.43* [+1.35, +1.49]
10 inner JGLP iterations, two constraints. Mean ± standard deviation of the gap to the LP optimum over 5,000 trials per cell. The last column is the median over seeds of log₁₀(JGLP+WS gap ÷ NN+TTA gap) with its 95% interval; an asterisk marks significance after Holm correction.
ModelJGLP from zeroNN, frozenJGLP+WSNN+TTAPaired median, NN+TTA against JGLP+WS
Bayesian networks
BN_90.053 ± 0.0620.027 ± 0.0350.002 ± 0.0070.005 ± 0.016−0.23 [−0.55, +0.12]
BN_120.207 ± 0.0680.164 ± 0.0650.030 ± 0.0380.046 ± 0.054−0.03 [−0.16, +0.06]
BN_130.121 ± 0.1090.063 ± 0.0510.015 ± 0.0300.014 ± 0.027−0.02 [−0.14, +0.16]
BN_140.050 ± 0.0820.024 ± 0.0330.007 ± 0.0220.005 ± 0.018+0.12 [−0.13, +1.05]
Image segmentation
Seg_120.094 ± 0.1790.168 ± 0.3330.537 ± 0.5980.022 ± 0.088+4.85* [+4.60, +5.11]
Seg_140.023 ± 0.0630.017 ± 0.0510.389 ± 0.4460.003 ± 0.022+4.07* [+3.87, +4.21]
Seg_160.185 ± 0.2630.087 ± 0.1760.418 ± 0.3460.017 ± 0.076+3.58* [+3.45, +3.70]
Seg_180.057 ± 0.1160.031 ± 0.0620.219 ± 0.2740.004 ± 0.026+3.28* [+2.99, +3.51]
Seg_190.600 ± 1.100.467 ± 0.8641.04 ± 1.290.188 ± 0.534+3.80* [+3.63, +3.90]
Grid Markov random fields
Grids_264.42 ± 11.54.43 ± 11.513.8 ± 13.32.13 ± 7.35+3.33* [+3.13, +3.59]
Grids_289.15 ± 24.49.18 ± 24.530.3 ± 28.46.23 ± 18.7+3.32* [+2.85, +3.49]
Grids_290.775 ± 2.480.781 ± 2.432.84 ± 3.410.163 ± 1.07+3.13* [+3.01, +3.37]
grid10×10.f50.044 ± 0.1830.005 ± 0.0370.022 ± 0.0763.9×10⁻⁴ ± 0.009+2.83* [+2.59, +3.21]
grid20×20.f5 (same file as Grids_29)0.775 ± 2.480.774 ± 2.452.84 ± 3.410.162 ± 1.07+3.17* [+3.04, +3.35]
grid20×20.f1064.5 ± 68.263.6 ± 68.4150 ± 49.841.9 ± 52.8+0.84* [+0.78, +0.89]
50 inner JGLP iterations, two constraints. Mean ± standard deviation of the gap to the LP optimum over 5,000 trials per cell. The last column is the median over seeds of log₁₀(JGLP+WS gap ÷ NN+TTA gap) with its 95% interval; an asterisk marks significance after Holm correction.
ModelJGLP from zeroNN, frozenJGLP+WSNN+TTAPaired median, NN+TTA against JGLP+WS
Bayesian networks
BN_90.026 ± 0.0550.009 ± 0.0195.3×10⁻⁴ ± 0.0030.002 ± 0.008−0.04 [−0.25, −0.01]
BN_120.107 ± 0.0520.087 ± 0.0470.019 ± 0.0260.029 ± 0.034−0.10 [−0.30, +0.01]
BN_130.055 ± 0.1070.025 ± 0.0280.007 ± 0.0150.007 ± 0.015−0.04 [−0.11, +0.00]
BN_140.020 ± 0.0760.007 ± 0.0140.002 ± 0.0090.002 ± 0.008+0.00 [−0.01, +0.09]
Image segmentation
Seg_120.022 ± 0.0760.055 ± 0.1600.124 ± 0.2260.006 ± 0.038+4.61* [+4.09, +5.13]
Seg_140.003 ± 0.0180.002 ± 0.0150.030 ± 0.0848.5×10⁻⁴ ± 0.009+2.23* [+1.91, +2.41]
Seg_160.014 ± 0.0590.009 ± 0.0480.019 ± 0.0660.001 ± 0.015+2.08* [+1.70, +3.05]
Seg_180.003 ± 0.0270.002 ± 0.0070.018 ± 0.0413.6×10⁻⁴ ± 0.005+2.34* [+1.74, +3.35]
Seg_190.305 ± 0.6910.235 ± 0.5580.371 ± 0.7660.125 ± 0.382+2.68* [+2.47, +3.76]
Grid Markov random fields
Grids_260.664 ± 2.630.663 ± 2.631.30 ± 2.840.337 ± 1.86+3.60* [+3.21, +4.02]
Grids_281.05 ± 4.681.06 ± 4.702.46 ± 5.100.717 ± 3.79+3.76* [+3.35, +4.09]
Grids_290.122 ± 0.5880.121 ± 0.5720.301 ± 0.7300.024 ± 0.236+2.91* [+2.24, +3.70]
grid10×10.f50.041 ± 0.1801.4×10⁻⁴ ± 0.0017.0×10⁻⁴ ± 0.0056.0×10⁻⁶ ± 2.6×10⁻⁴+2.00* [+1.66, +2.24]
grid20×20.f5 (same file as Grids_29)0.122 ± 0.5880.121 ± 0.5790.301 ± 0.7300.024 ± 0.237+2.96* [+2.20, +3.70]
grid20×20.f1033.9 ± 39.433.5 ± 39.548.6 ± 29.924.5 ± 32.5+0.51* [+0.46, +0.58]
100 inner JGLP iterations, two constraints. Mean ± standard deviation of the gap to the LP optimum over 5,000 trials per cell. The last column is the median over seeds of log₁₀(JGLP+WS gap ÷ NN+TTA gap) with its 95% interval; an asterisk marks significance after Holm correction.

Source: Tables 2 and 3. The chart shows the 14 distinct models; the table also lists the duplicate row and the frozen network.

The adaptation is there for a reason. Offline training samples multipliers between 0 and 1, but gradient descent at test time is unconstrained above: 36% of single-constraint queries and 25% of two-constraint queries land beyond 1, with maxima of 36.1 and 19.4. A frozen network there predicts messages fitted to a different Lagrangian. The bound stays valid but loosens, and the replay buffer refits the network to where the trajectory has actually been.

Paired per seed, NN+TTA beats the strongest non-learned baseline on every grid and segmentation model, by a median of 1.4 to 3.7 orders of magnitude at 10 inner iterations with two constraints and 1.8 to 4.4 with one. On Bayesian networks, where successive multiplier steps have nearby optima, carrying the previous solution forward is comparable with two constraints and better by three to four orders of magnitude with one. Against plain zero-initialized JGLP, the adapted network is tighter on every non-degenerate model, by roughly an order of magnitude at 50 inner iterations on the Bayesian-network and segmentation models.

Where it helps and where it does not

The paper states the scope of its claims directly, including two negative results. So does this page.

  • One network per graph

    The MLP is tied to a join graph. A new topology, or the same graph at a different i-bound, needs retraining, so the amortization is over repeated queries on a fixed graph. A graph neural network over the join graph keeps the guarantee on graphs it has never seen, but ours was not tight on them: it improved on the mini-bucket start on 0 of 54 held-out instances. Cross-topology transfer is the main open problem.

    Section 6 and Appendix B.30
  • Early iterations only

    Both starts descend the same convex objective to the same optimum. The warm start buys the first few tens of iterations, not the converged bound, and at tight tolerances zero initialization often gets there first.

    Section 6, Tables 15 and 31
  • Nothing to gain on degenerate models

    Where the mini-bucket bound already sits at the LP optimum, as on grid10×10 and grid40×40.f2, no reparameterization can improve it and the network cannot help.

    Sections 4.1 and 6
  • Wall-clock dominance is not the claim

    Counting the one-off training, a frozen network pays for itself at a practical query count only on the four Bayesian networks, after 3,215 to 26,968 queries at a 10−210^{-2} target. Test-time adaptation costs 63 to 276 ms per step and repays that only on a large model at a loose target. The claim is bound quality at a fixed iteration budget.

    Appendix B.6, Tables 14 and 15
  • Reusing the last solution is hard to beat on Bayesian networks

    When successive multiplier steps have nearby optima, the previous step's messages are already a good start. The learned prior dominates where the trajectory drifts. Adding the two together directly was worse than either alone on all 24 benchmarks tried, although the bound stayed valid.

    Section 6 and Appendix B.23
  • More data and bigger networks do not help much

    The iteration-10 gain is already saturated with 10 training configurations. Across an 18-fold range in parameter count it varies by at most 0.385 orders of magnitude within a model, and by more than a full order between models. The network does not reach the optimal bound even on its own training instances, so the limit is the message predictor, not the data.

    Appendix B.27, Tables 35 to 39

Also in the appendix

  • Adaptation needs a trajectory. On independent MAP queries, replay-buffer adaptation gave marginal to no benefit (B.19).
  • Constrained MAP without an LP. In a six-model pilot, a pipeline trained only on the smooth dual matched or exceeded the LP-supervised one on the four non-degenerate models (B.20, B.28).
  • A root bound for search. At the root of AND/OR branch-and-bound, the forward pass was tighter than the mini-bucket bound on most queries (B.8).
  • Eleven ablations. Loss weighting, gradient steps, replay size, architecture, target type and multiplier range (B.13).
  • Seed stability. Raising five models from 100 to 1,000 seeds moved one estimate materially, Seg_14's median effect, from 8.6× to 6.3× (B.17).
  • Double precision matters. In single precision the antisymmetric cancellation carries an error of about 10−710^{-7}, which dominates near convergence (B.29).
  • Not monotone in the evidence. The network predicts messages, not bound values, and its bound does not move monotonically as variables are observed (B.9).
  • Evidence encoding. One scalar per variable. One-hot encoding is the principled extension for categorical variables (B.14).
  • An adversarial image pilot. Constrained MAP on a FashionMNIST classifier ran cleanly but was degenerate, so it shows applicability, not a speedup (B.12).
  • Full benchmark suite. Forty rows, 36 distinct models, including Promedas and protein-folding networks, with per-row settings (B.2, B.10).

The construction is not specific to JGLP

Any Lagrangian dual whose decomposition passes antisymmetric messages admits the same parameterization. That includes dual decomposition, TRW-BP, weighted constraint satisfaction, and minimum-cost flow, where the LP dual already carries antisymmetric variables on edges. In each case the architecture and the self-supervised loss stay the same and only the scatter matrix AA changes. Our experiments cover the graphical-model benchmarks above; the other settings are structural observations, not results.

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.

Cite this paper

@inproceedings{vyas2026neural,
  title     = {Neural Dual Bounds: Valid-by-Construction {JGLP}
               Warm-Starts for {MAP} and Constrained {MAP}},
  author    = {Vyas, Akshay and Arya, Shivvrat and Malhotra, Brij
               and Rahman, Tahrima and Gogate, Vibhav
               and Ruozzi, Nicholas},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026}
}

This work was funded in part by the DARPA ANSR, CODORD, and CLARA programs under Awards FA8750-23-2-0004, HR00112590089, and HR0011269E224, respectively, and by the NSF grant 2327245.