A Graph Dynamics Prior for Relational Inference

Liming Pan, Cheng Shi, Ivan Dokmanic

Abstract

Relational inference aims to identify interactions between parts of a dynamical system from the observed dynamics. Current state-of-the-art methods fit the dynamics with a graph neural network (GNN) on a learnable graph. They use one-step message-passing GNNs—intuitively the right choice since non-locality of multi-step or spectral GNNs may confuse direct and indirect interactions. But the effective interaction graph depends on the sampling rate and it is rarely localized to direct neighbors, leading to poor local optima for the one-step model. In this work, we propose a graph dynamics prior (GDP) for relational inference. GDP constructively uses error amplification in non-local polynomial filters to steer the solution to the ground-truth graph. To deal with non-uniqueness, GDP simultaneously fits a "shallow" one-step model and a polynomial multi-step model with shared graph topology. Experiments show that GDP reconstructs graphs far more accurately than earlier methods, with remarkable robustness to under-sampling. Since appropriate sampling rates for unknown dynamical systems are not known a priori, this robustness makes GDP suitable for real applications in scientific machine learning.

Introduction

In fields ranging from neuroscience to epidemiology, researchers often observe the trajectories of a system—such as neurons firing or disease spreading—without knowing the underlying network of interactions. This challenge is known as Relational Inference (RI). While current state-of-the-art methods utilize Graph Neural Networks (GNNs) to learn these hidden graphs, they typically rely on "one-step" message passing. This assumes that the state of a node at time $t+1$ depends only on its immediate neighbors at time $t$.

However, this assumption frequently fails in practice due to low sampling rates. If a system is observed infrequently, a signal may travel across multiple nodes (e.g., from A to B to C) between observations. A standard one-step model will mistakenly conclude that A and C are directly connected, leading to "direct-indirect confusion" and trapping the model in poor local optima.

The Graph Dynamics Prior (GDP) Framework

To address these limitations, we introduce the Graph Dynamics Prior (GDP). Inspired by the "Deep Image Prior" concept, GDP uses the structure of the neural network itself as a regularizer to steer the optimization toward the true interaction network.

Overview of the GDP framework. (a) The general relational inference pipeline. (b) The dual-pathway architecture consisting of a polynomial multi-step model (A model) and a shallow one-step model ($g_\theta$ model) sharing a learnable graph topology.

Dual-Pathway Architecture

GDP employs a dual-pathway architecture with shared graph topology:

  1. The Polynomial (Multi-step) Model: This path utilizes high-degree polynomial filters that are mathematically sensitive to small perturbations in the graph. By intentionally using these non-local filters, the model amplifies errors in incorrect graph structures. This creates a steep gradient that pushes the optimizer away from bad local minima.
  2. The "Shallow" (One-step) Model: To resolve the ambiguity where multiple graphs might produce the same polynomial filter, a standard one-step model runs in parallel.
  3. Shared Topology: Both models share the same learnable adjacency matrix. The polynomial model acts as a "noise amplifier" to find the correct neighborhood, while the one-step model acts as an "anchor" to ensure interactions are direct.

Experimental Results

We evaluated GDP across diverse dynamical systems, including biological (Michaelis–Menten kinetics), physical (Rössler oscillators, spring-mass systems), and neuroscience benchmarks (Netsim fMRI simulations).

Robustness to Under-sampling

A key strength of GDP is its remarkable robustness to under-sampling. As the time interval between samples ($\delta t$) increases, traditional methods like Neural Relational Inference (NRI) often see a sharp decline in accuracy. In contrast, GDP maintains high performance because its polynomial path can effectively "see through" the multi-hop interactions caused by slow sampling rates.

Performance comparison across varying sampling intervals ($\delta t$). GDP maintains significantly higher AUC compared to baselines like NRI, MI, and TE as the sampling rate decreases.

In the Michaelis-Menten system, for instance, GDP achieved an AUC of 98.31%, significantly outperforming NRI's 54.09%. Furthermore, GDP demonstrated superior data efficiency, requiring fewer training samples to reach high accuracy compared to existing baselines.

Conclusion

GDP provides a robust solution for relational inference by turning error amplification—usually seen as a drawback—into a constructive feature for optimization. By combining non-local "steering" with local "resolving," GDP achieves state-of-the-art accuracy even in challenging under-sampled regimes. Future work will explore the model's performance under partial observability, where only a subset of system nodes can be monitored.

Summary updated

BibTeX
@inproceedings{pan2024graph,
  author = {Liming Pan and Cheng Shi and Ivan Dokmanic},
  title = {{A Graph Dynamics Prior for Relational Inference}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=zqb8TBarNw},
}
Figure