TL;DR
Generative Distribution Embeddings (GDE) lift standard autoencoders from processing single data points to representing entire probability distributions. By pairing a distribution-invariant encoder with a conditional generative model, GDEs learn low-dimensional latent spaces that capture population-level structures, align naturally with Wasserstein geometry, and filter out individual-level sampling noise.
What Problem Does This Paper Address?
Many modern scientific datasets are fundamentally hierarchical and multiscale. In single-cell genomics, for example, the core unit of interest is often not an individual cell, but the population of cells belonging to a specific patient or experimental condition.
Standard machine learning models operate on individual data points, which are frequently corrupted by high levels of measurement noise (e.g., molecular undersampling in sequencing). Aggregating these points into simple summaries like means throws away rich distributional information (like variance and modality). Conversely, treating large sets of samples as distinct entities scales poorly and struggles to preserve the underlying geometric relationships between different populations. The authors introduce GDEs to bridge this gap, providing a scalable framework to embed entire distributions into a continuous, geometrically meaningful latent space.
Methods
The GDE framework rethinks the classic autoencoder by replacing the standard decoder with a conditional generator:
- The Encoder ($\mathcal{E}$): Maps a finite set of samples (an empirical distribution) to a fixed-dimensional latent vector $z$. To guarantee that the model learns true distributional properties rather than sample-size artifacts, the encoder must satisfy distributional invariance. This means it must be both permutation invariant (order doesn't matter) and proportional invariant (duplicating the dataset doesn't change the embedding). Architectures using mean pooling or M-estimators satisfy this, while max-pooling breaks it.
- The Generator ($\mathcal{G}$): Instead of reconstructing a single point, the generator is a conditional model (such as a VAE, Diffusion model, or Autoregressive Language Model) trained via a plug-in loss to match the input distribution given the latent code $z$.
Crucially, the authors prove a Central Limit Theorem (CLT) for these embeddings. As the number of samples in a set grows, the embedding concentrates around its population value with Gaussian fluctuations. This justifies training GDEs on small subsets of massive sample sets, making the framework highly scalable.
Datasets
The authors evaluated GDEs on synthetic benchmarks and six large-scale computational biology datasets:
- Synthetic Benchmarks: Multivariate Gaussians, Gaussian Mixture Models (GMMs), and mixtures of MNIST/Fashion-MNIST digits.
- Single-nuclei RNA sequencing: 6 million cells from 1,494 human brains (PsychAD atlas) for donor-level disease prediction.
- Lineage-traced scRNA-seq: 150,000 mouse hematopoietic stem cells to capture clonal dynamics.
- Perturb-seq Transcriptomes: 1 million cells subjected to CRISPRi knockdowns.
- Optical Pooled Screening Images: 20 million single-cell microscopy images mapping morphological responses to genetic perturbations.
- Yeast Promoter Sequences: 34 million synthetic DNA sequences to decode expression activity.
- Viral Protein Sequences: 1 million SARS-CoV-2 spike protein sequences from GISAID for spatiotemporal modeling.
Key Insights and Ideas
- Data-Driven Rao-Blackwellization: GDEs act as approximate predictive sufficient statistics. By conditioning downstream predictors on the GDE latent space and sampling synthetically from the generator, the model effectively magnifies the signal and outperforms standard statistical estimators at low sample sizes.
- Emergent Wasserstein Geometry: Without explicit geometric constraints during training, the latent $L_2$ distances in a GDE naturally correlate strongly with 2-Wasserstein ($W_2$) distances.
- Optimal Transport Trajectories: Linear interpolations between two points in the GDE latent space map directly to smooth optimal transport paths in the data space, allowing for realistic morphing between distinct distributions.
- Prior-Weighted Resolution: The learned latent geometry warps adaptively based on the meta-distribution prior. High-density regions expand to capture finer details, while low-density regions contract.
Key Results
- Synthetic Reconstruction: GDE consistently achieved lower Wasserstein reconstruction errors than existing methods like Kernel Mean Embeddings (KME) and Wasserstein Wormhole across all synthetic benchmarks.
- Semi-Supervised Learning: On the 6M cell PsychAD dataset, incorporating unlabeled donor distributions via a semi-supervised GDE improved patient label classification accuracy (0.8887) over a purely supervised baseline (0.8791).
- Predicting Clonal Fates: GDEs captured clonal dynamics in lineage-traced data significantly better than alternatives, outperforming Wasserstein Wormhole by over 2 bits of mutual information.
- Zero-Shot Generalization: GDEs successfully predicted the transcriptional and morphological effects of unseen genetic perturbations, achieving an $R^2$ of 0.458 on transcriptomes (outperforming scVI) and an $R^2$ of 0.7055 on cell image intensities.
Limitations and Future Work
While powerful, GDEs come with a few caveats:
- Prior Sensitivity: The performance and structure of the latent space depend heavily on how sets are constructed from raw data (the choice of the meta-distribution prior).
- Optimization Challenges: Propagating gradients from the generator back through to the encoder can introduce engineering bottlenecks, particularly with very deep architectures.
- i.i.d. Assumption: The current mathematical framework assumes that samples within a given distribution are exchangeable and i.i.d., meaning it cannot yet handle internal non-i.i.d. structures or temporal dependencies within a single set.
Future work includes extending GDEs to non-i.i.d. settings, exploring alternative pooling mechanisms, and integrating the framework with meta-flow matching techniques.
Summary updated