MIRAGE: Duality-Inspired MILP Augmentation for Representation Learning

Ziao Guo, Shiyue Wang, Jiayuan Yang, Junchi YanNeurIPS 2026

TL;DR

In computer vision, cropping or rotating an image of a cat still leaves you with a cat; in combinatorial optimization, nudging a single constraint can turn a solvable problem into a mathematical impossibility. MIRAGE solves this fragility by using mathematical duality recorded during standard solver runs to identify safe "wiggle room" in Mixed-Integer Linear Programs (MILPs). This enables principled contrastive pre-training that teaches lightweight neural networks to speed up exact optimization solvers across diverse benchmarks—adding zero overhead at test time.

What Problem Does This Paper Address?

Mixed-Integer Linear Programming (MILP)—optimizing a linear objective subject to linear constraints where some variables must be whole numbers—underpins everything from airline scheduling to supply chain routing. Because MILPs are NP-hard, solvers rely on Branch-and-Bound (B&B), an algorithm that systematically chops the search space into a tree of smaller subproblems.

Machine learning can accelerate B&B, either by choosing smarter variables to split on (Learning to Branch, or L2B) or by guessing good starting solutions (Predict-and-Search, or PaS). However, to keep latency low inside fast solver loops, ML4CO models must be tiny—often just a few layers of Graph Neural Networks (GNNs).

Contrastive learning (training models to pull "positive" similar pairs together and push "negative" dissimilar pairs apart) is a classic way to boost small models. But how do you augment a MILP to create a positive sample? Because variables are discrete, random noise can drastically warp the search tree or render the problem completely infeasible. We need perturbations that meaningfully vary the math while guaranteeing the core solution structure stays intact.

Methods

The authors ground their framework, MIRAGE, in a single quantity recorded for free during a solver's routine B&B run: the piecewise-affine B&B dual price function ($F_{\text{BB}}$). Think of $F_{\text{BB}}$ as an affine probe that tracks how shifts in constraints ($\Delta\boldsymbol{b}$) or objective coefficients ($\Delta\boldsymbol{c}$) ripple through the lower bounds of the search tree. If a perturbation leaves $F_{\text{BB}}$ invariant, the problem's underlying geometry or optimal solution won't budge.

Projecting this invariance principle onto constraints and objectives yields two mathematical "certificates" (safe zones for generating positive samples):

  • MIRAGE-C (Constraint-side / Inactive-Basic RHS Certificate): Identifies constraints that have positive slack (unused wiggle room) and remain basic across recorded tree nodes up to depth $K$. Shifting right-hand-side values within a fraction of their minimum slack provably preserves every node's LP solution—meaning the B&B search-tree prefix remains identical (suited for L2B).
  • MIRAGE-O (Objective-side / Box-Normal Objective Certificate): Perturbs objective coefficients strictly within a cone defined by a nominal optimal solution $\boldsymbol{x}^\star$ (e.g., increasing penalties in a minimization problem only on variables that are already sitting at zero). This provably keeps $\boldsymbol{x}^\star$ optimal and preserves its objective value (suited for PaS).

Negative samples are created by applying random-sign perturbations of the exact same magnitude across all coordinates, which provably causes $F_{\text{BB}}$ to drift. Standard GNN backbones are pre-trained with a classic InfoNCE contrastive loss on these pairs before standard downstream task training.

Datasets

No new datasets are introduced; the authors evaluate on established synthetic and real-world benchmarks:

  • Learning to Branch (L2B): Set Covering (SC), Combinatorial Auction (CA), Capacitated Facility Location (CFL), and Maximum Independent Set (MIS), trained on Easy instances and tested across Easy, Medium, and Hard scales.
  • Predict-and-Search (PaS): Synthetic CA and MIS benchmarks alongside two real-world datasets from the NeurIPS 2021 ML4CO competition: Item Placement (IP) and Workload Appointment (WA).

Key Insights and Ideas

  • It’s the math certificate, not just extra data or generic contrastive learning: In a controlled five-arm ablation, replacing certified positives with norm-matched random positives yielded virtually zero gain ($0.0\%$ on L2B; $0.1\%$ on PaS). Meanwhile, certified contrastive learning drove a $12.3\%$ speedup in L2B and a $24.9\%$ primal gap reduction in PaS over random-positive contrastive learning.
