Relaxing Continuous Constraints of Equivariant Graph Neural Networks for Physical Dynamics Learning

Zinan Zheng, Yang Liu, Jia Li, Jianhua Yao, Yu Rong

Abstract

Incorporating Euclidean symmetries (e.g. rotation equivariance) as inductive biases into graph neural networks has improved their generalization ability and data efficiency in unbounded physical dynamics modeling. However, in various scientific and engineering applications, the symmetries of dynamics are frequently discrete due to the boundary conditions. Thus, existing GNNs either overlook necessary symmetry, resulting in suboptimal representation ability, or impose excessive equivariance, which fails to generalize to unobserved symmetric dynamics. In this work, we propose a general Discrete Equivariant Graph Neural Network (DEGNN) that guarantees equivariance to a given discrete point group. Specifically, we show that such discrete equivariant message passing could be constructed by transforming geometric features into permutation-invariant embeddings. Through relaxing continuous equivariant constraints, DEGNN can employ more geometric feature combinations to approximate unobserved physical object interaction functions. Two implementation approaches of DEGNN are proposed based on ranking or pooling permutation-invariant functions. We apply DEGNN to various physical dynamics, ranging from particle, molecular, crowd to vehicle dynamics. In twenty scenarios, DEGNN significantly outperforms existing state-of-the-art approaches. Moreover, we show that DEGNN is data efficient, learning with less data, and can generalize across scenarios such as unobserved orientation.

Introduction

Physical dynamics modeling has seen significant advances through the integration of Euclidean symmetries into Graph Neural Networks (GNNs). By enforcing continuous equivariance (e.g., $E(3)$ or $SE(3)$), these models achieve high data efficiency in unbounded spaces. However, real-world applications often involve boundaries—such as highway lanes or container walls—that break continuous symmetry while preserving specific discrete symmetries.

Discrete symmetries in highway and molecular dynamics.

Existing approaches either ignore these symmetries entirely, leading to poor generalization, or impose excessive continuous equivariance, which fails to account for boundary-induced behavioral changes. For example, a car behaves differently when driving near a median versus an open road. This paper introduces the Discrete Equivariant Graph Neural Network (DEGNN), a framework designed to respect the "Goldilocks" level of symmetry: just enough to generalize, but flexible enough to model boundary effects.

Methodology: Discrete Equivariance

The core of DEGNN is the relaxation of continuous equivariant constraints to a specified discrete point group (sets of specific rotations and reflections that map a boundary onto itself). This is achieved through a novel message-passing mechanism that distinguishes between interactions that might appear identical under continuous rotation but are distinct relative to a fixed boundary.

Comparison of message passing in EGNN, DEGNN, and standard GNN.

The process involves three key steps:

  1. Feature Augmentation: Geometric features are transformed using every operation within a target discrete point group (e.g., generating four versions of an input for a 90-degree rotation symmetry).
  2. Permutation-Invariant Embedding: These augmented features are processed by a function $\phi$ that produces the same output regardless of the order of inputs, ensuring the resulting message is mathematically equivariant to the discrete group.
  3. Implementation: The authors propose two methods for this embedding: Ranking (sorting features by magnitude) and Pooling (using mean, sum, or self-attention). Self-attention was found to be the most stable and effective method.

Experimental Evaluation

DEGNN was evaluated across twenty diverse scenarios, including micro-scale particle systems (charged and gravitational) and macro-scale dynamics such as crowd flows and vehicle trajectories from the HighD dataset.

Key Results and Insights

  • State-of-the-Art Performance: DEGNN consistently outperformed models like EGNN, GMN, and EqMotion. In particle systems, it reduced Mean Square Error (MSE) by approximately 40-60% compared to the strongest baselines.
  • Data Efficiency: By leveraging environmental symmetries, the model can learn effectively from as little as 10% of the training data while still outperforming models trained on the full dataset.
  • Generalization to the Unobserved: A standout capability is the model's ability to generalize to unobserved orientations. For instance, a model trained only on one-way highway traffic can accurately predict traffic in the opposite direction by exploiting the 180-degree rotational symmetry of the road, a task where standard models like GNS fail.

Conclusion

By relaxing continuous constraints to discrete point groups, DEGNN provides a powerful inductive bias for modeling physical systems with boundaries. This approach allows for more expressive feature combinations while maintaining the benefits of symmetry-based generalization. Future research will focus on automated point group discovery and extending the framework to handle multi-step trajectories and multi-material physical interactions.

Summary updated

BibTeX
@inproceedings{zheng2024relaxing,
  author = {Zinan Zheng and Yang Liu and Jia Li and Jianhua Yao and Yu Rong},
  title = {{Relaxing Continuous Constraints of Equivariant Graph Neural Networks for Physical Dynamics Learning}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671957},
}
Figure