TL;DR
This paper introduces a framework that uses Large Multimodal Models (LMMs), predominantly GPT-4-vision, to automatically explain what individual latent dimensions represent in deep generative models like Variational Autoencoders (VAEs). By combining visual latent traversals with consistency-based uncertainty quantification, the method can reliably label latent factors and gracefully output "no clear explanation" when a latent dimension lacks human-interpretable structure.
What Problem Does This Paper Address?
Latent variable generative models (such as VAEs) map high-dimensional data into low-dimensional latent spaces. While these latent spaces can capture foundational generative factors (e.g., shape, azimuth, color), interpreting what individual latent dimensions actually encode usually requires manual human inspection: perturbing one variable at a time, generating images, and trying to spot a pattern.
Moreover, not all latent variables correspond to a clean, discernible semantic concept—some dimensions are uninformative or heavily entangled. Manually diagnosing these across dozens of dimensions and architectures is labor-intensive. The authors tackle two major challenges:
- How to automate natural-language explanation of single latent dimensions using modern vision-language models.
- How to quantify the reliability of these explanations to distinguish genuinely interpretable latent factors from noisy or uninterpretable ones.
Methods
The authors' pipeline consists of three main stages:
-
Latent Space Perturbation (Traversal): Starting from an isotropic Gaussian prior $\mathcal{N}(0, \mathbf{I})$, they perturb a single latent variable $z_i$ across a fixed range ($-3$ to $3$ in steps of $0.6$, yielding $k=11$ frames) while holding all other latent dimensions constant. The trained decoder generates an ordered sequence of images showing the progression.
-
Multimodal Explanation Generation: The image sequence is paired with a task prompt instructing the LMM to identify which latent variable is changing and describe its visual pattern without explaining the VAE architecture itself.
-
Uncertainty Quantification & Selection:
- Because open token log-probabilities are unavailable in models like GPT-4-vision, the authors sample $n$ candidate explanations at a sampling temperature of $1.0$.
-
They compute an explanation certainty score defined as the mean pairwise cosine similarity across embeddings of the $n$ sampled responses: $$\text{score} = \frac{1}{C} \sum_{i=1}^n \sum_{j=1, i \neq j}^n \text{sim}(r_i, r_j)$$ where $C = n(n - 1) / 2$.
-
A calibrated certainty threshold $\varepsilon$ determines whether to display the explanation with the highest mean pairwise similarity or reject it by outputting
"No clear explanation".
Datasets
The authors evaluate their approach on three standard representation learning benchmark datasets:
- MNIST: Handwritten grayscale digits ($0$ through $9$).
- dSprites: 2D synthetic sprites with 6 ground-truth generative factors (shape, scale, rotation, color, position X, position Y).
- 3dshapes: 3D geometric shapes in a room with 6 ground-truth generative factors (floor color, wall color, object color, scale, shape, orientation).
Generative backbones evaluated include standard VAE, $\beta$-VAE, and $\beta$-TCVAE.
Key Insights and Ideas
- Semantic Consistency Signals Interpretability: When a latent dimension corresponds to an obvious visual attribute, independently sampled text responses from GPT-4-vision converge semantically. When the traversal is visually uninterpretable, candidate responses diverge widely into vague or conflicting guesses.
- Cosine Embeddings Beat Lexical Overlap for Uncertainty: Measuring semantic embedding cosine similarity between sampled responses yielded a much stronger separation of interpretable vs. uninterpretable latents ($\text{AUC} = 0.9694$) than surface-level token overlap (ROUGE-L lexical similarity, $\text{AUC} = 0.6898$).
- Entanglement Increases Explanation Uncertainty: On models with higher factor disentanglement (like $\beta$-TCVAE), LMMs produce more coherent and certain descriptions. When factors are entangled (common in vanilla VAEs), the LMM typically fixates on only one of the changing visual attributes or exhibits high uncertainty.
Key Results
- Model Comparison: GPT-4-vision substantially outperformed other LMMs (Google Bard, LLaVA-v1.5-13b, InstructBLIP) across BLEU, ROUGE-L, METEOR, and BERTScore against human reference annotations. For example, on the 3dshapes dataset with a standard VAE, GPT-4-vision achieved a METEOR score of 0.370 compared to Bard's 0.240, LLaVA's 0.224, and InstructBLIP's 0.212.
- Instruction Following Failure in Open LMMs: Smaller or earlier open-weights models struggled with the meta-task: LLaVA-1.5 merely described static images rather than abstracting the latent variation, and InstructBLIP often parroted the prompt instructions rather than synthesizing an answer.
- Filtering Uninterpretable Latents: Using the optimal cosine similarity threshold ($\varepsilon = 0.7434$), the uncertainty mechanism accurately classified whether an image sequence contained a human-discernible trend with $1.0$ Precision, $0.9388$ Recall, and an F1-score of $0.9684$.
Limitations and Future Work
- Visual Biases in GPT-4-vision: The model exhibits strong perceptual biases toward color changes. It frequently misinterprets variations in orientation, scale, or camera viewpoint as color shifts (e.g., classifying a wall orientation change as a background color change).
- Entanglement Blind Spots: When multiple visual factors shift simultaneously along a single entangled dimension, LMMs rarely explain the compound behavior, usually describing only the most salient single feature.
- Future Directions: Incorporating richer uncertainty metrics (like semantic entropy or token-level predictive entropy once open LMMs reach sufficient visual reasoning capability) and fine-tuning vision-language models specifically for compositional visual difference reasoning.
Summary updated