Abstract
Probabilistic generative models provide a flexible and systematic framework for learning the underlying geometry of data. However, model selection in this setting is challenging, particularly when selecting for ill-defined qualities such as disentanglement or interpretability. In this work, we address this gap by introducing a method for ranking generative models based on the training dynamics exhibited during learning. Inspired by recent theoretical characterizations of disentanglement, our method does not require supervision of the underlying latent factors. We evaluate our approach by demonstrating the need for disentanglement metrics which do not require labels—the underlying generative factors. We additionally demonstrate that our approach correlates with baseline supervised methods for evaluating disentanglement. Finally, we show that our method can be used as an unsupervised indicator for downstream performance on reinforcement learning and fairness-classification problems.
Introduction
In representation learning, "disentanglement" is often considered the holy grail: a state where individual latent variables correspond to independent, semantically meaningful factors of variation in the data (e.g., one neuron for "object rotation," another for "color"). While Variational Autoencoders (VAEs) are designed to achieve this, measuring their success typically requires knowing the "ground truth" factors beforehand.
In real-world applications, these labels are rarely available, creating a significant bottleneck for model selection. Researchers often must guess which hyperparameters, such as the $\beta$ in $\beta$-VAE, work best, as standard metrics like reconstruction loss do not necessarily correlate with how well the model has separated the underlying factors of the data. This paper proposes a shift in perspective: instead of evaluating the final latent space, we can rank models by analyzing their training dynamics.
Methodology: Stability as a Proxy for Quality
The core hypothesis of this work is that a model setup encouraging true disentanglement will be "stable"—meaning different random initializations will converge to similar internal activation dynamics.
As illustrated in the figure above, the approach follows four main steps:
- Ensemble Training: For every model specification, $n$ different realizations are trained using different random seeds.
- Multislice Kernel Activation Tracking: A specialized kernel tracks the activations of the decoder's hidden units over time (across epochs) for a fixed set of "trace samples," capturing a unique learning "fingerprint."
- Joint Embedding: These fingerprints are embedded into a common space to compare how different initializations evolved.
- Maximum Mean Discrepancy (MMD): The MMD is calculated between these realizations. A lower MMD score (higher similarity between random runs) indicates a more stable, and thus better-disentangled, model.
Experimental Setup and Datasets
The method was rigorously evaluated using several benchmarks:
- dSprites: The industry standard for disentanglement, consisting of 2D shapes with varying scales, rotations, and positions.
- noisy-dSprites: A variant introduced to prove that supervised metrics fail when ground-truth labels are corrupted with noise.
- Downstream Tasks: Performance was evaluated on reinforcement learning (toy clustering) and fairness-classification problems to see if the metric predicts real-world utility.
Key Results and Insights
- Strong Correlation with Supervised Baselines: The proposed unsupervised MMD score correlates strongly with established supervised metrics, achieving a Spearman rank correlation of up to 0.69 with the Mutual Information Gap (MIG).
- Discovering Intrinsic Dimensionality: The MMD score was lowest when the model's latent dimension matched the true number of generative factors (4 for dSprites), providing a novel way to discover the intrinsic dimensionality of a dataset without labels.
- Predicting Downstream Success: The metric successfully predicted which models would lead to more sample-efficient reinforcement learning agents and fairer classifiers. Specifically, it showed a -0.72 correlation with unfairness, suggesting that stable models are inherently fairer.
- Robustness to Label Noise: In the "noisy-dSprites" test, the proposed method maintained a perfect 1.0 correlation with true model rankings, while traditional supervised metrics plummeted to 0.47.
Conclusion and Future Work
By focusing on the decoder's activations rather than the encoder's latent space, this method provides a robust, unsupervised signal for model selection. While the current approach requires the computational overhead of training multiple realizations, it offers a reliable path forward for disentanglement research in label-scarce environments. Future work will explore whether these stability principles apply to other architectures, such as GANs or Diffusion models.
Summary updated