Affine Equivariant Autoencoder

Xifeng Guo, En Zhu, Xinwang Liu, Jianping Yin

Abstract

The Affine Equivariant Autoencoder (AEAE) is an unsupervised framework designed to learn features that actively track image transformations rather than merely ignoring them. By designating specific latent space neurons to represent affine parameters, the model achieves state-of-the-art clustering performance and learns highly organized, interpretable representations of visual data.

Introduction

In computer vision, deep learning models are typically designed for invariance—the ability to recognize an object regardless of its orientation or scale. While effective for classification, this approach discards "pose" information, which describes how an object is oriented in space. In contrast, equivariance ensures that if an input transforms, its feature representation changes in a predictable, corresponding way. Previous attempts at learning equivariant features, such as Capsule Networks, often faced training instability or required complex supervision. The AEAE addresses these challenges by learning equivariant features in a purely unsupervised manner.

Methodology

The AEAE utilizes a specialized objective function for a fully connected autoencoder, focusing on three simultaneous data flows to ensure both reconstruction and equivariance.

The AEAE training framework involves three data flows: self-reconstruction of clean images, self-reconstruction of transformed images, and an equivariant approximation path.

The model is trained on:

  1. Self-Reconstruction (Clean): Reconstructing image $x$ from its encoding $f(x)$.
  2. Self-Reconstruction (Transformed): Reconstructing an affine-transformed version $T_\sigma(x)$ from its own encoding.
  3. Equivariant Approximation: Reconstructing $T_\sigma(x)$ by taking the encoding of the original image $f(x)$ and manually adding the transformation parameters $\sigma$.

The architecture consists of an 8-layer fully connected network. The authors avoid Convolutional Neural Networks (CNNs) to prevent built-in invariance mechanisms (like max-pooling) from interfering with the goal of equivariance. The 15-dimensional latent space is split: 10 dimensions for "content" and 5 dimensions explicitly mapped to affine parameters (rotation, horizontal/vertical translation, scaling, and shear).

Experimental Setup

The model was evaluated on four standard benchmarks:

  • MNIST (Full and Test): Handwritten digits.
  • USPS: Grayscale digit images (16x16).
  • Fashion-MNIST: Complex clothing items.

Results and Discussion

The AEAE demonstrated significant improvements in both quantitative clustering and qualitative feature interpretability.

Qualitative results showing the model's ability to disentangle content from pose across MNIST and Fashion-MNIST datasets.

Key Findings:

  • State-of-the-Art Clustering: Paired with Spectral Clustering, AEAE achieved 97.1% accuracy on MNIST and 97.8% on USPS, outperforming dedicated algorithms like DEC and DEPICT.
  • Feature Interpretability: By manually manipulating the 5 affine-mapped neurons, the decoder generates predictably transformed versions of the input, proving successful disentanglement of pose from content.
  • Improved Core Features: Even using only "content" neurons for classification, AEAE outperformed standard autoencoders, suggesting that equivariant training forces the model to learn richer, more robust object representations.

Conclusion and Future Work

While the AEAE shows promise, its reliance on fully connected layers limits scalability to high-resolution natural images. Furthermore, it currently only handles affine transformations. Future research may explore extending this unsupervised approach to non-rigid transformations and 3D perspective changes in the latent space.

Summary updated

BibTeX
@inproceedings{guo2019affine,
  author = {Xifeng Guo and En Zhu and Xinwang Liu and Jianping Yin},
  title = {{Affine Equivariant Autoencoder}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/335},
}
Figure