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

Physics Constrained Flow Neural Network for Short-Timescale Predictions in Data Communications Networks

Xiangle Cheng, James He, Shihan Xiao, Yingxue Zhang, Zhitang Chen, Pascal Poupart, Fenglin LiarXiv 2021

TL;DR

This paper introduces FlowNN, a novel neural network architecture that embeds the physical principles of data communication networks (like congestion control and flow conservation) into its learning process. By doing so, FlowNN significantly improves short-timescale (millisecond) predictions of network traffic, outperforming existing methods by reducing prediction loss by up to 71%.

What Problem Does This Paper Address?

Predicting the behavior of data communication networks, especially at very fine timescales (milliseconds), is crucial for efficient network management, traffic optimization, and ensuring Quality of Service (QoS). Traditional machine learning models often treat network data as a black box, relying solely on historical statistics. This approach overlooks the underlying physics that govern how data flows, such as congestion control mechanisms and the conservation of data bits across network nodes. This disregard for physics leads to suboptimal predictions, particularly when dealing with the highly dynamic and often skewed traffic patterns observed at millisecond intervals. The paper aims to bridge this gap by developing a model that explicitly incorporates these physical laws.

Methods

The core innovation is the Flow Neural Network (FlowNN), which comprises three key learnable functions:

  • Embedding Layer (fL1): A standard Multi-Layer Perceptron (MLP) that projects raw input features into a latent space.
  • PathAggregator (fL2): A recurrent neural network (like GRU) that aggregates information from all nodes along a routing path over time. This component aims to simulate the decision-making process of congestion control models.
  • Induction Layer (fL3): This is the most novel part. It uses paired "source-target" time windows, identified by specific rate differences between adjacent nodes, to filter out irrelevant information. It then employs an MLP and a Seq2Seq model to predict future states, explicitly incorporating the aggregated path information (from fL2) and local node states.

A crucial aspect of FlowNN is its self-supervised training strategy. This strategy uses a "stop-gradient" operation to simultaneously learn the data trend (via a projector) and the embedded physical bias. This approach encourages the model to learn physical laws that are transferable across different network environments and tasks, even if the raw data patterns differ.

Datasets

The paper evaluates FlowNN on four datasets:

  • WIDE: Realistic traffic traces from real-world network environments.
  • NUMFabric: A synthetic dataset generated using NS-3, configured with a 3-layer fat-tree topology.
  • NSF: A synthetic dataset based on the NSFNet topology.
  • GM50: A synthetic dataset based on the Germany 50 nodes topology.

For training and evaluation, they sampled 50 flows at a 1ms timescale, with a total length of 30000ms. The data includes sending/receiving rates and aggregated rates of background flows at each node. The datasets differ in their topology and whether they represent real-world or synthetic traffic.

Key Insights and Ideas

  • Physics as an Inductive Bias: The paper strongly advocates for incorporating domain-specific physics into machine learning models for network analysis. This "physics-informed" approach provides a powerful inductive bias that helps models generalize better and perform more accurately, especially for short-timescale predictions where raw data can be noisy.
  • Short-Timescale Dynamics are Governed by Physics: The paper highlights that while millisecond-level traffic can appear random, it's fundamentally governed by physical laws like congestion control and flow conservation. FlowNN's success demonstrates that these laws are predictable and can be leveraged for accurate forecasting.
  • Self-Supervised Learning for Transferability: The self-supervised training with stop-gradients is key to making the learned physical bias "universal." This allows the model to adapt to new environments or tasks without requiring extensive retraining on new labeled data, showcasing strong transfer learning capabilities.
  • Filtering Irrelevant Information: The Induction Layer's use of paired time windows to identify relevant spatio-temporal correlations is a clever way to filter out noise and focus on physically meaningful interactions, improving prediction accuracy.

Key Results

  • Significant Performance Improvement: FlowNN consistently outperforms state-of-the-art baselines (including GRU, m-GRU, STHGCN, and STGCN) across various datasets and prediction tasks.
  • Loss Reduction: FlowNN achieves a reduction in prediction loss (measured by MSE) of 17% to 71% compared to baselines for short-timescale (millisecond) prediction tasks.
  • Transferability: A FlowNN model pre-trained on one task (e.g., rate prediction) can be effectively fine-tuned for another task (e.g., end-to-end packet delay prediction) with minimal additional training, demonstrating strong generalization.
  • Out-of-Distribution Robustness: FlowNN shows superior generality when tested on datasets it was not trained on, outperforming baselines that degrade significantly in such scenarios.
  • Computational Efficiency: The model achieves these results with a computation time of around 0.3ms per prediction on a single Nvidia P40 GPU, making it suitable for real-time applications.

Limitations and Future Work

  • Computational Complexity: While efficient, the computational complexity of FlowNN depends on the length of routing paths. The paper notes that evaluating on larger topologies is left for future work.
  • Hyperparameter Tuning: The paper mentions conducting a grid search for hyperparameters for baselines and FlowNN, implying that optimal performance is sensitive to these choices.
  • Future Work: The authors suggest exploring larger topologies and further investigating the model's applicability to a wider range of networking tasks and environments. They also emphasize that network intelligence research is still in its early stages and hope their work inspires further innovation.

Summary updated

BibTeX
@misc{cheng2021physics,
  author = {Xiangle Cheng and James He and Shihan Xiao and Yingxue Zhang and Zhitang Chen and Pascal Poupart and Fenglin Li},
  title = {{Physics Constrained Flow Neural Network for Short-Timescale Predictions in Data Communications Networks}},
  year = {2021},
  eprint = {2112.12321},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.12321},
}
Figure