Neural Graph Simulator for Complex Systems

Hoyun Choi, Sungyeop Lee, B. Kahng, Junghyo JoarXiv 2024

Abstract

Numerical simulation is a predominant tool for studying the dynamics in complex systems, but large-scale simulations are often intractable due to computational limitations. Here, we introduce the Neural Graph Simulator (NGS) for simulating time-invariant autonomous systems on graphs. Utilizing a graph neural network, the NGS provides a unified framework to simulate diverse dynamical systems with varying topologies and sizes without constraints on evaluation times through its non-uniform time step and autoregressive approach. The NGS offers significant advantages over numerical solvers by not requiring prior knowledge of governing equations and effectively handling noisy or missing data with a robust training scheme. It demonstrates superior computational efficiency over conventional methods, improving performance by over $10^5$ times in stiff problems. Furthermore, it is applied to real traffic data, forecasting traffic flow with state-of-the-art accuracy. The versatility of the NGS extends beyond the presented cases, offering numerous potential avenues for enhancement.

Introduction

Simulating the dynamics of complex systems—such as power grids, epidemic spreads, or traffic flow—traditionally requires solving systems of differential equations. Conventional numerical solvers, like Runge-Kutta or LSODA, face two primary challenges. First, the computational cost becomes prohibitive for "stiff" problems, where variables change at vastly different scales, forcing solvers to take infinitesimal time steps. Second, these solvers require exact governing equations, which are frequently unknown in real-world scenarios where only observational data is available.

The Neural Graph Simulator (NGS) addresses these hurdles by providing a data-driven, equation-agnostic framework. By learning the underlying operators directly from trajectories, the NGS bypasses the need for explicit physics and maintains high efficiency regardless of system stiffness.

Methodology

The NGS architecture follows an Encoder-Processor-Decoder structure designed for flexibility and robustness.

  • Encoder: Maps node states, edge coefficients, and global features into a high-dimensional latent space.
  • Processor (Graph Network): Employs $L$ layers of Graph Networks (GN) to perform message passing. A critical innovation is the inclusion of the time step ($\Delta t$) as an explicit input, allowing the model to predict system states at arbitrary future points rather than being locked into fixed intervals.
  • Decoder: Translates latent representations back into physical dimensions to predict the change in state ($\Delta S$).

To ensure reliability in real-world conditions, the model utilizes a robust training scheme. It is trained on "degraded" data containing Gaussian noise and missing nodes. By excluding the neighbors of missing nodes from the loss calculation, the NGS learns to maintain accuracy despite incomplete observations.

NGS architecture and robust training scheme.

Experimental Results

The authors evaluated the NGS across diverse systems, ranging from synthetic chaotic models to real-world traffic data:

  1. Linear Thermal System: Used to validate the reconstruction of incomplete data.
  2. Coupled Rössler System: A chaotic system where the NGS achieved a 100x reduction in function evaluations compared to the DOP853 solver.
  3. Kuramoto System: A system of interacting oscillators used to test "stiffness." In these scenarios, traditional solvers must perform millions of evaluations to maintain stability. The NGS maintained a constant, low computational cost, resulting in a performance gain exceeding $10^5$ (100,000x).
  4. PEMS-BAY Traffic Data: On this large-scale dataset (325 sensors), the NGS achieved state-of-the-art accuracy, performing on par with specialized models like STEP and STD-MAE.
Simulation of the stiff Kuramoto system.

Discussion and Conclusion

The NGS demonstrates remarkable versatility through its ability to scale. It can be trained on small graphs (100–200 nodes) and successfully simulate systems 20 times larger without additional training. By treating $\Delta t$ as a continuous input, it overcomes the temporal rigidity common in standard Recurrent Neural Networks (RNNs).

While highly effective, the NGS is currently limited to autonomous systems where rules are time-invariant and requires substantial training data. Future work may extend the framework to non-autonomous systems with time-varying external forces and incorporate techniques to infer unknown network structures when the adjacency matrix is not provided. Overall, the NGS represents a significant step toward efficient, data-driven simulation of complex dynamical systems.

Summary updated

BibTeX
@misc{choi2024neural,
  author = {Hoyun Choi and Sungyeop Lee and B. Kahng and Junghyo Jo},
  title = {{Neural Graph Simulator for Complex Systems}},
  year = {2024},
  eprint = {2411.09120},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.09120},
}
Figure