Reproducible, incremental representation learning with Rosetta VAE

Miles Martinez, John PearsonarXiv 2022

Introduction

Variational Autoencoders (VAEs) are fundamental tools in modern data science, enabling the compression of high-dimensional data into low-dimensional latent spaces. Despite their utility, VAEs suffer from a lack of identifiability. Independent training runs on the same data often yield latent spaces that are rotated, flipped, or stretched relative to one another. This inconsistency hinders scientific collaboration and prevents the incremental building of models without sharing entire datasets. The Rosetta VAE (R-VAE) addresses this by introducing "Rosetta Points"—a small set of anchor points that ensure latent space consistency across models and datasets.

The Rosetta VAE Framework

The core innovation of R-VAE is the use of a sparse set of representative input-latent pairs to "tack down" the latent space. This process involves three main stages:

  1. Distillation: An initial VAE is trained on a primary dataset ($D_1$). The resulting latent space is then clustered (e.g., via k-means) to identify representative centroids.
  2. Rosetta Point Selection: The input-latent pairs $(\hat{x}, \hat{z})$ closest to these centroids are selected as "Rosetta Points." These points serve as a portable "map" of the latent manifold.
  3. Rosetta Loss: When training a subsequent model (potentially on new data $D_2$), a specialized penalty term is added to the objective function. This "Rosetta loss" constrains the new encoder to map the Rosetta inputs to their original latent coordinates and ensures the decoder can reconstruct them accurately.
The R-VAE workflow: from initial embedding and Rosetta point selection to anchored training of new models.

A hyperparameter $\rho$ controls the trade-off between strict alignment with the previous latent space and the flexibility to adapt to novel data structures in $D_2$.

Experimental Evaluation

The authors tested R-VAE across four datasets of varying complexity:

  • 8 Gaussians: A 2D synthetic dataset for visualizing clustering.
  • MNIST: The standard benchmark of handwritten digits.
  • Birdsong: Spectrograms of zebra finch syllables, representing complex, naturally clustered scientific data.
  • 3D Chairs: Grayscale images used to evaluate performance on intricate visual features.

Key Results and Discussion

The R-VAE demonstrates significant improvements in Retraining Variability (RV), a metric quantifying the inconsistency between latent spaces across different training runs.

Visual and quantitative comparison of R-VAE against standard VAE and beta-VAE. R-VAE maintains consistent latent structures and achieves the lowest retraining variability.

Consistency and Portability

Unlike standard VAEs, which produce divergent embeddings across multiple runs, R-VAE consistently recovers the same latent structure. This stability is achieved by breaking the rotational and reflective symmetries inherent in standard VAE training. Furthermore, because only a few Rosetta Points (typically 4 to 64) are required, researchers can share the "essence" of a latent space without the need to transfer massive datasets, facilitating privacy-preserving collaboration.

Model Agnosticism

R-VAE proves robust to changes in neural network architecture. A new model can be anchored to a previous one even if its internal structure differs, provided the input and latent dimensions remain compatible. This makes the method highly portable across different research environments.

Conclusion and Future Directions

The Rosetta VAE provides a simple, effective mechanism for ensuring reproducibility in representation learning. While the current heuristic for selecting Rosetta Points via clustering is effective, future work could explore more formal selection methods from coreset theory. Additionally, investigating how Rosetta Points might interact with or mitigate data biases remains a critical area for ensuring fair and robust scientific models.

Summary updated

BibTeX
@misc{martinez2022reproducible,
  author = {Miles Martinez and John Pearson},
  title = {{Reproducible, incremental representation learning with Rosetta VAE}},
  year = {2022},
  eprint = {2201.05206},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.05206},
}
Figure