NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Geometric Autoencoders -- What You See is What You Decode

Philipp Nazari, Sebastian Damrich, Fred A. Hamprecht

TL;DR

While autoencoders are powerful tools for dimension reduction, their highly expressive decoders can easily mask severe distortions in the latent space, leading to misleading visualizations. This paper introduces Geometric Autoencoders, which leverage differential geometry to diagnose latent distortion and apply a novel area-preserving regularizer to ensure that the relative sizes and shapes you see in an embedding faithfully reflect the underlying high-dimensional data.

What Problem Does This Paper Address?

When visualizing high-dimensional datasets (like single-cell RNA sequencing or complex image data) in 2D or 3D, researchers often turn to autoencoders. Ideally, the bottleneck layer forces the network to compress the data down to its most salient features.

However, the authors point out a dangerous trap: a low reconstruction error does not guarantee a faithful visualization. Because deep neural networks are incredibly flexible, a powerful decoder can easily "undo" severe stretching or crowding introduced by the encoder. For example, if the encoder unnaturally inflates a specific cluster in the 2D latent space, the decoder can simply contract that region during reconstruction to achieve near-perfect loss. As a result, the practitioner is left with a misleading visualization where cluster sizes and distances are completely warped.

Methods

To pull back the curtain on what the decoder is secretly doing, the authors introduce two diagnostic tools and a new regularization technique rooted in differential geometry:

  1. Generalized Jacobian Determinant: This metric measures the local, undirected expansion or contraction introduced by the decoder. Plotting this as a heatmap reveals whether the decoder is stretching certain regions of the embedding more than others.
  2. Indicatrices: These are visual patches (derived from pulling back the Euclidean metric tensor) plotted across the embedding. The size of an indicatrix shows local volume change, while its elongation (anisotropy) indicates the specific direction of stretching.
  3. Geometric Regularizer ($L_{det}$): To fix the distortion, the authors introduce a regularizer that minimizes the variance of the log generalized Jacobian determinant across a minibatch: $$\mathcal{L}_{det} = \text{Var}_{x\sim\mathcal{U}(B)} \left[ \log \sqrt{\det\left((J_{E(x)}D)^T J_{E(x)}D\right)} \right]$$ This mathematical constraint tames the decoder, pushing it to be area-preserving (or scaled area-preserving). It prevents the network from arbitrarily expanding or contracting different parts of the latent space.

Datasets

The authors evaluated their approach across several standard benchmarks and domain-specific datasets:

  • Image Datasets: MNIST and FashionMNIST.
  • Single-Cell Transcriptomics: Zilionis, PBMC, and CElegans datasets.
  • Synthetic Benchmark: The "Earth" dataset—a collection of 3D points sampled from a sphere corresponding to actual global landmasses, used specifically to test geographical/structural preservation.

Key Insights and Ideas

  • The "Star-Shape" Mystery Solved: Vanilla autoencoders frequently map datasets into a peculiar star-like configuration. By analyzing the indicatrices, the authors discovered this is an artifact of network initialization: clusters "expand away" from the origin during training, creating artificial, directional stretching that distorts the true data geometry.
  • Area-Preservation > Isometry: Previous geometric methods tried to force the decoder to be an isometry (preserving all local distances). The authors argue this is too restrictive, making it hard for the network to unfold complex manifolds. Enforcing area-preservation provides the perfect middle ground—giving the network enough flexibility to unfold data while keeping cluster sizes honest.
  • Uncovering Hidden Artifacts: Because the geometric autoencoder enforces a uniform mapping scale, it excels at highlighting preprocessing anomalies or data artifacts that smoother methods like UMAP completely disguise.

Key Results

  • Qualitative Fidelity: On the synthetic Earth dataset, the vanilla autoencoder drastically over-inflated the Americas relative to Eurasia. The Geometric Autoencoder preserved the true relative sizes of the continents perfectly.
Visual comparison of embeddings and diagnostics on the Earth dataset.
  • Finer Semantic Separation: On MNIST, the Geometric Autoencoder naturally separated the digit '2' into two distinct sub-clusters based on style (digits written with a loop vs. straight lower strokes). In a vanilla autoencoder, these sub-clusters are squished together in a highly contracted, unreadable zone.
  • Quantitative Performance: Across six standard local and global embedding metrics (including kNN recall, Trustworthiness, and Stress), the Geometric Autoencoder achieved the best overall aggregated rank ($\langle\text{Rank}\rangle = 2.9$) compared to baselines like UMAP, t-SNE, PCA, and Topological Autoencoders.

Limitations and Future Work

The primary limitation of this method is its reliance on smoothness assumptions: the decoder must be continuously differentiable, which requires using smooth activation functions like ELU rather than standard ReLUs. It also assumes the decoder acts as a mathematical immersion (meaning its differential is injective everywhere).

For future work, the authors propose using this geometric framework to calculate the decoder's curvature or implement parallel transport. This would allow them to project an intrinsic, "latitude-longitude-like" coordinate grid directly onto the 2D latent space, making high-dimensional data structures even more intuitive to interpret.

Summary updated

BibTeX
@inproceedings{nazari2023geometric,
  author = {Philipp Nazari and Sebastian Damrich and Fred A. Hamprecht},
  title = {{Geometric Autoencoders -- What You See is What You Decode}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=LbZS6zlU0H},
}
Figure