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.
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.
- Bounds drawn
- 300
- Below the optimum
- 0
- Exactly at the optimum
- 14
- 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 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 on the separator between two clusters is added to one and subtracted from the other:
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 :
Our network outputs one real number per edge and separator assignment, a vector . A fixed sparse matrix with entries in , determined by the join graph alone, writes each number into one cluster with a plus sign and into its neighbor with a minus sign, . The antisymmetry lives in , 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.
Proposition 1
For every temperature and every message vector, the smooth surrogate used for training is itself an upper bound: where replaces each max by and is the number of configurations of cluster .
Why: fix any complete assignment. Each edge adds to one cluster and 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 and . The true optimum is 17. With no messages the bound is 19, because the clusters disagree about and , 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.
| x₁=0 | x₁=1 | |
|---|---|---|
| x₀=0 | 2was 2 | 5was 5 |
| x₀=1 | 1was 1 | 7was 7 |
C₁ gives up, C₂ gains
| x₂=0 | x₂=1 | |
|---|---|---|
| x₁=0 | 8was 8 | 1was 1 |
| x₁=1 | 4was 4 | 6was 6 |
C₂ gives up, C₃ gains
| x₃=0 | x₃=1 | |
|---|---|---|
| x₂=0 | 3was 3 | 0was 0 |
| x₂=1 | 2was 2 | 4was 4 |
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, , every cluster maximum moves and the bound becomes exact: .
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 . 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.
| Message source | Smallest margin | Median margin | Smallest relative margin | Bounds | Largest change in a total score |
|---|---|---|---|---|---|
| No messages (the mini-bucket bound) | −6.07×10⁻⁸ | 1.86 | −1.22×10⁻¹⁰ | 1,598 | 0 |
| Trained network | 0.0831 | 1.47 | 1.25×10⁻⁴ | 1,598 | 9.09×10⁻¹³ |
| Untrained network, random initialization | 62.5 | 154 | 0.0401 | 1,598 | 9.09×10⁻¹³ |
| Trained messages multiplied by −5 | 10.1 | 42.0 | 0.0129 | 1,598 | 1.36×10⁻¹² |
| Gaussian noise at 10× the trained scale | 34.7 | 210 | 0.0616 | 1,598 | 9.09×10⁻¹² |
| Extreme values, ±10⁴ | 1.44×10⁶ | 5.98×10⁶ | 1,460 | 1,598 | 2.46×10⁻¹⁰ |
| All sources | −6.07×10⁻⁸ | 104 | −1.22×10⁻¹⁰ | 9,588 | 2.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 , 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, edge messages out
- Optimization
- AdamW with cosine annealing, 500 gradient steps at batch size 16, 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 , 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.
- JGLP from zero initialization
- JGLP from the neural warm start
- the forward pass alone, before any iteration
BN_12Bayesian network
grid20×20.f10Grid MRF
Seg_14Image segmentation
View as table
| Iteration | BN_12, zero init | BN_12, warm start | grid20×20.f10, zero init | grid20×20.f10, warm start | Seg_14, zero init | Seg_14, warm start |
|---|---|---|---|---|---|---|
| 0 | −31.16 | −31.59 | 2,809.6 | 2,780.5 | −140.48 | −142.05 |
| 1 | −31.19 | −31.73 | 2,799.1 | 2,775.4 | −140.57 | −142.14 |
| 5 | −31.34 | −31.87 | 2,782.1 | 2,771.5 | −141.30 | −142.17 |
| 10 | −31.50 | −31.92 | 2,777.3 | 2,770.2 | −141.76 | −142.17 |
| 20 | −31.70 | −31.97 | 2,773.6 | 2,769.0 | −142.11 | −142.17 |
| 50 | −31.91 | −32.01 | 2,770.1 | 2,767.5 | −142.18 | −142.18 |
| 100 | −31.98 | −32.03 | 2,767.8 | 2,766.4 | −142.18 | −142.18 |
| 200 | −32.02 | −32.04 | 2,766.0 | 2,765.5 | −142.18 | −142.18 |
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.
- warm start significantly tighter
- zero init significantly tighter
- not significant
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
| Model | Iteration 0: median, 95% interval | Seeds won or tied | Iteration 10: median, 95% interval | Seeds won or tied | Iteration 50: median, 95% interval | Seeds won or tied | Iteration 100: median, 95% interval | Seeds won or tied | Iteration 500: median, 95% interval | Seeds 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% |
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 , with one inner bound per step.
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 and compare four ways to start each inner solve.
- NN+TTA, adapted network
- JGLP+WS, reuse the previous step
- JGLP from zero
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
| Model | JGLP from zero | NN, frozen | JGLP+WS | NN+TTA | Paired median, NN+TTA against JGLP+WS |
|---|---|---|---|---|---|
| Bayesian networks | |||||
| BN_9 | 0.179 ± 0.090 | 0.167 ± 0.074 | 0.028 ± 0.046 | 0.021 ± 0.046 | +0.60 [+0.09, +0.89] |
| BN_12 | 0.622 ± 0.152 | 0.523 ± 0.136 | 0.082 ± 0.095 | 0.097 ± 0.126 | +0.16 [−0.02, +0.30] |
| BN_13 | 0.461 ± 0.127 | 0.351 ± 0.123 | 0.065 ± 0.096 | 0.044 ± 0.082 | +0.31 [+0.11, +0.46] |
| BN_14 | 0.305 ± 0.126 | 0.240 ± 0.121 | 0.072 ± 0.110 | 0.027 ± 0.071 | +1.15* [+0.73, +1.52] |
| Image segmentation | |||||
| Seg_12 | 0.709 ± 0.721 | 1.05 ± 0.969 | 6.32 ± 3.47 | 0.129 ± 0.362 | +3.44* [+3.36, +3.55] |
| Seg_14 | 0.828 ± 1.02 | 0.832 ± 0.879 | 9.49 ± 5.87 | 0.083 ± 0.314 | +3.66* [+3.53, +3.70] |
| Seg_16 | 2.37 ± 2.08 | 1.51 ± 1.58 | 9.02 ± 5.04 | 0.220 ± 0.676 | +3.21* [+3.16, +3.25] |
| Seg_18 | 0.883 ± 0.830 | 0.628 ± 0.586 | 6.19 ± 3.12 | 0.085 ± 0.262 | +3.00* [+2.92, +3.07] |
| Seg_19 | 2.54 ± 3.53 | 2.06 ± 2.59 | 12.0 ± 8.07 | 0.436 ± 1.25 | +3.30* [+3.27, +3.37] |
| Grid Markov random fields | |||||
| Grids_26 | 36.1 ± 53.0 | 37.0 ± 52.8 | 429 ± 371 | 16.0 ± 34.1 | +3.35* [+3.00, +3.45] |
| Grids_28 | 82.7 ± 120 | 84.2 ± 120 | 1,019 ± 885 | 53.0 ± 90.6 | +1.90* [+1.53, +2.26] |
| Grids_29 | 7.71 ± 11.9 | 8.30 ± 11.9 | 92.5 ± 80.5 | 1.60 ± 5.65 | +3.23* [+3.21, +3.28] |
| grid10×10.f5 | 0.172 ± 0.280 | 0.244 ± 0.244 | 2.30 ± 2.11 | 0.015 ± 0.072 | +3.24* [+3.11, +3.36] |
| grid20×20.f5 (same file as Grids_29) | 7.71 ± 11.9 | 8.33 ± 11.9 | 92.5 ± 80.5 | 1.60 ± 5.65 | +3.24* [+3.20, +3.29] |
| grid20×20.f10 | 207 ± 202 | 205 ± 202 | 913 ± 526 | 102 ± 134 | +1.43* [+1.35, +1.49] |
| Model | JGLP from zero | NN, frozen | JGLP+WS | NN+TTA | Paired median, NN+TTA against JGLP+WS |
|---|---|---|---|---|---|
| Bayesian networks | |||||
| BN_9 | 0.053 ± 0.062 | 0.027 ± 0.035 | 0.002 ± 0.007 | 0.005 ± 0.016 | −0.23 [−0.55, +0.12] |
| BN_12 | 0.207 ± 0.068 | 0.164 ± 0.065 | 0.030 ± 0.038 | 0.046 ± 0.054 | −0.03 [−0.16, +0.06] |
| BN_13 | 0.121 ± 0.109 | 0.063 ± 0.051 | 0.015 ± 0.030 | 0.014 ± 0.027 | −0.02 [−0.14, +0.16] |
| BN_14 | 0.050 ± 0.082 | 0.024 ± 0.033 | 0.007 ± 0.022 | 0.005 ± 0.018 | +0.12 [−0.13, +1.05] |
| Image segmentation | |||||
| Seg_12 | 0.094 ± 0.179 | 0.168 ± 0.333 | 0.537 ± 0.598 | 0.022 ± 0.088 | +4.85* [+4.60, +5.11] |
| Seg_14 | 0.023 ± 0.063 | 0.017 ± 0.051 | 0.389 ± 0.446 | 0.003 ± 0.022 | +4.07* [+3.87, +4.21] |
| Seg_16 | 0.185 ± 0.263 | 0.087 ± 0.176 | 0.418 ± 0.346 | 0.017 ± 0.076 | +3.58* [+3.45, +3.70] |
| Seg_18 | 0.057 ± 0.116 | 0.031 ± 0.062 | 0.219 ± 0.274 | 0.004 ± 0.026 | +3.28* [+2.99, +3.51] |
| Seg_19 | 0.600 ± 1.10 | 0.467 ± 0.864 | 1.04 ± 1.29 | 0.188 ± 0.534 | +3.80* [+3.63, +3.90] |
| Grid Markov random fields | |||||
| Grids_26 | 4.42 ± 11.5 | 4.43 ± 11.5 | 13.8 ± 13.3 | 2.13 ± 7.35 | +3.33* [+3.13, +3.59] |
| Grids_28 | 9.15 ± 24.4 | 9.18 ± 24.5 | 30.3 ± 28.4 | 6.23 ± 18.7 | +3.32* [+2.85, +3.49] |
| Grids_29 | 0.775 ± 2.48 | 0.781 ± 2.43 | 2.84 ± 3.41 | 0.163 ± 1.07 | +3.13* [+3.01, +3.37] |
| grid10×10.f5 | 0.044 ± 0.183 | 0.005 ± 0.037 | 0.022 ± 0.076 | 3.9×10⁻⁴ ± 0.009 | +2.83* [+2.59, +3.21] |
| grid20×20.f5 (same file as Grids_29) | 0.775 ± 2.48 | 0.774 ± 2.45 | 2.84 ± 3.41 | 0.162 ± 1.07 | +3.17* [+3.04, +3.35] |
| grid20×20.f10 | 64.5 ± 68.2 | 63.6 ± 68.4 | 150 ± 49.8 | 41.9 ± 52.8 | +0.84* [+0.78, +0.89] |
| Model | JGLP from zero | NN, frozen | JGLP+WS | NN+TTA | Paired median, NN+TTA against JGLP+WS |
|---|---|---|---|---|---|
| Bayesian networks | |||||
| BN_9 | 0.026 ± 0.055 | 0.009 ± 0.019 | 5.3×10⁻⁴ ± 0.003 | 0.002 ± 0.008 | −0.04 [−0.25, −0.01] |
| BN_12 | 0.107 ± 0.052 | 0.087 ± 0.047 | 0.019 ± 0.026 | 0.029 ± 0.034 | −0.10 [−0.30, +0.01] |
| BN_13 | 0.055 ± 0.107 | 0.025 ± 0.028 | 0.007 ± 0.015 | 0.007 ± 0.015 | −0.04 [−0.11, +0.00] |
| BN_14 | 0.020 ± 0.076 | 0.007 ± 0.014 | 0.002 ± 0.009 | 0.002 ± 0.008 | +0.00 [−0.01, +0.09] |
| Image segmentation | |||||
| Seg_12 | 0.022 ± 0.076 | 0.055 ± 0.160 | 0.124 ± 0.226 | 0.006 ± 0.038 | +4.61* [+4.09, +5.13] |
| Seg_14 | 0.003 ± 0.018 | 0.002 ± 0.015 | 0.030 ± 0.084 | 8.5×10⁻⁴ ± 0.009 | +2.23* [+1.91, +2.41] |
| Seg_16 | 0.014 ± 0.059 | 0.009 ± 0.048 | 0.019 ± 0.066 | 0.001 ± 0.015 | +2.08* [+1.70, +3.05] |
| Seg_18 | 0.003 ± 0.027 | 0.002 ± 0.007 | 0.018 ± 0.041 | 3.6×10⁻⁴ ± 0.005 | +2.34* [+1.74, +3.35] |
| Seg_19 | 0.305 ± 0.691 | 0.235 ± 0.558 | 0.371 ± 0.766 | 0.125 ± 0.382 | +2.68* [+2.47, +3.76] |
| Grid Markov random fields | |||||
| Grids_26 | 0.664 ± 2.63 | 0.663 ± 2.63 | 1.30 ± 2.84 | 0.337 ± 1.86 | +3.60* [+3.21, +4.02] |
| Grids_28 | 1.05 ± 4.68 | 1.06 ± 4.70 | 2.46 ± 5.10 | 0.717 ± 3.79 | +3.76* [+3.35, +4.09] |
| Grids_29 | 0.122 ± 0.588 | 0.121 ± 0.572 | 0.301 ± 0.730 | 0.024 ± 0.236 | +2.91* [+2.24, +3.70] |
| grid10×10.f5 | 0.041 ± 0.180 | 1.4×10⁻⁴ ± 0.001 | 7.0×10⁻⁴ ± 0.005 | 6.0×10⁻⁶ ± 2.6×10⁻⁴ | +2.00* [+1.66, +2.24] |
| grid20×20.f5 (same file as Grids_29) | 0.122 ± 0.588 | 0.121 ± 0.579 | 0.301 ± 0.730 | 0.024 ± 0.237 | +2.96* [+2.20, +3.70] |
| grid20×20.f10 | 33.9 ± 39.4 | 33.5 ± 39.5 | 48.6 ± 29.9 | 24.5 ± 32.5 | +0.51* [+0.46, +0.58] |
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.30Early 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 31Nothing 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 6Wall-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 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 15Reusing 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.23More 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 , 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 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.
- PaperCamera-ready PDF, 46 pages with the appendix. Licensed CC BY 4.0.
- VideoVideo presentation on SlidesLive, recorded for NeurIPS 2026.
- NeurIPSPoster page on neurips.cc. Poster session on December 10, 2026 in Atlanta.
- CodeIncluded in the paper's supplementary material.
- ContactAkshay Vyas
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.