A Geometric Perspective on Autoencoders

Yonghyeon LeearXiv 2023 · DOI

Abstract

Autoencoders (AEs) are traditionally viewed as compression tools that minimize reconstruction loss. However, this paper re-frames AEs through the lens of differential geometry, identifying two critical failures in standard models: "wrong manifold" learning and "latent space distortion." By interpreting AEs as tools for learning manifolds and coordinate charts, the author introduces three geometrically-motivated regularization techniques—NRAE, MECAE, and IRAE—that ensure learned representations are smoother, more accurate, and preserve the intrinsic geometry of the data.

Introduction: The Manifold Hypothesis

The "Manifold Hypothesis" suggests that high-dimensional data, such as images, actually lies on a much lower-dimensional, curved surface called a manifold. Autoencoders are fundamentally designed to discover this surface. For example, a sequence of images showing a person turning their head can be represented as a one-dimensional manifold (the angle of rotation) embedded within a high-dimensional image space.

Figure 1: The Manifold Hypothesis illustrated with a sequence of rotating face images forming a 1D manifold in high-dimensional space.

The Problem with Standard Autoencoders

Standard AEs primarily minimize reconstruction loss—how well they can recreate the input. While intuitive, this objective leads to two major geometric problems:

  1. The Wrong Manifold: Because there are infinite ways to draw a surface through a set of points, an AE might "overfit" by creating a jagged, wiggly manifold that passes through noisy data points but fails to capture the true underlying structure.
  2. Distorted Latent Space: Even if the AE finds the right manifold, the "map" it creates (the latent space) might be severely warped. Distances and angles in the latent space may not correspond to consistent changes in the actual data, making the representation less useful for downstream tasks.
Figure 5: Comparison of candidate manifolds learned from observed data points. Candidate 3 represents a smooth, generalized manifold that avoids the overfitting seen in Candidates 1 and 2.

Proposed Geometric Regularization Methods

To address these issues, the paper introduces a hierarchy of geometric regularization methods:

  • Neighborhood Reconstructing Autoencoder (NRAE): This method utilizes a pre-constructed neighborhood graph to force the decoder to locally approximate the geometry of the data points' actual neighbors. This prevents the model from creating incorrect "shortcuts" in the manifold.
  • Minimum Extrinsic Curvature Autoencoder (MECAE): This approach penalizes the "wiggliness" (extrinsic curvature) of the learned manifold. By encouraging the manifold to be as flat as possible while still fitting the data, it effectively filters out noise and prevents the "wrong manifold" problem.
  • Isometrically Regularized Autoencoder (IRAE): This is the most rigid form of regularization, forcing the mapping between the latent space and the data manifold to be a scaled isometry. This ensures that distances and angles in the latent space are preserved proportionally in the high-dimensional data space, making the latent space highly interpretable.

To make these high-order geometric calculations computationally feasible, the author employs Hutchinson’s stochastic trace estimator, allowing the model to approximate complex derivatives like Jacobians efficiently during training.

Key Insights and Results

The paper validates these methods using synthetic and specialized datasets, such as rotating faces and 2D manifolds with holes. Key findings include:

  • Connectivity and Smoothness: NRAE successfully recovers correct local connectivity in sparse datasets, while MECAE produces significantly smoother manifolds from corrupted, noisy data compared to vanilla AEs.
  • Geometric Fidelity: In experiments involving manifolds with holes, vanilla AEs often produced warped latent representations where the hole was distorted. IRAE maintained the original proportions and the central hole perfectly, proving its ability to preserve metric properties.
  • Curvature as a Regularizer: A fascinating insight is that high curvature is often a sign of overfitting. By treating the manifold as a physical surface and minimizing its "bendiness," we obtain more robust models.

Conclusion

By shifting the perspective from simple reconstruction to geometric fidelity, this work provides a more principled way to design autoencoders. While calculating second-order derivatives remains an engineering challenge for massive datasets, the use of stochastic estimators and geometric priors offers a promising path toward more interpretable and robust representation learning.

Summary updated

BibTeX
@misc{lee2023geometric,
  author = {Yonghyeon Lee},
  title = {{A Geometric Perspective on Autoencoders}},
  year = {2023},
  eprint = {2309.08247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.08247},
}
Figure