Discovering Fully Semantic Representations via Centroid- and Orientation-Aware Feature Learning
Abstract
In scientific imaging, objects often appear at arbitrary positions and orientations, complicating downstream analysis. We present the Centroid- and Orientation-aware Disentangling Autoencoder (CODAE), an unsupervised framework designed to separate an object's pose from its intrinsic semantic features. By integrating group-equivariant encoding with a novel loss function based on image moments, CODAE achieves state-of-the-art disentanglement performance. Notably, the model operates up to 10x faster than existing spatial disentanglement methods by applying transformations at the output stage rather than within the latent space.
Introduction
Scientific data, ranging from cryo-electron microscopy of proteins to astronomical surveys of galaxies, frequently contains objects with random translations and rotations. Traditional analysis requires manual or computationally intensive alignment. While standard Convolutional Neural Networks (CNNs) exhibit translation equivariance, they lack inherent rotation equivariance, often relying on expensive data augmentation that fails to truly disentangle pose from content. Existing disentanglement models often suffer from slow "grid sampling" in the latent space, leading to blurred reconstructions. CODAE addresses these challenges by providing a fast, unsupervised method for fully semantic representation learning.
Methodology
CODAE employs a two-pronged architecture to achieve efficient disentanglement:
- Equivariant Encoder: The network utilizes group-equivariant layers that apply filters at multiple rotations, allowing it to mathematically track an object's pose.
- Dual-Branch Latent Space: The encoded features are split into two distinct branches: $B_{equi}$, which captures the "where" and "how" (centroid and orientation), and $B_{inv}$, which captures the "what" (intrinsic semantic features like shape or color).
- Image Moment Loss: To guide the initial learning phase, the model incorporates "image moments"—a classical technique to estimate an object's center of mass and primary axis. This provides a strong inductive bias for unsupervised alignment.
- Efficient Spatial Transformation: Unlike models that manipulate latent grids, CODAE applies a spatial transformation to the final output of a standard decoder. This shift significantly reduces the computational bottleneck.
Experimental Evaluation
The model was rigorously tested on synthetic benchmarks (XYRCS, dSprites) and diverse real-world scientific datasets, including protein particles (EMPIAR-10029), graphene diffraction patterns, and the Galaxy-Zoo dataset.
CODAE consistently outperformed six major baselines, including Spatial-VAE and Target-VAE, across eight disentanglement metrics. Beyond accuracy, the model demonstrated a massive leap in efficiency, training 10x faster and performing inference 8x faster than the average of other state-of-the-art models. Qualitatively, CODAE was uniquely capable of producing sharp, high-quality aligned reconstructions for complex datasets like Galaxy-Zoo, even correctly handling images with multiple distinct objects.
Key Insights and Disentanglement
The primary innovation of CODAE is its ability to learn "fully semantic" representations. By isolating pose variables, researchers can manipulate specific latent dimensions—such as rotation—to observe the reconstructed object spin while its intrinsic shape remains unchanged. This unsupervised alignment capability is a significant breakthrough for processing massive scientific datasets where manual labeling is unfeasible.
Conclusion and Future Work
CODAE represents a significant advancement in unsupervised representation learning for scientific imaging. While highly effective, the current implementation is restricted to 2D transformations. Future work will explore extending the framework to 3D orientations and scale variations, which are critical for fields like cryo-EM. Additionally, addressing the model's tendency to smooth fine-grained light profiles in complex astronomical images and investigating its robustness to extreme noise will be key areas for further development.
Summary updated