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

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

TL;DR

Standard equivariant graph neural networks (GNNs) often fail in real-world physical simulations because they assume "perfect" continuous symmetry (like rotating an object in empty space), ignoring the restrictive boundaries of the real world. This paper introduces DEGNN (Discrete Equivariant Graph Neural Network), a framework that relaxes these constraints to respect only the specific discrete symmetries—like the 180-degree flip of a highway or the rectangular walls of a lab—improving both accuracy and generalization in complex environments.

What Problem Does This Paper Address?

In physics, "symmetry" means that a system's laws stay the same even if you move or rotate it. Many recent GNNs use continuous equivariance (e.g., $E(3)$ or $SE(3)$) as an inductive bias, meaning the model's predictions rotate perfectly with the input.

However, most interesting physics happens in boxes, on roads, or within specific boundaries. A car driving north on a highway behaves differently than one driving east across the median; the continuous symmetry is "broken" by the lanes. Existing models either ignore symmetry entirely (leading to poor generalization) or impose too much of it (preventing the model from learning how boundaries affect behavior). The authors tackle this "Goldilocks" problem: how do we build a model that is "just symmetric enough" for bounded physical systems?

Methods

The authors propose DEGNN, which shifts the focus from continuous groups to discrete point groups (sets of specific rotations and reflections that map a boundary onto itself).

The core innovation lies in the message-passing layer:

  1. Feature Augmentation: Instead of using raw geometric features, the model transforms them using every operation in a given discrete point group (e.g., if the symmetry is a 90-degree rotation, it generates four versions of the input).
  2. Permutation-Invariant Embedding: These transformed features are fed into a function $\phi$ that produces the same output regardless of the order of the inputs. This ensures that the resulting "message" is mathematically equivariant to the discrete group.
  3. Two Implementations:
    • Ranking: Sorting the transformed features by magnitude before processing them with a standard Multi-Layer Perceptron (MLP).
  4. Pooling: Using Mean, Sum, or Self-Attention to aggregate the transformed features. The authors found that self-attention was the most stable and effective method.

Datasets

The researchers evaluated DEGNN across twenty different scenarios spanning micro and macro scales:

  • Micro-level: Simulated 5-body systems (Charged and Gravitational) inside various box shapes (cubes, square prisms, and rectangular prisms). They also used real molecular dynamics datasets: LiPS (83 atoms) and $Li_4P_2O_7$ (208 atoms).
  • Macro-level: Crowd dynamics (pedestrians in imbalanced flows) and the HighD dataset, which contains naturalistic vehicle trajectories from six different German highway scenarios.

Key Insights and Ideas

  • The "Relaxation" Advantage: By relaxing continuous constraints, DEGNN can use more expressive feature combinations. It can distinguish between interactions that look identical under continuous rotation but are distinct relative to a fixed boundary (like a wall).
  • Symmetry as Data Efficiency: Because the model "knows" the discrete symmetry of the environment, it doesn't need to see examples of every orientation during training. It can learn from 10% of the data and still outperform models trained on the full set.
  • Generalization to the "Unobserved": A standout insight is the model's ability to generalize to opposite directions. If trained only on cars moving left-to-right, DEGNN can accurately predict cars moving right-to-left because it understands the 180-degree rotational symmetry of the highway, whereas standard models (like GNS) fail completely.

Key Results

  • State-of-the-Art Performance: DEGNN significantly outperformed SOTA models like EGNN, GMN, and EqMotion across all 20 scenarios.
  • Error Reduction: In particle systems, DEGNN reduced Mean Square Error (MSE) by roughly 40-60% compared to the strongest baselines.
  • Robustness: The model showed much lower variance (standard deviation) across runs, suggesting that the discrete symmetry constraint makes the learning process more stable.
  • Long-term Prediction: In vehicle dynamics, DEGNN maintained a low error even when predicting 8 seconds into the future, while other models' errors escalated rapidly.

Limitations and Future Work

The primary limitation is that DEGNN requires the user to specify the point group (the type of symmetry) of the environment beforehand. While these are often obvious in engineering (e.g., a rectangular room or a straight road), they might be harder to define for irregular boundaries.

The authors suggest three main paths for future research:

  1. Developing methods to automatically learn the appropriate point group or ranking function.
  2. Extending the framework to handle multi-step trajectories more effectively.
  3. Exploring how to solve multiple different physical dynamics (e.g., liquid and solid interactions) within a single joint model.

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 Broad Physical Dynamics Learning}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671957},
}
Figure