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.
The TANGO architecture operates in three stages:
- Encoder: Maps observed trajectories into a compressed latent representation using spatial-temporal GNNs and self-attention.
- Processor (GNN-based ODE): Evolves the latent states over time using a Graph Neural Network to model agent interactions within an ODE solver.
- 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.
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