Factorised Neural Relational Inference for Multi-Interaction Systems

Ezra Webb, Ben Day, Helena Andrés-Terré, Pietro LióarXiv 2019

Introduction

Predicting the dynamics of complex physical systems—from molecular interactions to celestial mechanics—requires an understanding of the underlying forces between components. The Neural Relational Inference (NRI) model was developed to infer these interaction graphs directly from observational data. However, the original NRI architecture faces significant scalability challenges when dealing with multiple independent interaction types. This paper introduces Factorised NRI (fNRI), a model that utilizes a multiplex graph structure to represent interactions more efficiently and accurately.

The Scalability Problem in Relational Inference

The original NRI model represents the relationship between any two objects using a single categorical edge type. If a system involves $k$ independent types of interactions (e.g., gravity, electromagnetism, and spring forces), the original model requires $2^k$ distinct edge types to represent every possible combination. This exponential growth in complexity makes training difficult and prevents the model from learning shared features across interaction types. For instance, if the model correctly identifies a gravitational pull but misses a magnetic one, the entire prediction is treated as incorrect, providing no granular feedback to the learning process.

Methodology: Factorisation and Multiplex Graphs

To address these limitations, the authors propose two primary architectural improvements:

1. Factorised NRI (fNRI)

Instead of a single complex graph, fNRI employs a multiplex graph structure. The latent representation is split into $n$ layers, where each layer corresponds to a specific interaction type. This allows the model to be "partially correct"—it can accurately infer one type of interaction even if it fails on another. This factorization significantly reduces the number of parameters required in the decoder and improves information density, as each interaction-specific decoder learns from a larger effective dataset.

Comparison of the original NRI representation (left) versus the factorised fNRI multiplex representation (right).

2. The NRI Pipeline and Encoder Improvements

The general framework involves an encoder that takes particle trajectories and outputs edge type distributions, which are then sampled to form the interaction graph used by a decoder to predict future states.

The NRI encoder pipeline: converting raw particle trajectories into structured edge type distributions.

The authors also introduced Sigmoid Factorisation (sfNRI), a simplified version that replaces the probabilistic Variational Auto-Encoder (VAE) framework with a simple sigmoid function for edge detection. Additionally, a "Half-and-Half" training routine was implemented to prevent the encoder from "cheating" by encoding trajectory information directly into the graph structure; the encoder sees the first half of a trajectory, while the decoder is tasked with predicting the second half.

Experimental Evaluation

The models were tested on simulated 2D systems with 5 particles interacting via combinations of:

  • Ideal Springs (I-Springs): Purely attractive forces.
  • Finite Springs (F-Springs): Forces that vary between attractive and repulsive.
  • Charges: Repulsive forces following Coulomb’s Law.

Key Results

  • Inference Accuracy: In systems with two interaction types (I-Springs + Charges), fNRI achieved 94.0% accuracy in recovering the ground-truth graph, outperforming the original NRI's 89.1%.
  • Prediction Performance: Factorised models showed superior trajectory prediction. In a complex three-interaction system, sfNRI achieved a Mean Squared Error (MSE) of 19.3 at 20 steps, compared to 29.1 for the original NRI.
  • Efficiency: The fNRI decoder used approximately 20% fewer parameters than the original NRI in the three-interaction setup, demonstrating that factorization leads to more compact and efficient models.

Conclusion and Future Directions

Factorising the latent space of relational inference models provides a more physically intuitive and scalable approach to modeling multi-interaction systems. While currently limited to static graphs and synthetic data, fNRI paves the way for more robust modeling of real-world dynamical systems where multiple forces act simultaneously. Future research will focus on dynamic graphs where interactions evolve over time and scaling the architecture to handle hundreds of interacting bodies.

Summary updated

BibTeX
@misc{webb2019factorised,
  author = {Ezra Webb and Ben Day and Helena Andrés-Terré and Pietro Lió},
  title = {{Factorised Neural Relational Inference for Multi-Interaction Systems}},
  year = {2019},
  eprint = {1905.08721},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.08721},
}
Figure