Abstract
Modeling complex dynamical systems requires capturing the underlying interactions between agents. While Neural Relational Inference (NRI) introduced a framework to infer these relations, it suffered from assumptions of relation independence and Markovian dynamics. We present NRI-MPM, which introduces a Relation Interaction Mechanism (RIM) for efficient edge-to-edge message passing and a Spatio-Temporal Message Passing (STMP) decoder to incorporate historical states. Our model achieves state-of-the-art performance in recovering physical laws and predicting long-term trajectories across various physical simulations.
Introduction
Many real-world systems—from swarms of drones to social networks and physical particles—can be viewed as groups of interacting agents. Often, we can observe the "what" (the positions or states of these agents over time) but not the "why" (the underlying forces or relations connecting them).
The original Neural Relational Inference (NRI) model was a major step forward, using a Variational Auto-Encoder (VAE) to simultaneously infer these hidden relations and learn the system's dynamics. However, it had three critical blind spots:
- Independent Relations: It assumed the relationship between Agent A and B was independent of the relationship between B and C, ignoring the global "coexistence" of all relations.
- Short-Term Memory: Its decoder only looked at the current state to predict the next one, leading to massive "error accumulation" (drift) during long-term predictions.
- Lack of Prior Knowledge: It struggled with complex systems because it didn't leverage basic structural common sense, such as the fact that many physical interactions are symmetric.
Methodology
The authors introduce NRI-MPM, which enhances the standard VAE framework with three novel components designed to address the limitations of previous models.
Relation Interaction Mechanism (RIM)
Instead of just passing messages from nodes to edges, this mechanism introduces edge-to-edge message passing. To keep this computationally efficient, they decompose it into intra-edge interactions (edges sharing a target node) and inter-edge interactions (global context). This allows the model to understand how different relations influence each other without the $O(E^2)$ complexity of a fully connected edge graph, maintaining a practical $O(N^2)$ complexity.
Spatio-Temporal Message Passing (STMP)
The decoder is upgraded with sequence models (like GRUs). Instead of a simple snapshot-to-snapshot prediction, the message-passing steps now incorporate historical hidden states, allowing the model to "remember" the trajectory's momentum and significantly reduce prediction drift over long horizons.
Structural Prior Knowledge
The authors incorporate a soft symmetry constraint. Instead of forcing symmetry (which can hinder early training), they add a regularization term to the loss function that penalizes the model if its predicted relation for $(i, j)$ differs significantly from $(j, i)$.
Experiments and Results
The model was evaluated on three classic simulated physical systems: Springs (particles connected by invisible springs), Charged (particles with positive or negative charges), and Kuramoto (a system of phase-coupled oscillators). Each system was tested in both 5-object and 10-object configurations.
Key Results
- Superior Accuracy: In the "Charged" particle dataset, NRI-MPM achieved 81.6% accuracy in relation reconstruction for 10-object systems, significantly outperforming the original NRI (~70.8%) and other baselines like SUGAR.
- Reduced Drift: For the "Springs" dataset, NRI-MPM's mean squared error (MSE) for 20-step future predictions was nearly an order of magnitude lower than the original NRI ($2.52 \times 10^{-6}$ vs $2.13 \times 10^{-5}$).
- Robustness: Qualitative analysis showed that while simpler models like LSTMs can capture the general shape of a waveform, only NRI-MPM could maintain accurate phase and amplitude over long durations in the Kuramoto oscillator tests.
Discussion and Conclusion
A central insight of this work is that relations are not islands. In a system of charged particles, knowing that particle A repels B and C provides strong clues about the relationship between B and C. By explicitly modeling these dependencies in the encoder via RIM, NRI-MPM recovers the true graph of the system much more reliably. Furthermore, embedding sequence models directly into the message-passing operations allows the model to learn to filter out noise and maintain a more stable trajectory.
While highly effective, the authors suggest that more advanced architectures, like Transformers, could further improve performance. Additionally, extending these efficient message-passing mechanisms to dynamic graphs and heterogeneous systems remains a promising frontier.
Summary updated