Introduction
Equivariance has become a cornerstone of modern deep learning, providing the inductive bias necessary for models to generalize across transformations. While Convolutional Neural Networks (CNNs) and Graph Neural Networks (GNNs) have successfully leveraged translation and permutation symmetries, extending these benefits to arbitrary matrix groups has traditionally required bespoke mathematical derivations. This paper introduces a universal algorithm to build Equivariant Multilayer Perceptrons (EMLPs) for any arbitrary matrix symmetry group, effectively automating the construction of symmetry-aware architectures.
The Challenge of Equivariance
In machine learning, a layer is equivariant if transforming the input leads to a predictable transformation of the output. This property is crucial for tasks in physics, chemistry, and computer vision where the underlying laws or structures are invariant under rotations, reflections, or other transformations. However, building networks for new continuous symmetries, such as Lorentz transformations or 3D rotations, often requires specialized knowledge of group theory and manual derivation of complex coefficients (e.g., Clebsch-Gordan coefficients). Prior to this work, no general-purpose pipeline existed to automatically generate equivariant layers from a simple group definition.
Methodology: The EMLP Framework
The authors propose a generalized pipeline that reduces the problem of finding equivariant layers to a system of linear constraints.
The framework consists of three primary components:
- Constraint Reduction via Generators: Instead of solving for an infinite number of transformations in a continuous group, the authors demonstrate that satisfying constraints for the group's generators—a finite set of discrete transformations and infinitesimal continuous "nudges" (the Lie algebra)—is sufficient.
- Fast Krylov Nullspace Solver: Finding valid weights involves identifying the nullspace of a large constraint matrix. To handle the scale of modern neural networks, the authors employ an iterative Krylov-based method. This approach relies on matrix-vector multiplications, avoiding the memory bottlenecks of standard methods like Singular Value Decomposition (SVD).
- The Bilinear Layer: Standard equivariant nonlinearities can fail to connect features of different parities (e.g., even and odd). To ensure universal expressivity, the authors introduce a bilinear layer that performs tensor contractions, allowing the model to approximate functions like vector norms that are otherwise unreachable.
Experimental Evaluation and Results
The EMLP was evaluated against several physics-inspired tasks, including O(5) invariant regression, O(3) equivariant moment of inertia prediction, and Lorentz equivariant particle scattering. In these domains, the EMLP consistently outperformed standard MLPs and augmented models, demonstrating superior data efficiency.
A notable success was observed in modeling a double spring pendulum. By strictly enforcing O(2) rotational symmetry, the EMLP-based Hamiltonian Neural Network (HNN) achieved significantly lower rollout errors (0.012 vs. 0.028 for a standard MLP) and perfectly conserved angular momentum. Furthermore, the scalability of the Krylov solver was demonstrated by computing bases for the Rubik's cube group—a discrete group with over $4 \times 10^{19}$ elements—in just seconds.
Theoretical Insights
A key contribution of this work is the unifying perspective it offers. Famous architectures like standard CNNs, Deep Sets, and invariant graph networks emerge as special cases of the EMLP framework when specific groups (translation or permutation) are applied. Additionally, the discovery that standard gated nonlinearities can break universality for certain groups highlights the importance of the bilinear layer in maintaining theoretical completeness.
Conclusion and Future Work
The EMLP framework provides a powerful tool for researchers to incorporate prior knowledge of symmetries into neural networks without manual mathematical overhead. While the current implementation relies on dense matrix operations—making it slower than highly optimized specialized kernels—it opens the door for automated symmetry discovery and modeling in diverse fields. Future work will likely focus on developing sparse, optimized implementations to bridge the performance gap with specialized architectures.
Summary updated