Abstract
Equivariant neural networks, whose hidden features transform according to representations of a group G acting on the data, exhibit training efficiency and an improved generalisation performance. In this work, we extend group invariant and equivariant representation learning to the field of unsupervised deep learning. We propose a general learning strategy based on an encoder-decoder framework in which the latent representation is disentangled in an invariant term and an equivariant group action component. The key idea is that the network learns the group action on the data space and thus is able to solve the reconstruction task from an invariant data representation, hence avoiding the necessity of ad-hoc group-specific implementations. We derive the necessary conditions on the equivariant encoder, and we present a construction valid for any G, both discrete and continuous. We describe explicitly our construction for rotations, translations and permutations. We test the validity and the robustness of our approach in a variety of experiments with diverse data types employing different network architectures.
Introduction
In deep learning, symmetries like rotation or translation are fundamental challenges. Standard approaches often rely on data augmentation—showing the model many transformed versions of the same object—which is computationally expensive, or on specific architectural constraints that can be overly restrictive. Furthermore, most existing methods for learning "invariant" representations require supervised labels.
In an unsupervised setting, such as a standard autoencoder, the model struggles because the reconstruction task inherently depends on the object's orientation. If the bottleneck layer is perfectly invariant, the decoder lacks the information to "re-orient" the object to match the input. This work presents a novel unsupervised autoencoder framework that disentangles data into two distinct parts: a group-invariant representation (the "what") and an equivariant group action (the "how it's oriented").
Methodology
The proposed framework consists of three main components designed to explicitly split the latent space into an invariant "content" code and an equivariant "pose" code:
- Invariant Encoder ($\eta$): Maps the input $x$ to a latent code $z$ that remains constant regardless of the input's orientation or permutation.
- Equivariant Encoder ($\psi$): Predicts the specific group action $g$ (e.g., a rotation matrix or a permutation) that describes the input's current pose.
- Decoder ($\delta$): Takes the invariant code $z$ and reconstructs a "canonical" version of the object, $\hat{x}$.
The final reconstruction is achieved by applying the predicted group action $g$ to the canonical reconstruction $\hat{x}$. Because the loss is calculated between this re-oriented output and the original input, the model is forced to learn an accurate alignment mechanism. This construction is mathematically rigorous and valid for any group $G$, whether discrete (like permutations) or continuous (like 3D rotations).
Experiments and Results
The framework was validated across diverse data types, including Rotated MNIST, sets of digits (permutations), Tetris shapes (SE(3) invariance), QM9 molecular conformations, and ShapeNet 3D voxels.
Key Insights
- Canonicalization as a Learning Signal: The model learns to "standardize" data. For example, when trained on rotated digits, the model automatically chooses a specific orientation as its "canonical" pose for the decoder.
- Separation by Construction: By making the latent space separated by design, the invariant features $z$ are significantly cleaner. In a standard autoencoder, $z$ must store both shape and orientation, leading to "tangled" representations.
- Efficiency: For set-based data, the model achieves perfect reconstruction with much smaller latent dimensions because it doesn't waste capacity storing the arbitrary order of elements.
Performance
The model successfully aligns diverse inputs to a single canonical pose. Regardless of the input's rotation, the canonical reconstruction remains consistent.
Quantitatively, the model achieved a high-fidelity reconstruction RMSE of $0.15 \pm 0.07$ Å on the QM9 molecular dataset. Furthermore, using these invariant features for ShapeNet classification resulted in an accuracy of 0.81, significantly outperforming a standard non-invariant autoencoder which achieved only 0.63.
Conclusion
This framework provides a general recipe for unsupervised learning of invariant and equivariant representations across any group action. While currently deterministic, future work aims to extend this to probabilistic frameworks (like VAEs) to better handle data frequency distributions and to address local deformations within objects. Such advancements could be critical for complex real-world applications like protein-ligand binding site prediction.
Summary updated