Abstract
Symmetry, or equivariance, is a fundamental inductive bias for machine learning in the physical sciences. While "hard-coded" equivariant architectures offer theoretical guarantees, they are often difficult to design and computationally restrictive. Frame Averaging (FA) provides a more flexible alternative but typically suffers from a trade-off between computational efficiency and equivariance precision. We introduce Minimal Frame Averaging (MFA), a framework that achieves exact equivariance by averaging over the smallest possible set of transformations. MFA extends the benefits of equivariance to a wide range of symmetries, including the Lorentz group, while maintaining high efficiency. Our results demonstrate that MFA-enhanced models achieve state-of-the-art performance in physics simulations and graph tasks with near-zero equivariance error.
Introduction
In domains like molecular dynamics and particle physics, the laws of nature are invariant under certain transformations—rotations, translations, or Lorentz boosts. Incorporating these symmetries into neural networks allows models to generalize better from limited data. However, building equivariant models from scratch is mathematically complex. Frame Averaging (FA) offers a simpler path: transform the input into multiple orientations (a "frame"), process them with a standard model, and average the outputs. Unfortunately, standard FA is often either too slow (if the frame is large) or only approximately equivariant (if the frame is sampled).
Minimal Frame Averaging (MFA) Methodology
The core contribution of this work is the concept of a minimal frame. By identifying the smallest set of group elements required to guarantee exact equivariance, MFA minimizes the number of forward passes needed.
Technical Foundations
MFA relies on finding a "canonical" orientation for data. For instance, a point cloud can be aligned to its principal axes. The authors formalize this using the stabilizer of an element—the set of transformations that leave the data unchanged. Key innovations include:
- Generalized QR Decomposition: To handle non-Euclidean groups like the Lorentz group $O(1, 3)$, the authors developed a generalized QR matrix decomposition to find canonical forms.
- Induced G-sets: For complex data where canonicalization is difficult, MFA maps the data to a simpler space where symmetry is easier to handle, then pulls the resulting frame back to the original domain.
As shown in the comparison between FAENet and MFAENet in the table above, MFA achieves an invariance error orders of magnitude lower ($8.809 \times 10^{-6}$) than sampling-based approaches, effectively reaching numerical precision limits while simultaneously increasing throughput.
Experimental Results
The authors evaluated MFA across several benchmarks, including n-body simulations, top quark tagging in collider physics, and graph isomorphism tests.
Efficiency and Accuracy in Physical Systems
In n-body simulations (predicting particle trajectories under $E(3)$ symmetry), MFA-GNN outperformed both specialized equivariant architectures and standard FA methods.
The results highlight that MFA-GNN is nearly twice as fast as FA-GNN while achieving a significantly lower MSE (0.0036 vs 0.0054). This efficiency stems from the "minimal" nature of the frame, which often requires only a single forward pass of the backbone model to achieve exact equivariance.
Beyond 3D Rotations
MFA successfully extends equivariance to the Lorentz group, critical for high-energy physics. On the Top Tagging task using ATLAS detector data, MFA-enhanced models matched or exceeded the performance of specialized Lorentz-equivariant architectures like LorentzNet. Additionally, MFA achieved 100% accuracy on the EXP graph dataset, proving it can distinguish complex graph structures that standard GNNs fail to separate.
Conclusion
Minimal Frame Averaging provides a powerful, efficient, and exact method for incorporating symmetry into machine learning models. By reducing the computational overhead of Frame Averaging to its theoretical minimum, MFA allows standard, expressive architectures to benefit from the inductive biases of complex symmetry groups like the Lorentz group. This framework paves the way for more efficient and accurate models in the physical sciences and beyond.
Code Availability: https://github.com/divelab/MFA
Summary updated