Diffusion Models Meet Network Management: Improving Traffic Matrix Analysis With Diffusion-Based Approach

Xinyu Yuan, Yan Qiao, Zhenchun Wei, Zeyu Zhang, Minyue Li, Pei Zhao, Rongyao Hu, Wenjing Li

TL;DR

Diffusion-TM is a novel framework that applies denoising diffusion probabilistic models to the complex task of Network Traffic Matrix (TM) analysis. By combining a two-stage training scheme with gradient-based guidance, it provides a unified, "plug-and-play" solution for traffic estimation, completion, and synthesis that significantly outperforms GANs and VAEs, even when 95% of the data is missing.

What Problem Does This Paper Address?

In modern network management, a Traffic Matrix (TM)—which tracks data volumes between every possible pair of nodes (Origin-Destination or OD flows)—is the "holy grail" for capacity planning and anomaly detection. However, obtaining a complete TM is notoriously difficult. High administrative costs and transmission losses mean that network operators usually only have access to partial flow data or coarse-grained link loads.

Existing solutions generally fall into two camps: TM Completion (filling in missing values using low-rank assumptions) and Network Tomography (inferring OD flows from link loads). Both struggle with the highly dynamic, non-Gaussian nature of real-world traffic. Furthermore, most deep learning models are "brittle"—they are task-specific and fail miserably when the training data itself contains massive amounts of missing values.

Methods

The authors introduce Diffusion-TM, a framework based on Denoising Diffusion Probabilistic Models (DDPM). The core innovation lies in how they adapt the generative power of diffusion to the constraints of network physics:

  1. Two-Stage Training: To handle "traffic-deficient" scenarios where the training set is incomplete, they first use a Bi-RNN Autoencoder to provide coarse-grained estimates of missing values. They then train a Transformer-based diffusion model using a "missing-data-aware" loss function.
  2. Plug-and-Play Guidance: Instead of training a new model for every task, they use a pre-trained unconditional diffusion model. During the reverse denoising process, they apply a gradient-based guidance term (derived via Tweedie’s Formula) to nudge the generated samples toward consistency with observed measurements (like link loads or known OD pairs).
  3. Theoretical Guarantee: The authors provide a mathematical proof (Theorem 1) ensuring that their guidance step keeps the estimated traffic within the realistic "data manifold," preventing the model from generating mathematically valid but physically impossible traffic patterns.
  4. Optimization Integration: For tomography tasks, they integrate the Expectation Maximization (EM) algorithm into the sampling process to further refine the accuracy of the inferred flows.

Datasets

The model was evaluated on two gold-standard real-world network traces:

  • Abilene: A US-based backbone network (12 routers, 144 OD flows).
  • GÉANT: A pan-European research network (23 routers, 529 OD flows). These datasets represent different scales and temporal granularities, providing a robust test for the model's generalization.

Key Insights and Ideas

  • Beyond Gaussian Assumptions: Traditional methods often assume traffic follows a Gaussian distribution. Diffusion-TM captures the complex, multi-modal distribution of real traffic, as evidenced by t-SNE visualizations where Diffusion-TM's generated data overlaps almost perfectly with real traces, unlike VAEs or GANs which tend to "collapse" to a smaller area.
  • The Power of the Prior: By learning the "prior" distribution of network traffic through diffusion, the model can solve highly underdetermined inverse problems (like tomography) much more effectively than supervised models that try to learn a direct mapping from link loads to flows.
  • Robustness to Extreme Sparsity: One of the most surprising findings is that the model maintains high accuracy even when only 5% of the values in the dataset are known. This is a game-changer for networks where monitoring infrastructure is sparse.

Key Results

  • Superior Accuracy: In TM completion tasks, Diffusion-TM reduced the Normalized Mean Absolute Error (NMAE) by approximately 15% on Abilene and 23% on GÉANT compared to the previous state-of-the-art (DATC).
  • Distribution Fidelity: Using the Maximum Mean Discrepancy (MMD) metric, the authors showed that Diffusion-TM produces synthetic traffic that is statistically much closer to real-world data than GAN-based approaches.
  • Tomography Performance: In network tomography, Diffusion-TM consistently outperformed supervised methods like BPTME and MNETME, especially as the rate of unknown values increased.
  • Efficiency: While diffusion models are often slow, the authors used DDIM (Denoising Diffusion Implicit Models) to accelerate sampling, achieving high-quality results in just 300 steps, making it competitive with other iterative generative methods.

Limitations and Future Work

The primary limitation acknowledged is the computational overhead. Even with acceleration techniques like DDIM, the iterative denoising process is more computationally expensive than "one-shot" neural network inferences.

The authors suggest that future work should focus on faster solvers (such as consistency models or distillation) to enable real-time traffic estimation in high-speed production environments. Additionally, exploring how this framework handles distribution shifts (e.g., sudden changes in network topology or routing policies) remains an open area for research.

Summary updated

BibTeX
@article{yuan2025diffusion,
  author = {Xinyu Yuan and Yan Qiao and Zhenchun Wei and Zeyu Zhang and Minyue Li and Pei Zhao and Rongyao Hu and Wenjing Li},
  title = {{Diffusion Models Meet Network Management: Improving Traffic Matrix Analysis With Diffusion-Based Approach}},
  journal = {IEEE Trans. Netw. Serv. Manag.},
  year = {2025},
  doi = {10.1109/tnsm.2025.3527442},
}
Figure