Generative Learning for Solving Non-Convex Problem with Multi-Valued Input-Solution Mapping

Enming Liang, Minghua Chen

Machine learning models have shown remarkable speed improvements over traditional iterative algorithms for solving complex optimization problems. However, they often struggle with non-convex optimization. This is because a single input in a non-convex problem can have multiple valid optimal solutions, creating a complex, multi-valued mapping that confuses standard neural networks.

This paper introduces a generative learning approach using Rectified Flow (RectFlow) to learn the distribution of optimal solutions rather than a single deterministic mapping. By sampling from this learned distribution, the method achieves significantly better solution quality than existing neural network schemes while maintaining fast inference speeds.

The "Averaging" Curse in Non-Convex Optimization

In fields like power grid management, robotics, and wireless communications, complex optimization problems must be solved repeatedly in real-time as environmental parameters change. Traditional iterative solvers (like Gurobi) are often too slow for real-time use. Recently, researchers have trained Neural Networks (NNs) to learn the mapping from "inputs" (environmental parameters) to "outputs" (the optimal solution), allowing for instant predictions.

This works beautifully for convex problems, which have one unique optimal solution. However, non-convex problems often have multiple optimal solutions for the exact same input. If you train a standard NN on a dataset containing multiple valid answers for the same input, the network tries to learn a single-valued mapping. It ends up averaging the solutions together, outputting a prediction that is often completely invalid or highly suboptimal. Previous attempts to fix this—like clustering the data or using specialized loss functions—are computationally heavy, unstable, or require prior knowledge of exactly how many optimal solutions exist.

A Generative Approach using Rectified Flow

To address this fundamental issue, the authors propose a paradigm shift: instead of training an NN to learn a deterministic $Input \rightarrow Solution$ mapping, they train a generative model to learn the $Input \rightarrow Solution\ Distribution$.

The RectFlow architecture transforms a simple initial distribution into a complex, multi-modal solution distribution via an ODE trajectory.

To achieve this, the researchers utilize Rectified Flow (RectFlow), an Ordinary Differential Equation (ODE)-based generative model.

  1. Training: The model learns a continuous vector field that transforms a simple, easy-to-sample probability distribution (like a standard Gaussian) into the complex, multi-modal distribution of the actual optimal solutions, conditioned on the input parameters.
  2. Inference: When a new input arrives, the system samples random noise, pushes it through the learned ODE using a numerical solver (like Euler's method) to generate a batch of candidate solutions, and simply selects the one with the best objective value.

By treating optimization as a conditional generation problem, the model naturally captures all possible optimal branches without averaging them into a useless middle ground. Furthermore, the authors mathematically prove that the probability of generating a bad solution decreases exponentially as you sample more candidates. Because modern GPUs process batches highly efficiently, sampling 100 candidate solutions simultaneously takes roughly the same time as sampling just one.

Experimental Results

The authors evaluated their approach on a mix of synthetic, continuous, and discrete problems, generating datasets of 10,000 training instances and 1,024 test instances using traditional solvers to serve as ground truth.

Visualizing the Toy Problem

To demonstrate how different models handle multi-modal data, the authors created a synthetic 2D dataset featuring a complex 6-valued mapping.

Comparison of different models on a 6-valued toy problem. Standard NNs average the solutions, GANs struggle with mode collapse, while RectFlow perfectly captures all branches.

As seen in the visual comparisons, standard NNs drew a useless average line through the 6 possible solutions. GANs failed to fit the multi-modal distribution cleanly, suffering from mode collapse. Diffusion models worked well but are generally slower. RectFlow, however, perfectly mapped all 6 distinct solution curves, providing a deterministic, fast, and stable ODE trajectory.

Real-World Optimization Tasks

The generative approach also excelled in complex, real-world scenarios:

  • Wireless Power Control: Optimizing transmitter power levels to maximize network capacity while minimizing interference. On a complex 40-transmitter setup, RectFlow achieved a tiny 3.96% optimality gap, crushing the standard NN (30.64%) and GANs (36.39%). It also delivered a 7x speedup over traditional iterative solvers.
  • Combinatorial Graphs: Evaluated on Maximum Clique, Maximum Independent Set, and Maximum Cut problems using 100-node Erdos-Renyi random graphs. On the Maximum Cut problem, RectFlow achieved a 1.35% optimality gap compared to a standard NN's 12.06%, while operating 92x faster than the baseline solver.

Limitations and Future Work

The primary limitation of this approach is the offline data bottleneck. To teach the generative model the solution distribution, it requires a massive dataset of high-quality, pre-solved optimal solutions. Generating this ground-truth data using traditional, slow solvers is computationally expensive and scales poorly for massive problems.

To bypass the need for ground-truth data, future research directions will likely explore unsupervised or reinforcement learning approaches to train the NN-approximated vector field directly, further unlocking the potential of generative models in complex optimization.

Summary updated

BibTeX
@inproceedings{liang2024generative,
  author = {Enming Liang and Minghua Chen},
  title = {{Generative Learning for Solving Non-Convex Problem with Multi-Valued Input-Solution Mapping}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=3tM1l5tSbv},
}
Figure