Geodesics in fibered latent spaces: A geometric approach to learning correspondences between conditions

Tariq Daouda, Reda Chhaibi, Prudencio Tossou, Alexandra-Chloé VillaniarXiv 2020

Abstract

This work introduces a geometric framework and a novel network architecture for creating correspondences between samples of different conditions. Under this formalism, the latent space is a fiber bundle stratified into a base space encoding conditions, and a fiber space encoding the variations within conditions. Furthermore, this latent space is endowed with a natural pull-back metric. The correspondences between conditions are obtained by minimizing an energy functional, resulting in diffeomorphism flows between fibers. We illustrate this approach using MNIST and Olivetti and benchmark its performances on the task of batch correction, which is the problem of integrating multiple biological datasets together.

Introduction

A fundamental challenge in representation learning is disentanglement: the ability to separate the "condition" of a data point (e.g., a person's identity) from its "style" or internal variation (e.g., facial expression). Standard generative models often struggle to maintain accurate correspondences when mapping data between conditions. For instance, if a specific handwriting style (tilt, thickness) is observed for the digit "4", what is the most mathematically principled way to represent that same style for the digit "9"?

Most existing models rely on "naive transport," simply swapping labels in a flat Euclidean latent space. This approach assumes that the style space is identical across all conditions, an assumption that rarely holds in complex, high-dimensional data. This paper proposes that the latent space possesses an underlying Riemannian geometry that must be respected to achieve meaningful translations.

Methodology: The Fibered Latent Space

The authors introduce Fibered Auto-Encoders (FAE), which structure the latent space $M$ as a Riemannian fiber bundle.

1. The Fiber Bundle Structure

The latent space is decomposed into a base space $B$, representing discrete or continuous conditions, and a fiber $F$, representing the variations within those conditions. This stratification ensures that the model explicitly separates global labels from local styles.

Geodesic transport across the latent space manifold, showing how style distributions evolve between conditions.

2. The Pull-back Metric

Rather than treating the latent space as flat, the FAE defines a Riemannian metric derived from the decoder. The "distance" between two latent points is determined by the difference in their reconstructed images in the output space. This is formally calculated using the Jacobian of the decoder. To ensure the decoder is sufficiently smooth for these calculations, the architecture utilizes Sine activations (similar to SIRENs).

3. Geodesic Transport

To move a data point from Condition A to Condition B, the model computes the geodesic—the shortest path on the curved manifold. This path is found by minimizing an energy functional, resulting in a diffeomorphism flow that maps points between fibers while preserving their relative "style" characteristics.

The transport map $\gamma$ defines the geodesic path between points $f_1$ and $f_2$ in different fibers $F_1$ and $F_2$.

4. Training Objectives

The FAE architecture employs Domain Adversarial Training via a Gradient Reversal Layer to ensure the "style" fiber is stripped of condition-specific information. Additionally, a GAN discriminator and a condition classifier are used to maintain output realism and label accuracy.

Experimental Results

The framework was evaluated on three distinct datasets:

  • MNIST & Olivetti Faces: Qualitative results showed that geodesic transport accurately preserves style. For example, in the Olivetti dataset, the model could "hide the teeth" of a subject when transporting them to a non-smiling condition, a feat naive transport failed to achieve.
  • Single-cell RNA sequencing (scRNA-seq): The model was applied to the task of batch correction (aligning biological data from different experiments). FAE performed on par with state-of-the-art methods like scGen and Harmony in terms of alignment.

Crucially, FAE demonstrated superior variance retention. While many alignment methods "over-correct" and destroy underlying biological signals, FAE moves data along the manifold, preserving internal variance and biological identity.

Conclusion

By moving from implicit to structural disentanglement, the FAE framework provides a rigorous geometric foundation for learning correspondences. While computing geodesics in high dimensions presents numerical challenges, the ability to respect the manifold's curvature allows for more accurate and variance-preserving data integration than traditional Euclidean methods. Future work may explore alternative metrics, such as Wasserstein distance, to further enhance image-based translations.

Summary updated

BibTeX
@misc{daouda2020geodesics,
  author = {Tariq Daouda and Reda Chhaibi and Prudencio Tossou and Alexandra-Chloé Villani},
  title = {{Geodesics in fibered latent spaces: A geometric approach to learning correspondences between conditions}},
  year = {2020},
  eprint = {2005.07852},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.07852},
}
Figure