NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Discrete Decisions for MIPs with Constraint-Aware Diffusion

Vincenzo Di Vito, Mehdi Taghizadeh, Deepjyoti Deka, Kaarthik Sundar, Ferdinando FiorettoarXiv 2026

TL;DR

Constrained Graph Diffusion (CGD) is a novel learning-based framework that solves complex mixed-integer optimization problems by using a generative diffusion model to predict discrete decisions. By embedding a training-free feasibility projection directly into the reverse diffusion process, CGD eliminates expensive combinatorial search while ensuring hard constraints are satisfied, achieving up to $425\times$ speedups over state-of-the-art commercial solvers.

What Problem Does This Paper Address?

Mixed-Integer Optimization problems—especially Mixed-Integer Nonlinear Programs (MINLPs)—are notoriously difficult to solve. They require making simultaneous discrete (e.g., yes/no) and continuous decisions under complex constraints. Traditional exact solvers rely on branch-and-bound algorithms, which scale exponentially with the number of discrete variables.

While machine learning has recently been used to predict optimization solutions directly, standard deep learning models struggle with hard combinatorial constraints. In physical systems like power grids, a single incorrect binary decision can cause a cascading failure, rendering the downstream continuous problem completely infeasible (for example, isolating a load bus from all generators, as illustrated in Figure 2).

An unconstrained sample isolating a load bus

Methods

The authors introduce Constrained Graph Diffusion (CGD), which exploits a powerful problem decomposition: if you can accurately determine the binary variables, the remaining problem collapses into a much simpler continuous optimization task that standard numerical solvers can handle efficiently.

Figure 1: End-to-end CGD pipeline. Starting from yT ∼N(0, I) and conditioning on the problem parameters ξ, each reverse step evaluates the denoiser sθ(yt, t, ξ), projects the resulting relaxed decision onto C, and updates yt−1. At t = 0, discrete recovery produces ˆz ∈Z, which induces the continuous solve for ˆx⋆. The downstream feasibility status and objective quality provide an outer feedback signal: if the induced problem is infeasible or the objective can be improved, CGD initiates another constrained-diffusion attempt.

CGD uses a graph-conditioned generative diffusion model to learn the distribution of these discrete decisions. The core novelty lies in how constraints are handled:

  1. Step-by-Step Projection: Instead of applying a heuristic repair at the very end of generation, CGD integrates a differentiable projection operator ($\Pi_{C_\xi}$) directly into every step of the reverse denoising process.
  2. Trajectory Steering: At each reverse timestep $t$, the model predicts a relaxed continuous decision, projects it onto a continuous relaxation of the combinatorial feasible set, and reinserts this corrected state back into the diffusion trajectory. This continuously steers intermediate samples toward the feasible region.
  3. Smart Gradient Bypass: To avoid the computational nightmare of differentiating through complex projection solvers during training, CGD utilizes a stop-gradient operator. The projected point acts as a fixed target for the current step's loss calculation, allowing smooth backpropagation through the denoising network.
Figure 3: Training and the four-stage inference protocol in CGD. (a) The shared denoiser maps K perturbations of one training pair and timestep to relaxed decisions; their mean and its correction define the feasibility loss. (b) One reverse trajectory repeats relaxed prediction and correction, stages (i)–(ii), before discrete recovery and continuous completion, stages (iii)–(iv).

Datasets

The framework was evaluated on two distinct domains with fundamentally different combinatorial structures:

  • Optimal Transmission Switching (OTS) for AC Optimal Power Flow (ACOPF): Evaluated using the IEEE 9-bus, 197-bus, and 500-bus systems (scaling up to 597 binary variables and 8,651 continuous variables).
  • Discrete Portfolio Optimization: A mixed-integer quadratic programming (MIQP) extension of Markowitz portfolio optimization, evaluated on synthetic datasets containing 50 and 150 assets.

Key Insights and Ideas

  • Trajectory-Level Correction is Superior: The authors demonstrate that projecting at every single step of the reverse diffusion process yields significantly better solution quality than unconstrained generation or post-hoc (final-step) repairs. It fundamentally changes which feasible solutions are generated, biasing the model toward lower-cost regions.
  • Amortizing Combinatorial Complexity: By shifting the combinatorial search from an online solver to an offline generative model, the runtime becomes dominated by the continuous subproblem rather than the exponential discrete search space.
  • The Certification Bottleneck: A fascinating finding is that while CGD provides near-optimal primal solutions instantly, using these solutions to "warm-start" a full MINLP solver does not significantly reduce the time required to certify global optimality. The bottleneck for exact solvers remains the mathematical verification via branch-and-bound.

Key Results

  • Massive Speedups: Compared to Gurobi solving the joint MINLP, CGD achieved end-to-end speedups of $425.2\times$ on the IEEE 9-bus system, $22.0\times$ on the 197-bus system, and $40.0\times$ on the 500-bus system.
  • Flawless Feasibility: While standard unconstrained diffusion baselines (like DIFUSCO) suffered from downstream infeasibility rates as high as 21%, CGD achieved 0% downstream infeasibility across all evaluated power grid and portfolio benchmarks.
  • Tight Objective Gaps: The solutions recovered by CGD were remarkably close to the exact global optimum, yielding objective gaps of just 0.01% (9-bus), 1.76% (197-bus), and 0.20% (500-bus).

Limitations and Future Work

  • No Optimality Certificates: As a generative approach, CGD provides high-quality approximate solutions but cannot mathematically guarantee or certify global optimality on its own.
  • Dependence on Continuous Relaxations: The method relies on the availability of a suitable continuous relaxation ($C_\xi$) of the combinatorial constraints that can be projected onto efficiently.
  • Future Solver Integration: Given that warm-starting exact solvers didn't accelerate optimality certification, the authors note that a promising future direction is exploring how constraint-aware diffusion models can be embedded deeper into solvers to guide internal branching and cutting plane choices directly.

Summary updated

BibTeX
@misc{vito2026learning,
  author = {Vincenzo Di Vito and Mehdi Taghizadeh and Deepjyoti Deka and Kaarthik Sundar and Ferdinando Fioretto},
  title = {{Learning Discrete Decisions for MIPs with Constraint-Aware Diffusion}},
  year = {2026},
  eprint = {2608.13079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.13079},
}
Figure