Deep learning reveals hidden interactions in complex systems

Seungwoong Ha, Hawoong Jeong · DOI

Abstract

Rich phenomena from complex systems have long intrigued researchers, and yet modeling system micro-dynamics and inferring the forms of interaction remain challenging for conventional data-driven approaches, being generally established by human scientists. In this study, we propose AgentNet, a model-free data-driven framework consisting of deep neural networks to reveal and analyze the hidden interactions in complex systems from observed data alone. AgentNet utilizes a graph attention network with novel variable-wise attention to model the interaction between individual agents, and employs various encoders and decoders that can be selectively applied to any desired system. Our model successfully captured a wide variety of simulated complex systems, namely cellular automata (discrete), the Vicsek model (continuous), and active Ornstein--Uhlenbeck particles (non-Markovian) in which, notably, AgentNet's visualized attention values coincided with the true interaction strength and exhibited collective behavior that was absent in the training data. A demonstration with empirical data from a flock of birds showed that AgentNet could identify hidden interaction ranges exhibited by real birds, which cannot be detected by conventional velocity correlation analysis. We expect our framework to open a novel path to investigating complex systems and to provide insight into general process-driven modeling.

Introduction

Complex systems, ranging from cellular processes to bird flocks and human societies, are characterized by emergent behaviors—global patterns arising from simple local interactions. Traditionally, understanding these systems has relied on process-driven modeling, where scientists propose mathematical forms for interactions based on intuition. While data-driven approaches like standard deep learning excel at prediction, they often function as "black boxes," failing to provide interpretable insights into the underlying physics.

Furthermore, existing Graph Attention Networks (GATs) typically assign a single scalar importance value to a neighbor. This is insufficient for physical systems where an agent's influence may vary across different dimensions (e.g., strong force in $x$, weak in $y$). To bridge this gap, researchers at KAIST developed AgentNet, a framework designed to infer interpretable interaction rules directly from observation data.

Methodology: The AgentNet Framework

AgentNet treats a complex system as a dynamic graph where agents are nodes. The core of the framework is a novel Variable-wise Neural Attention mechanism. Unlike standard GATs, AgentNet calculates independent attention weights for every state variable, allowing it to distinguish between different types of directional influences.

AgentNet architecture overview showing the transition from a complex system state to predicted changes via variable-wise attention.

Key architectural innovations include:

  • Sigmoid Attention Scaling: Instead of the standard "softmax" (which forces relative attention), AgentNet uses a "sigmoid" function to infer the absolute magnitude of interaction, reflecting physical reality more accurately.
  • Modular Encoder-Decoder: The framework supports various modules, such as LSTMs for non-Markovian systems with memory or Gaussian decoders for stochastic systems.
  • Dynamic Inspection: A scheme to handle spatiotemporal graphs where agents enter or leave the field of view, essential for real-world empirical data.

Experiments and Key Insights

The authors validated AgentNet across four systems: Cellular Automata (Conway’s Game of Life), the Vicsek Model (flocking), Active Ornstein–Uhlenbeck Particles (AOUP), and empirical data from a Chimney Swift flock.

Learning Underlying Physics

In the AOUP system, AgentNet learned to predict hexagonal clustering patterns that only emerge over long timescales, even though such patterns were absent from the short-term training data. This indicates the model learned fundamental interaction rules rather than just memorizing trajectories.

Interpretable Interaction Ranges

When applied to real-world bird flocks, AgentNet "discovered" that birds primarily attend to neighbors within a specific forward-facing visual cone (visual frustum). This aligns with biological studies of bird vision—a result that conventional velocity correlation analysis failed to detect.

Validation of AgentNet: (A) Visualized interaction ranges in bird flocks, (B) Comparison of attention weights in trained vs. untrained models, and (C) Trajectory prediction accuracy.

Quantitative Performance

  • Cellular Automata: Achieved 100% accuracy in identifying transition rules.
  • AOUP System: Prediction error (ADE/FDE of 0.041/0.064) was significantly lower than standard LSTMs (0.158/0.316) and multi-headed GATs (0.065/0.087).
  • Vicsek Model: Achieved a Negative Log-Likelihood (NLL) of -1.365, nearing the theoretical limit of -1.524.

Conclusion and Future Directions

AgentNet demonstrates that deep learning can move beyond mere prediction to provide causal, interpretable insights into complex systems. While the current model assumes pairwise interactions, future work may incorporate hypergraph structures to model higher-order (e.g., three-body) problems. Additionally, optimizing the GNN architecture will be necessary to scale the framework to systems involving millions of agents, such as large-scale traffic or molecular simulations.

Summary updated

Abstract

Rich phenomena from complex systems have long intrigued researchers, and yet modeling system micro-dynamics and inferring the forms of interaction remain challenging for conventional data-driven approaches, being generally established by human scientists. In this study, we propose AgentNet, a model-free data-driven framework consisting of deep neural networks to reveal and analyze the hidden interactions in complex systems from observed data alone. AgentNet utilizes a graph attention network with novel variable-wise attention to model the interaction between individual agents, and employs various encoders and decoders that can be selectively applied to any desired system. Our model successfully captured a wide variety of simulated complex systems, namely cellular automata (discrete), the Vicsek model (continuous), and active Ornstein--Uhlenbeck particles (non-Markovian) in which, notably, AgentNet's visualized attention values coincided with the true interaction strength and exhibited collective behavior that was absent in the training data. A demonstration with empirical data from a flock of birds showed that AgentNet could identify hidden interaction ranges exhibited by real birds, which cannot be detected by conventional velocity correlation analysis. We expect our framework to open a novel path to investigating complex systems and to provide insight into general process-driven modeling.
BibTeX
@misc{ha2020deep,
  author = {Seungwoong Ha and Hawoong Jeong},
  title = {{Deep learning reveals hidden interactions in complex systems}},
  year = {2020},
  eprint = {2001.02539},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.02539},
}
Figure