Diffusion-based learning framework for Constrained Nonconvex Optimization with Weighted Bootstrapped Refinement

Shutong Ding, Yimiao Zhou, Ke Hu, Xi Yao, Junchi Yan, Xiaoying Tang, Ye Shi

Introduction

Nonconvex optimization with hard constraints is a foundational challenge across numerous domains, from managing electrical power grids to planning complex robot kinematics. While traditional solvers offer precision, their computational overhead often precludes real-time application. Recently, diffusion models—renowned for their success in generative AI—have emerged as a promising alternative due to their multimodality, which allows them to capture multiple potential solutions rather than converging on just one.

However, applying diffusion models to constrained optimization introduces a critical bottleneck: the inability to reliably enforce constraint satisfaction. To bridge this gap, researchers have introduced DiOpt, a novel diffusion-based learning framework designed specifically for constrained nonconvex optimization.

The Challenge: Distributional Misalignment

The primary hurdle in adapting diffusion models for optimization is a phenomenon the authors term Distributional Misalignment.

When a diffusion model is trained via standard supervised learning to mimic "optimal" solutions, it learns a probability distribution (akin to a Gaussian ball) centered around those target points. In high-dimensional spaces, this learned distribution frequently exhibits near-zero overlap with the actual feasible region—the strict set of valid solutions dictated by the problem's constraints.

Consequently, while the model may generate outputs that superficially resemble correct answers, they almost universally violate the underlying rules of the problem. The authors mathematically prove (via Lemma 1) that as dimensionality increases, the probability of a supervised diffusion model sampling a valid solution decays exponentially toward zero. This invalidates the common "Multiple Sampling Myth"—the assumption that generating thousands of samples from a slightly misaligned model will eventually yield a valid point. In high dimensions, even infinite sampling cannot overcome severe distributional misalignment.

The DiOpt Framework

To resolve this misalignment, DiOpt moves beyond simple supervised learning, employing a dual-phase architecture that effectively maps noise directly into the constraint region.

Phase 1: Supervised Warm-Start

The framework begins with a standard supervised learning stage. Using a labeled dataset, the model learns the general vicinity of optimal solutions, providing a strong initialization point for the subsequent phase.

Phase 2: Weighted Bootstrapping

This phase represents DiOpt's core innovation. The model generates its own candidate solutions, which are then iteratively refined and reweighted based on a custom evaluation function:

  • Feasible points receive positive weights proportional to their objective value quality.
  • Infeasible points receive negative weights based on the severity of their constraint violations.

Stabilizing the Training Process

To maintain stability during the bootstrapping phase, DiOpt incorporates two key mechanisms:

  1. Look-up Table: A memory buffer that retains the best solutions discovered during training, preventing catastrophic forgetting.
  2. Reset Operation: A mechanism that periodically forces the model to prioritize finding any feasible point over optimizing for the best point. This "feasibility first" approach prevents the model from collapsing into a single, near-optimal but potentially invalid solution state.

Additionally, DiOpt handles equality constraints by generating independent variables and utilizing Newton's Method to solve for dependent variables, ensuring strict mathematical equalities are met exactly. During inference, DiOpt generates multiple candidates and employs a solution selection technique to output the optimal feasible result.

Experimental Evaluation and Results

The researchers evaluated DiOpt across five challenging nonconvex tasks, including synthetic benchmarks designed to induce numerical instability (QPSR and Concave QP), real-world Optimal Power Flow problems (ACOPF 57-bus and 118-bus), and a robotics Motion Retargeting task.

DiOpt demonstrated significant superiority over existing methods like DC3 and standard supervised diffusion (RectFlow):

  • Unprecedented Feasibility: On the mathematically rigorous QPSR task, DiOpt achieved an 81.87% feasibility rate, whereas the supervised RectFlow baseline completely failed, hitting 0%.
  • Near-Perfect Optimality: In the Motion Retargeting task, DiOpt achieved a 100% feasibility rate with a negligible optimality gap of just 0.65%. It effectively matched the performance of classical solvers but required only a fraction of the inference time.
  • Robustness: On the Concave QP (CQP) benchmark, which routinely breaks gradient-based methods, DiOpt maintained a ~70% feasibility rate while competitors suffered from numerical collapse.

Limitations and Future Directions

While DiOpt successfully pioneers the integration of diffusion solvers into constrained nonconvex optimization, its primary limitation is training efficiency. The bootstrapping phase requires generating numerous samples and performing iterative refinements, making it computationally expensive. For large-scale problems like the 118-bus power grid, training can exceed 30 hours.

Future research will likely focus on accelerating this training process and extending bootstrapped diffusion solvers to even higher-dimensional combinatorial challenges, such as large-scale scheduling and complex circuit design.

Summary updated

BibTeX
@inproceedings{ding2026diffusion,
  author = {Shutong Ding and Yimiao Zhou and Ke Hu and Xi Yao and Junchi Yan and Xiaoying Tang and Ye Shi},
  title = {{Diffusion-based learning framework for Constrained Nonconvex Optimization with Weighted Bootstrapped Refinement}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=w5lnam4G7C},
}
Figure