Abstract
In many scientific and real-world imaging tasks, objects appear at arbitrary locations and rotations, yet their semantic identity remains invariant to these transformations. Standard Variational Autoencoders (VAEs) often struggle to disentangle an object's "essence" from its pose, leading to unstructured latent spaces. This paper introduces TARGET-VAE (Translation and Rotation Group Equivariant VAE), a novel framework that achieves state-of-the-art unsupervised disentanglement by incorporating geometric symmetries directly into the neural architecture. By utilizing group-equivariant layers in both the encoder and decoder, TARGET-VAE successfully separates semantic content from spatial transformations, enabling high-accuracy clustering and pose estimation in complex datasets, including cryo-electron microscopy.
Introduction
In domains such as satellite surveillance, astronomy, and cryo-electron microscopy (cryo-EM), the orientation and position of an object are often nuisance variables. While a rotation or translation changes the pixel values of an image, it does not change the identity of the object—an airplane remains an airplane regardless of its heading.
Traditional deep learning models typically map images to an unstructured latent space where a rotated version of an object appears fundamentally different to the network. Previous attempts to address this often focused solely on making the decoder (generator) aware of geometry, leaving the encoder to struggle with the difficult task of inferring pose from raw pixels. TARGET-VAE addresses this by being fully equivariant, meaning the internal mathematical operations of the network naturally account for rotation and translation in both the encoding and decoding phases.
Methodology
TARGET-VAE introduces three primary architectural innovations to ensure geometric consistency:
1. Group-Equivariant Encoder
Instead of standard convolutional layers, the model employs Group-CNNs (G-CNNs). These layers do not just slide filters across the image to account for translation; they also rotate the filters. This ensures that if the input image is rotated, the internal feature maps rotate accordingly, preserving the relationship between features and their orientations.
2. Structurally Disentangled Latent Space
The latent variables in TARGET-VAE are explicitly partitioned into three distinct components:
- $z$: The semantic content (the "what").
- $t$: The translation (the "where").
- $\theta$: The rotation (the "angle").
By separating these variables, the model can manipulate the pose of an object without altering its identity, and vice versa.
3. Spatially Equivariant Generator
The decoder is designed as a coordinate-based network. Rather than outputting a full grid of pixels simultaneously, it takes a specific coordinate $(x, y)$ and the latent semantic vector $z$ to predict a single pixel value. To rotate or translate the generated image, the model applies the inverse transformation to the input coordinates before they reach the network. This approach ensures that geometric transformations are mathematically perfect and not merely approximated.
Experimental Evaluation
The model was evaluated across a diverse range of synthetic benchmarks and high-stakes scientific datasets:
- MNIST(N) & MNIST(U): Modified MNIST digits with random translations and either small (Normal) or full $360^\circ$ (Uniform) rotations.
- dSprites: A standard benchmark for disentanglement featuring simple geometric shapes with varying scales and orientations.
- Galaxy Zoo: Real-world astronomical images of galaxies.
- Cryo-EM Datasets (EMPIAR-10025, 10029, 5HDB): Images of proteins, such as the T20S proteasome. These datasets are characterized by extreme noise and various 3D-to-2D projections.
Key Results
TARGET-VAE demonstrated significant improvements over existing baselines:
- Superior Clustering: On the MNIST(U) dataset, TARGET-VAE achieved a clustering accuracy of ~71%, vastly outperforming standard VAEs (~13%) and the previous state-of-the-art Spatial-VAE (~28%).
- Precise Pose Estimation: The model achieved remarkably high correlation with ground-truth rotation and translation values in an entirely unsupervised manner.
- Scientific Discovery in Cryo-EM: The model successfully separated different views of proteins and, crucially, captured continuous conformational changes (such as the "hinge" motion of a protein) within its semantic latent space. This allows researchers to visualize protein dynamics and "clean" noisy experimental data.
Discussion and Insights
Symmetry as a Prior
By utilizing G-CNNs, the authors treat rotation and translation as fundamental symmetries. The model does not need to "learn" that a rotated object is the same; the architecture makes it impossible for the model to interpret it otherwise. This inductive bias significantly improves sample efficiency and robustness.
Closing the Inference Loop
A key insight of this work is that an equivariant generator is insufficient on its own. Without an equivariant encoder, the model cannot reliably find the object's pose in an unsupervised setting. TARGET-VAE demonstrates that symmetry must be enforced on both sides of the VAE bottleneck to achieve true disentanglement.
Handling Geometric Ambiguity
The model naturally identifies rotational symmetries. For instance, it may predict a rotation for a digit '8' that is $180^\circ$ ($\pi$ radians) different from the ground truth. This is not a failure but a reflection of the fact that an '8' is visually identical when flipped, indicating the model has captured the true underlying geometry.
Limitations and Future Work
Despite its success, TARGET-VAE has areas for further development. The current implementation predicts translations at the whole-pixel level; moving to sub-pixel inference would enhance accuracy for high-resolution scientific imaging. Additionally, while the model can identify multiple objects, it struggles when those objects overlap significantly.
The most significant future direction is scaling the framework to 3D. While this work focuses on 2D transformations, extending the logic to 3D rotations (SO(3)) is essential for the full reconstruction of 3D protein structures from 2D cryo-EM projections. Finally, the computational cost of group convolutions remains higher than standard convolutions, presenting a trade-off between geometric precision and processing speed.
Summary updated