Introduction
Dimensionality reduction is a cornerstone of data visualization, with Autoencoders (AEs) frequently employed to map high-dimensional data into a low-dimensional latent space. However, standard AEs often introduce significant distortions. Because deep neural networks are highly expressive, an encoder can arbitrarily stretch or compress regions of the latent space. As long as the decoder can invert these transformations to minimize reconstruction error, the training objective is satisfied. This leads to "hallucinations" where cluster sizes in a 2D plot reflect latent space warping rather than the underlying data variance, undermining the goal of honest visualization.
This paper introduces Geometric Autoencoders, a framework that leverages differential geometry to ensure 2D embeddings remain faithful to their high-dimensional origins. By regularizing the decoder to be area-preserving, the authors prevent artificial cluster expansion and provide diagnostic tools to identify unavoidable distortions.
Methodology
The authors treat the decoder as a mapping between manifolds and apply tools from differential geometry to enforce geometric consistency:
- Pullback Metrics and Indicatrices: The latent space is equipped with a "pullback metric," allowing the calculation of how distances and angles in the 2D visualization correspond to the high-dimensional space. These are visualized using indicatrices—small ellipses that indicate the direction and magnitude of local stretching.
- Geometric Regularization ($L_{det}$): A novel loss term is introduced to penalize the variance of the generalized Jacobian determinant, which measures local volume change.
- Area-Preservation: Rather than attempting a globally impossible isometry (preserving all distances), the regularizer encourages the decoder to be area-preserving. This ensures that equal areas in the 2D plot correspond to equal volumes in the original high-dimensional space.
Geometric Analysis and Insights
The application of geometric diagnostics reveals several flaws in traditional embedding methods:
- The "Star-Shape" Phenomenon: Vanilla AEs frequently produce star-shaped embeddings where classes expand away from the origin. Diagnostic heatmaps show that the centers of these plots are often extremely compressed, making the visualization misleading.
- Isotropy and Semantic Structure: Geometric AEs produce more isotropic (round) indicatrices compared to vanilla or UMAP-based autoencoders. This preservation of local geometry allows the model to reveal semantic sub-clusters, such as distinct handwriting styles within a single digit class in MNIST, which are often collapsed by other methods.
- Diagnostic Safety Net: Even when distortion is inevitable, heatmaps of the Jacobian determinant act as a "warning track," alerting users to regions where cluster sizes should not be taken at face value.
Experimental Results
The Geometric AE was evaluated against vanilla AEs, Topological AEs, PCA, t-SNE, and UMAP across a variety of datasets, including image data (MNIST, FashionMNIST), biological single-cell data (Zilionis, PBMC, CElegans), and a synthetic "Earth" dataset.
Quantitatively, the Geometric AE achieved the best average rank across six metrics measuring local and global structure preservation. Qualitatively, the "Earth" dataset experiment—sampling points from a 3D globe—demonstrated the method's superiority. The Geometric AE was the only approach to produce a recognizable world map where the relative sizes of continents were preserved, whereas vanilla AEs significantly distorted landmass proportions.
Discussion and Future Work
While the current framework assumes the decoder's image can be described by a single coordinate system, it provides a robust foundation for faithful visualization. Future work may extend these tools to measure manifold curvature or perform parallel transport, potentially leading to "curved grids" that help practitioners navigate the intrinsic geometry of complex, high-dimensional data.
Summary updated