AETv2: AutoEncoding Transformations for Self-Supervised Representation Learning by Minimizing Geodesic Distances in Lie Groups

Feng Lin, Haohang Xu, Houqiang Li, Hongkai Xiong, Guo-Jun QiarXiv 2019

Abstract

AETv2 improves self-supervised representation learning by measuring the "distance" between image transformations along their natural curved manifolds (Lie groups) rather than in flat Euclidean space. By minimizing geodesic distances instead of standard mean-squared error, the model learns more robust visual features that better capture the intrinsic geometry of the data.

Introduction: The Geometry of Transformations

In self-supervised learning (SSL), a popular strategy is to apply a random transformation (like rotation or scaling) to an image and task a neural network with predicting that transformation. The "AutoEncoding Transformations" (AET) framework does this by comparing a predicted transformation matrix to the actual one used.

The problem, the authors argue, is that previous versions of AET used Euclidean distance (Mean Squared Error) to measure the error between the predicted and ground-truth transformations. However, transformation matrices (like those for rotations or homographies) do not live in a "flat" space; they form Lie groups, which are curved manifolds. Measuring the distance between two rotations using MSE is like measuring the distance between two cities by drilling a straight hole through the Earth's core—it ignores the intrinsic geometry of the surface. AETv2 seeks to fix this by measuring distance along the "curve" of the manifold (the geodesic).

Methodology: Geodesic Distance and Subgroup Projection

The core innovation is the transition from Euclidean loss to Geodesic Distance (GDT). The authors treat transformations as elements of a Lie group, where the shortest path between two points is the geodesic.

While the theory is sound, calculating the Riemannian logarithm (necessary for geodesic distance) for complex groups like the homography group $PG(2)$ is computationally "intractable." To solve this, the authors project the homography transformations onto a simpler subgroup: the rotation group $SO(3)$. Unlike the broader homography group, $SO(3)$ has a well-known closed-form expression for geodesic distance based on Rodrigues' rotation formula.

The AETv2 pipeline featuring determinant normalization and projection onto the SO(3) manifold.

The final training loss combines two parts:

  1. The geodesic distance of the transformation projected onto the $SO(3)$ manifold.
  2. A projection residual that measures how much information was lost by approximating the homography as a rotation.

This allows the network to be trained end-to-end using standard backpropagation while respecting the underlying geometry of the transformations.

Key Insights

  • Geometry as a Better Teacher: The supervisory signal in SSL is only as good as the metric used to define it. By switching to a metric that respects the mathematical structure of transformations, the network receives more "meaningful" feedback.
  • Equivariance over Invariance: The model learns representations that change "equivariantly" with the image. If you rotate an image, its internal representation should "rotate" in a predictable way. AETv2 captures this more accurately by modeling the manifold of those changes.
  • The Projection Trick: If a manifold is too complex to calculate distances on directly, you can project it onto a simpler, well-behaved subgroup ($SO(3)$) without losing the performance benefits of the geometric approach.

Experimental Results

AETv2 consistently outperformed its predecessor (AETv1) and other state-of-the-art self-supervised methods across several benchmarks:

  • CIFAR-10: AETv2 achieved an error rate of 7.44%, significantly better than RotNet (8.84%) and AETv1 (7.82%). This is remarkably close to the fully supervised baseline of 7.20%.
  • ImageNet: When using the learned features for classification (Conv5 layer), AETv2 reached 47.5% Top-1 accuracy, surpassing AETv1 (47.0%) and other popular methods like DeepCluster (44.0%) and RotNet (43.8%).
  • Generalization: On the Places dataset, AETv2 showed superior transferability, outperforming almost all other unsupervised models across various layers of the network.

Limitations and Future Work

The reliance on projecting $PG(2)$ onto $SO(3)$ is a clever fix, but it remains an approximation. Directly computing the Riemannian logarithm for the full homography group could yield even better results. Additionally, while the $SO(3)$ projection is efficient, calculating SVDs and determinants during every training step adds computational complexity compared to simple MSE. Future work may also explore extending this Lie group approach to non-geometric transformations, such as color space changes.

Summary updated

BibTeX
@misc{lin2019aetv,
  author = {Feng Lin and Haohang Xu and Houqiang Li and Hongkai Xiong and Guo-Jun Qi},
  title = {{AETv2: AutoEncoding Transformations for Self-Supervised Representation Learning by Minimizing Geodesic Distances in Lie Groups}},
  year = {2019},
  eprint = {1911.07004},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.07004},
}
Figure