Learning Group Actions on Latent Representations

Yinzhu Jin, Aman Shrivastava, Tom FletcherNeurIPS 2024

Researchers from the University of Virginia have developed a novel autoencoder framework that models geometric transformations—known mathematically as group actions—in the latent space rather than directly on image pixels. This approach allows neural networks to handle complex real-world scenarios, such as an object rotating behind an obstacle, where traditional "equivariant" models typically fail.

The Problem with Data-Space Transformations

In deep learning, we often want our models to be "equivariant." This means if we apply a transformation to an input image (like rotating or translating it), the model’s internal representation or output should change in a predictable, corresponding way.

Most existing methods assume these transformations happen directly on the data space (the raw pixels). This works perfectly for a simple, isolated object, like a rotating digit on a black background. However, it breaks down in real-world environments that feature occlusion or static backgrounds.

Consider a digit rotating behind a fixed white block. As the digit moves, its pixels disappear and reappear. Because the block itself does not move, the transformation is no longer a simple, uniform group action on the entire 2D image. The authors argue that the "action" is actually happening to the underlying latent factors (the object's 3D orientation) rather than the final 2D projection we observe.

Standard rotation versus rotation with occlusion

Proposed Method: Latent Space Group Actions

To address this limitation, the authors propose a latent space group action model built on an autoencoder architecture. Their approach breaks down into several key components:

  1. Latent Splitting: The encoder maps an input image into a latent representation, $z$. Crucially, this representation is split into two distinct parts: $z_v$ (varying factors, such as the object's orientation) and $z_i$ (invariant factors, such as the object's identity or a static background).
  2. Action in the Latent Space: Instead of attempting to rotate the entire image, the model applies the group action (e.g., a rotation matrix) directly and exclusively to the $z_v$ component.
  3. U-Net Inspired Architecture: To prevent the loss of fine-grained spatial details during the encoding process, the framework utilizes a U-Net-style architecture featuring skip connections and attention modules. This allows the model to "mix" global transformation information while preserving sharp edges and textures.
Proposed autoencoder architecture with latent space group actions

Furthermore, the paper mathematically proves that their latent-space approach is a "superset" of data-space methods. If a decoder is consistent (mapping latent orbits to data orbits), any action on the data can be accurately represented as an action on the latent space.

Key Insights and Experimental Results

The model was evaluated on five diverse datasets designed to test different types of group actions, including Rotated MNIST, Rotated and Blocked MNIST (testing occlusion), Brain MRI (testing localized contrast transformations), Neural 3D Mesh Renderer (NMR), and Plane in the Sky (3D objects against static backgrounds).

Disentanglement and Occlusion Handling

By forcing the group action to only affect $z_v$, the model naturally learns to separate "what the object is" from "how the object is oriented"—achieving disentanglement by design. This leads to a breakthrough in handling occlusion. By modeling the action in the latent space, the model learns that the digit still exists even when hidden behind a block. When the latent representation is "rotated" and passed to the decoder, the decoder successfully renders the digit reappearing on the other side.

Architecture Agnosticism

Unlike many equivariant networks that require specialized, mathematically complex layers (like Steerable CNNs), this method works with standard convolutional layers. The intelligence lies in how the latent space is structured, rather than relying on highly specific layer mathematics.

Quantitative Superiority

The proposed model consistently outperformed state-of-the-art baselines in both image quality and accuracy:

  • Image Quality: On the Rotated MNIST dataset, the model achieved a Peak Signal-to-Noise Ratio (PSNR) of 26.07, significantly higher than the 21.97 achieved by the next best baseline.
  • Structural Similarity: It achieved a perfect 1.000 Structural Similarity Index (SSIM) across several datasets, indicating near-perfect reconstruction of the transformed images.
  • Parameter Efficiency: Despite its high performance, the model is remarkably efficient. For the Brain MRI dataset, it required only 0.41M parameters, compared to a baseline model's 9.33M.

Limitations and Future Work

The primary limitation of this approach is its reliance on ground truth group annotations during training. The model must be explicitly told the magnitude of the transformation (e.g., exactly how many degrees a sample was rotated) to learn the mapping effectively.

Future work aims to transition this framework toward unsupervised or semi-supervised learning. In such a setup, the model could potentially discover the underlying group actions and symmetries within a dataset autonomously, without the need for human-provided labels.

Summary updated

BibTeX
@inproceedings{jin2024learning,
  author = {Yinzhu Jin and Aman Shrivastava and Tom Fletcher},
  title = {{Learning Group Actions on Latent Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=HGNTcy4eEp},
}
Figure