Inferring networks from time series: A neural approach

Thomas Gaskin, Grigorios A. Pavliotis, Mark Girolami

This paper, recently published in PNAS Nexus, introduces a novel neural-network-based framework for a classic inverse problem: how do we figure out the hidden connections of a network just by watching how things move across it?

TL;DR

Researchers have developed a "neural approach" to reconstruct large-scale network structures from time-series data. By integrating physical differential equations directly into the neural network's loss function, the method provides robust uncertainty quantification and outperforms traditional regression and MCMC techniques, especially when data is noisy or incomplete.

What Problem Does This Paper Address?

Whether it’s a power grid, a social network, or a metabolic pathway, we often observe the dynamics (the time-series data) but cannot directly see the structure (the adjacency matrix). Inferring this structure is a notoriously difficult "inverse problem."

Current methods face three major hurdles:

  1. Noise: Real-world data is messy, and standard regression (like Ordinary Least Squares) often breaks down when noise is present.
  2. Underdetermination: We rarely have enough data to uniquely identify every single connection in a large network. Most existing tools give a single "best guess" without telling you how uncertain that guess is.
  3. Nonlinearity: Many systems (like economic models or synchronized oscillators) follow complex, nonlinear rules that simple linear models can't capture.

Methods

The authors propose a Neural Parameter Estimation scheme. Instead of using a neural network to "learn the data," they use it to "learn the parameters"—specifically, the adjacency matrix $\hat{A}$.

  • Physics-Informed Learning: The neural network outputs a predicted adjacency matrix. This matrix is then plugged into the known differential equations of the system (e.g., the Kuramoto model for power grids) to simulate a time series.
  • The Loss Function: The "loss" isn't just about matching the data; it includes terms for symmetry (for undirected networks) and sparsity (using a "hard sigmoid" activation function to force non-existent edges to zero).
  • Gradient-Driven Sampling: This is the "secret sauce." As the neural network trains, it traverses the parameter space. By tracking the loss values along this path, the authors can calculate a posterior probability density. This allows them to provide Uncertainty Quantification (UQ)—essentially a "confidence interval" for every single edge in the network.

Datasets

The authors validated their approach on three distinct scenarios:

  1. The British Power Grid: A model of 630 nodes and 763 edges. They simulated a line failure and used the resulting "ripple" in the grid's frequency to identify which lines were cut.
  2. Greater London Economic Model: A nonlinear model of supply and demand across 625 origin zones (wards) and 49 destination zones (commercial centers). This involved learning a cost matrix with over 30,000 weights.
  3. Synthetic Benchmarks: High-dimensional Kuramoto oscillator networks (up to 1,000 nodes/1 million potential edges) used to compare performance against traditional statistical methods.

Key Insights and Ideas

  • Training as Sampling: Traditional Bayesian methods like Markov-chain Monte Carlo (MCMC) are slow because they "walk" randomly. This neural approach is "gradient-driven," meaning it sprints toward high-probability regions, making it orders of magnitude faster for high-dimensional problems.
  • Meaningful Uncertainty: In the power grid experiment, the model didn't just guess which line failed; it provided a probability density for every edge. The failed lines showed the highest relative prediction error, allowing for formal hypothesis testing.
  • Robustness to "Data Poverty": Even when the problem was "underdetermined" (not enough time steps to fully solve the equations), the method could still produce a range of compatible networks that narrowed down the possibilities significantly.

Key Results

  • Superior Accuracy: On noisy data, the neural approach outperformed Ordinary Least Squares (OLS) by up to an order of magnitude.
  • Speed: The model learned the 30,000+ weights of the London economic cost matrix in under 5 minutes on a standard laptop.
  • Scalability: It successfully reconstructed a 1,000-node graph (1 million edges) in about an hour on a CPU, which dropped to just 6 minutes when using a GPU.
  • MCMC Comparison: It was consistently more accurate and significantly faster than the Metropolis-adjusted Langevin Algorithm (MALA), a sophisticated MCMC variant.

Limitations and Future Work

  • Differentiability Required: The current framework requires the underlying system equations to be differentiable with respect to the parameters. It cannot yet handle "black box" simulations where the gradient is unknown.
  • Topology Impact: The authors note that they haven't yet explored how the specific shape of a network (e.g., scale-free vs. small-world) affects how easily it can be learned.
  • Data Efficiency: While the model handles low-data scenarios well, the authors aim to investigate if system properties can be inferred from even more limited observations, such as the trajectory of a single particle in a large system.

Summary updated

BibTeX
@inproceedings{gaskin2024inferring,
  author = {Thomas Gaskin and Grigorios A. Pavliotis and Mark Girolami},
  title = {{Inferring networks from time series: A neural approach}},
  booktitle = {PNAS},
  year = {2024},
  doi = {10.1093/pnasnexus/pgae063},
}
Figure