TANGO: Time-Reversal Latent GraphODE for Multi-Agent Dynamical Systems

Zijie Huang, Wanjia Zhao, Jingdong Gao, Ziniu Hu, Xiao Luo, Yadi Cao, Yuanzhou Chen, Yizhou Sun, Wei Wang · DOI

Abstract

Simulating multi-agent dynamical systems is critical across scientific domains. While Graph Neural Networks combined with Ordinary Differential Equations (GraphODEs) offer a data-driven approach, they often fail to respect underlying physical laws, such as energy conservation. We present TANGO (Time-Reversal Latent GraphODE), a framework that incorporates a flexible time-reversal symmetry constraint. By aligning forward and backward trajectories in a latent space, TANGO provides a physically grounded inductive bias that is broader than strict energy conservation, enabling accurate simulation of both conservative and non-conservative systems.

Introduction

Modeling the interactions of multiple agents—ranging from molecular particles to robotic components—requires capturing complex temporal dynamics. Traditional numerical simulators are computationally expensive and require explicit knowledge of physical equations. Recent deep learning approaches, specifically GraphODEs, attempt to learn these dynamics from data. However, "purely data-driven" models frequently produce physically impossible trajectories, such as systems where energy diverges or vanishes without cause.

To address this, existing physics-informed models often impose Hamiltonian constraints to enforce energy conservation. While effective for closed systems, these constraints are too rigid for real-world scenarios involving friction, air resistance, or external driving forces. TANGO introduces a more versatile physical "nudge" based on time-reversal symmetry (TRS).

Methodology: Time-Reversal Symmetry in Latent Space

TANGO leverages the principle that many physical laws are time-reversible: a reversed sequence of states (with flipped velocities) should still follow the same dynamical laws. Unlike strict energy conservation, TRS applies to a wider class of systems, including those with certain types of external forces.

Figure 3: The TANGO architecture consists of an encoder that maps input trajectories to a latent space, a GNN-based ODE processor for state evolution, and a decoder. A soft Time-Reversal Symmetry constraint regularizes the model by aligning forward and backward latent trajectories.

The TANGO architecture operates in three stages:

  1. Encoder: Maps observed trajectories into a compressed latent representation using spatial-temporal GNNs and self-attention.
  2. Processor (GNN-based ODE): Evolves the latent states over time using a Graph Neural Network to model agent interactions within an ODE solver.
  3. Time-Reversal Symmetry Constraint: A regularization term ensures that "rewinding" the predicted trajectory from the end state back to the start matches the original forward path.

By enforcing this symmetry in a latent space, TANGO can handle noisy or irregularly sampled data while implicitly minimizing higher-order derivatives (like "jerk"), leading to smoother and more robust predictions.

Experimental Evaluation

The model was evaluated on four simulated systems representing different physical regimes:

  • Simple Spring: A classic conservative, reversible system.
  • Forced Spring: A reversible system with external periodic forces (non-conservative).
  • Damped Spring: An irreversible system with friction.
  • Triple Pendulum: A highly chaotic system where small errors compound rapidly.
Figure 2: Comparison of system energy predictions across different physical regimes. TANGO maintains energy realism compared to standard GraphODEs (LG-ODE), which exhibit unrealistic energy drift. The right panels illustrate the hierarchy of dynamical properties and the concept of time-reversal symmetry.

Key Results

Energy Realism and Stability: As shown in Figure 2, standard models like LG-ODE often suffer from energy drift, predicting unrealistic increases in system energy over time. TANGO's predictions closely follow the ground-truth energy levels, even in non-conservative systems like the forced spring.

Performance on Chaotic Systems: In the triple pendulum task, TANGO achieved an 11.5% improvement in Mean Squared Error (MSE) over state-of-the-art baselines. Its ability to capture the underlying physics allows it to navigate the extreme sensitivity of chaotic dynamics more effectively than purely data-driven methods.

Data Efficiency: TANGO demonstrates significant robustness in data-scarce environments. When training data was reduced by 80%, TANGO’s performance remained stable, whereas vanilla GraphODEs saw their error rates skyrocket.

Conclusion

TANGO successfully bridges the gap between flexible data-driven modeling and rigid physical constraints. By utilizing time-reversal symmetry as a "Goldilocks" inductive bias—broader than energy conservation but more structured than pure data fitting—it achieves superior performance across diverse multi-agent systems. Future work aims to integrate spatial symmetries, such as rotation equivariance, to develop a more universal neural physical simulator.

Summary updated

BibTeX
@inproceedings{huang2023tango,
  author = {Zijie Huang and Wanjia Zhao and Jingdong Gao and Ziniu Hu and Xiao Luo and Yadi Cao and Yuanzhou Chen and Yizhou Sun and Wei Wang},
  title = {{TANGO: Time-Reversal Latent GraphODE for Multi-Agent Dynamical Systems}},
  booktitle = {DLDE @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=8AYetbupoZ},
}
Figure