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

DiffSG: A Generative Solver for Network Optimization with Diffusion Model

Ruihuai Liang, Bo Yang, Zhiwen Yu, Bin Guo, Xuelin Cao, Mérouane Debbah, H. Vincent Poor, Chau Yuen

TL;DR

DiffSG is a novel framework that applies generative diffusion models to solve complex network optimization problems like resource allocation and task offloading. By learning the distribution of high-quality solutions rather than a direct input-to-output mapping, it achieves superior performance and remarkable robustness to "out-of-domain" network conditions.

What Problem Does This Paper Address?

In modern wireless networks (like 6G), optimization problems—such as deciding which user gets which frequency or where to process a computational task—are notoriously difficult. These problems are often "NP-hard," involving non-convex objective functions, discrete variables, and stringent constraints.

Traditional numerical methods are slow and don't transfer well between different scenarios. Standard deep learning (discriminative models) tries to learn a direct mapping from network states to optimal solutions. However, these models often struggle with the "global awareness" of the solution space; they try to find a single point in a massive, complex landscape in one jump. When the network environment changes slightly (Out-of-Domain or OOD inputs), these models frequently fail to find even a feasible solution.

Methods

The authors propose DiffSG (Diffusion Model-based Solution Generation). Instead of asking a neural network to "give me the answer," they train a diffusion model to "describe the neighborhood of good answers."

Key Technical Components:

  • Distribution Learning: DiffSG leverages the intrinsic ability of Denoising Diffusion Probabilistic Models (DDPMs) to learn a probability distribution $p(y|x)$, where $y$ is the solution and $x$ is the network state. It assigns higher probabilities to "better" solutions.
  • Vector-Based U-Net: Unlike image-based diffusion models that use convolutional layers, DiffSG uses a restructured U-Net designed for vector-output tasks. It employs linear layers to handle high-dimensional numerical data efficiently.
  • Accelerated Sampling: To make it practical for real-time networking, the authors use Denoising Diffusion Implicit Models (DDIM) to reduce the number of inference steps to just $T=20$ (compared to the thousands used in image generation).
  • Extreme Guidance: They found that network optimization requires a much higher "classifier-free guidance" strength ($\omega = 500$) than image generation ($\omega < 4$). This forces the model to converge strictly on the highest-quality solutions rather than maintaining "creative" diversity.

Datasets

The framework was validated across three distinct optimization scenarios:

  1. Computation Offloading (CO): A mixed-integer non-linear programming (MINLP) problem involving 50,000 samples.
  2. Maximum Sum Rate (MSR): A convex optimization problem (10,000 samples for both 3-channel and 80-channel configurations).
  3. NOMA-UAV (NU): A hierarchical non-convex optimization problem involving drone coordinates and power allocation (10,000 samples).

Crucially, the authors created OOD (Out-of-Domain) validation sets where network parameters (like task data size or available power) were pushed 20% to 100% beyond the ranges seen during training.

Key Insights and Ideas

  • Global Awareness over Point Mapping: By learning the solution distribution, the model gains a "global view" of the solution space. If the optimal point shifts due to a change in input, the model is more likely to find it because it understands the underlying "shape" of high-quality solutions.
  • Robustness is the Killer App: The most striking finding is that DiffSG's performance on OOD data is nearly identical to its in-domain performance. Discriminative models (like standard feedforward networks) see their error rates spike when the input data drifts.
  • Numerical Sensitivity: The paper highlights that numerical features in networking (decimal-level changes in channel gain) are much harder for models to "understand" than semantic categories in images. This justifies the need for the extremely high guidance strength used in the sampling process.

Key Results

The authors used the "exceed_ratio" (the ratio of the model's solution to the ground truth) as their primary metric. A value of 1.0 is perfect.

  • Superior Accuracy: In the Computation Offloading (CO) task, DiffSG achieved an exceed_ratio of 1.03, significantly outperforming Multi-Task Feedforward Neural Networks (1.67) and Reinforcement Learning (PPO) (1.60).
  • OOD Stability: On out-of-domain data for the NOMA-UAV task, DiffSG maintained an exceed_ratio of 0.90, while PPO plummeted to 0.53.
  • Efficiency: Despite being a generative model, the average inference time per sample was approximately 66ms to 110ms on an Apple M2 chip, making it feasible for many real-time networking applications.

Limitations and Future Work

  • Centralized Deployment: Currently, the model assumes a centralized server handles the optimization. The authors note that exploring distributed deployment for edge computing is a necessary next step.
  • Model Scale: The current model is relatively small (less than 1 million parameters). Scaling this up could unlock even better performance for massive-scale network problems.
  • Discrete Variables: While it handles mixed-integer problems, the authors suggest that more specialized "discrete solution generation" techniques could further improve results for purely combinatorial problems.
  • Constraint Integration: Future iterations could benefit from explicitly integrating hard constraints into the diffusion process to ensure 100% feasibility in every sample.

Summary updated

BibTeX
@article{liang2025diffsg,
  author = {Ruihuai Liang and Bo Yang and Zhiwen Yu and Bin Guo and Xuelin Cao and Mérouane Debbah and H. Vincent Poor and Chau Yuen},
  title = {{DiffSG: A Generative Solver for Network Optimization with Diffusion Model}},
  journal = {IEEE Communications Magazine},
  year = {2025},
  url = {https://openreview.net/forum?id=MnSns8RzIY},
}
Figure