Roto-translated Local Coordinate Frames For Interacting Dynamical Systems

Miltiadis Kofinas, Naveen Shankar Nagaraja, Efstratios Gavves

Abstract

Modeling interacting dynamical systems often relies on global coordinate systems, which fail to exploit the inherent symmetries of physical laws. We present LoCS (Local Coordinate frameS), a framework that induces roto-translation invariance in graph neural networks by providing each object with its own local coordinate frame. By canonicalizing the perspective of each node based on its position and orientation (or velocity proxy), the model focuses on relative interactions. This approach enables the use of anisotropic filters and improves generalization. Our evaluation across synthetic and real-world datasets demonstrates that LoCS consistently achieves state-of-the-art performance in trajectory forecasting and relation prediction.

Introduction

When modeling interacting objects—such as vehicles in traffic or particles in a simulation—standard representations typically use a global coordinate system. However, physical dynamics are generally Galilean invariant; the underlying laws remain unchanged regardless of the origin's location or the scene's rotation. Standard models like Neural Relational Inference (NRI) often ignore these symmetries, forcing the network to learn redundant patterns (e.g., a car turning at different coordinates). LoCS addresses this inefficiency by baking roto-translation invariance directly into the graph architecture, allowing the model to focus on the relative physics of interactions.

Methodology

The LoCS framework operates through three primary steps to ensure invariant representation and equivariant prediction:

  1. Canonicalization via Local Frames: For every node in the graph, a unique local coordinate system is established. The origin is translated to the object’s current position, and axes are rotated to align with its orientation (yaw, pitch, and roll).
  2. Handling Unknown Orientations: For objects without explicit orientation data (e.g., point-mass particles), the velocity vector serves as a proxy for the "forward" direction to define the local frame.
  3. Anisotropic Filtering: In these local frames, directions like "forward" or "behind" become semantically consistent across all nodes. This allows the Graph Neural Network (GNN) to employ anisotropic filters, learning that neighbors in different relative positions influence behavior uniquely.
  4. Speed Normalization: To preserve geometric relationships, positions and velocities are scaled by the maximum speed in the training set rather than using standard min-max scaling.
The process of canonicalizing local coordinate frames for different nodes in a system.

To maintain equivariance, the model performs an inverse rotation on the final predictions, transforming them back into the global frame for output.

Experiments and Results

LoCS was evaluated on four diverse systems: synthetic 2D physics, 3D charged particles, the inD traffic dataset, and CMU Motion Capture data. The results show significant improvements over baselines such as NRI, dNRI, and Equivariant Graph Neural Networks (EGNN).

On synthetic 2D data, LoCS achieved a Total MSE of 0.001, drastically lower than dNRI (0.158) and EGNN (0.272). Furthermore, the model's ability to infer underlying interaction graphs improved, reaching an F1 score of 88.9% compared to dNRI's 60.8%.

Quantitative performance metrics on synthetic data and qualitative trajectory visualizations for various datasets.

In real-world traffic scenarios (inD), LoCS maintained superior accuracy over long-term horizons. Ablation studies confirmed that both translation and rotation components of the local frames are essential for peak performance; removing the rotation component led to a noticeable drop in accuracy.

Conclusion

LoCS demonstrates the power of "object-centric" perspectives in modeling dynamical systems. By leveraging local frames and velocity proxies, it simplifies the learning task and enhances spatial reasoning through anisotropy. While the method requires objects to have well-defined spatial coordinates, its success in traffic and physics simulations marks a significant step forward for geometric deep learning in dynamics. Future work may address limitations such as the roll-angle ambiguity in 3D velocity proxies and potential singularities in Euler angle representations.

Summary updated

BibTeX
@inproceedings{kofinas2021roto,
  author = {Miltiadis Kofinas and Naveen Shankar Nagaraja and Efstratios Gavves},
  title = {{Roto-translated Local Coordinate Frames For Interacting Dynamical Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=c3RKZas9am},
}
Figure