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 separated in an invariant term and an equivariant group action component. The key idea is that the network learns to encode and decode data to and from a group-invariant representation by additionally learning to predict the appropriate group action to align input and output pose to solve the reconstruction task. 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, a fundamental goal is to develop models that are robust to transformations that do not change the underlying identity of an object. For instance, a cat remains a cat regardless of its orientation or position in an image. While equivariant neural networks have successfully incorporated these symmetries into supervised learning, achieving this in an unsupervised manner remains a significant challenge.
Standard autoencoders (AEs) often struggle with this task. If the latent bottleneck is forced to be invariant to transformations like rotation, the decoder loses the necessary information to reconstruct the object in its original pose, leading to poor reconstruction quality. Conversely, if the bottleneck is not invariant, the object's identity becomes entangled with its orientation, reducing the utility of the representation for downstream tasks like classification. This paper introduces a novel unsupervised framework that explicitly separates representations into an invariant part (the "identity") and an equivariant part (the "pose").
Methodology: Disentangling Identity and Pose
The core of the proposed approach is a modified encoder-decoder framework. Instead of mapping an input $x$ to a single latent vector, the model splits the representation into two distinct components:
- The Invariant Term ($z$): Encoded by a $G$-invariant function $\eta$, this represents the "canonical" version of the data, stripped of its orientation or position.
- The Group Action ($g$): Predicted by a group function $\psi$, this captures the specific transformation (e.g., rotation angle, translation vector) required to align the canonical version with the original input.
The "Aha!" mechanism of this architecture lies in the reconstruction process. The decoder $\delta$ takes the invariant code $z$ and produces a canonical element $\hat{x}$. To successfully reconstruct the original input $x$, the model must apply the predicted group action $g$ to this canonical element. This forcing function ensures that the model learns a consistent canonical pose across the dataset, as it is the most efficient way to minimize reconstruction error.
The authors provide a general mathematical construction for $\psi$ applicable to any group $G$, including discrete groups like permutations ($S_n$) and continuous groups like 3D rotations (SO(3)) and translations ($T_n$).
Experimental Results
The framework was evaluated on diverse datasets, including Rotated MNIST, 3D point clouds (Tetris shapes, ShapeNet), and molecular datasets (QM9, GEOM-QM9).
Visualizing the Canonical Representation
A key insight is that the model learns to "standardize" the input. As shown in the reconstruction results, regardless of the input's orientation, the decoder first generates a canonical version (the "Output" row) before the predicted rotation is applied to match the input.
Performance and Transfer Learning
The separation of identity and pose leads to several advantages:
- Latent Organization: t-SNE visualizations demonstrate that invariant representations form tighter, cleaner clusters based on object identity compared to classical AEs, which often cluster by both identity and orientation.
- Downstream Accuracy: On ShapeNet, a simple KNN classifier using the invariant representations achieved 81% accuracy, significantly outperforming a non-invariant AE (63%).
- Scientific Applications: The model's ability to handle SE(3) invariance is crucial for molecular data, where distinguishing chiral shapes (left- vs. right-handed) is vital. In transfer learning tasks on the QM9 dataset, the pre-trained model achieved an $R^2$ of 0.75 in low-data regimes, whereas training from scratch failed to produce meaningful results ($R^2 = 0.09$).
Conclusion and Future Directions
This work provides a robust mathematical foundation for unsupervised group-invariant and equivariant learning. By removing "nuisance" variables like orientation from the latent space, the model achieves high-quality reconstructions with smaller bottlenecks and more useful representations for downstream tasks.
While the model performs well, some limitations remain, such as discretization artifacts on grid-based data like MNIST and challenges in reconstructing rare elements in molecular datasets. Future work may involve extending this to a probabilistic or generative framework, such as a Variational Autoencoder (VAE), to better handle uncertainty in group action prediction, which is particularly relevant for tasks like protein-ligand docking.
Summary updated