Table 3: Pooled ablation results, showing mean relative improvement with 95% confidence intervals across 12 L2B configurations (SC, CA, CFL, and MIS, each at Easy/Medium/Hard difficulty levels) and 6 PaS settings (IP, WA, and CA, each solved with Gurobi and SCIP).
  • Contrastive pre-training shapes an intuitive geometry: Without task-specific supervision, t-SNE plots show MIRAGE-C organizes problem embeddings smoothly by search-tree complexity (branching nodes), while MIRAGE-O organizes them by optimal objective value.
  • Negligible overhead: Recording duals piggybacks on existing label-generation runs (adding ~1.8% wall-clock time), pre-training takes ~20 minutes, and test-time inference requires zero extra operations.

Key Results

  • Learning to Branch: Integrated into a standard GCNN inside SCIP, MIRAGE-GCNN achieves the fastest solving times on almost all benchmarks and generalizes strongly to larger Hard instances—for example, winning 75/100 runs on Hard CA and cutting Hard MIS solving time from 1367.06s (GCNN) and 863.19s (CAMBranch) down to 732.29s.
Learning to Branch performance across SC, CA, CFL, and MIS benchmarks
  • Predict-and-Search: Paired with both Gurobi and SCIP under a 1,000s limit, MIRAGE-PS consistently outperforms standalone solvers, standard PS, and solution-level contrastive learning (ConPaS), shrinking the primal gap over PS by 17.7% to 100.0%.
Table 2: Performance comparison of Predict-and-Search across four MILP benchmarks, evaluated by the average objective values (OBJ) and absolute primal gap (gapabs) under a 1,000s time limit. Results are shown separately for Gurobi and SCIP as backend solvers. Further experimental details are provided in Sec. 5.2. Values highlighted in bold denote the best performance among all baselines.
  • Empirical invariance: Under standard SCIP, certified perturbations preserved K-prefix tree identity 96.9% of the time (MIRAGE-C) and nominal solution optimality 100% of the time (MIRAGE-O).

Limitations and Future Work

  • Conservative coverage & solver determinism: MIRAGE-C characterizes a conservative subset of safe perturbations rather than the full stability region. Furthermore, exact B&B tree preservation theoretically assumes a deterministic solver abstraction; in full-featured SCIP, minor solver heuristics or numerical effects account for the small 3.1% deviation from 100% prefix identity.
  • Unusable negative samples for downstream tasks: Because random-sign negative perturbations shift the problem distribution—and for MIRAGE-C, frequently result in infeasible MILPs—they must be discarded after contrastive pre-training rather than pooled into downstream training data.
  • Future synergy with generative models: Because MIRAGE perturbs existing "anchor" problems rather than synthesizing new ones from scratch, the authors note a natural next step is combining deep MILP instance generators (to expand the anchor pool) with MIRAGE (to build certified contrastive neighborhoods around them).

Summary updated

Abstract

Learning high-quality representations of mixed-integer linear programming (MILP) is crucial for advancing machine learning (ML)-based methods, yet remains challenging due to the discrete nature of MILPs and their extreme sensitivity to small perturbations. Although contrastive learning has proven highly effective for representation learning in domains such as computer vision, designing effective data augmentations for MILPs is particularly difficult. To address this challenge, we propose MIRAGE, a principled data augmentation framework grounded in the invariance of the piecewise-affine dual price function induced by the branch-and-bound (B\&B) algorithm. Viewing this dual function as a recorded, solver-level surrogate of the MILP's lower-bound structure, we derive two complementary augmentation certificates that act as its right-hand and objective-side projections. Both certificates are provably invariant under the same dual price function on the recorded B\&B tree, and therefore preserve either the structural similarity of the search tree or the optimality of the original optimal solution. Empirically, we integrate MIRAGE with ML models for two significant downstream tasks—learning to branch and predict-and-search—and observe consistent performance improvements across multiple benchmarks. By grounding MILP data augmentation in a single, solver-induced duality quantity, our work provides a principled and effective approach to MILP representation learning.
BibTeX
@inproceedings{guo2026mirage,
  author = {Ziao Guo and Shiyue Wang and Jiayuan Yang and Junchi Yan},
  title = {{MIRAGE: Duality-Inspired MILP Augmentation for Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hl7ySZqDvt},
}
Figure