Abstract
Generative models like Variational Autoencoders (VAEs) learn to represent data in a compressed latent space. While these latent variables often capture semantic features, identifying their specific functions usually requires manual "latent traversal" and human interpretation. This paper introduces a framework that automates this process using Large Multimodal Models (LMMs). By generating image sequences that vary a single latent factor and prompting an LMM to describe the transformation, the system provides natural language explanations. To ensure reliability, the framework incorporates an uncertainty quantification mechanism that filters out uninterpretable or noisy latent dimensions.
Introduction
The interpretability of generative models is a significant hurdle in representation learning. In models like VAEs, the latent space acts as a "DNA" for generated outputs, where specific variables might control attributes like rotation, color, or scale. Historically, researchers have had to manually tweak these variables and visually inspect the resulting image sequences to deduce their meaning—a process that is subjective and labor-intensive. This work explores the potential of modern LMMs, such as GPT-4V, to serve as automated annotators for these latent spaces.
Methodology
The proposed framework bridges the gap between abstract latent vectors and human-readable descriptions through a four-step pipeline:
- Latent Traversal: A single latent dimension $z_i$ is varied while keeping others fixed, producing a sequence of images that illustrates a specific transformation.
- LMM Prompting: The image sequence and a descriptive prompt are sent to an LMM (e.g., GPT-4V, LLaVA). The model is tasked with identifying the pattern of variation.
- Uncertainty Quantification: To mitigate hallucinations, the LMM is sampled multiple times. A Certainty Score is calculated using the average pairwise cosine similarity of the responses. If the score falls below a threshold $\epsilon$, the dimension is labeled as having "no clear explanation."
- Evaluation: Explanations are benchmarked against ground-truth annotations using metrics like BLEU, METEOR, and BERTScore.
Experimental Setup and Datasets
The framework was evaluated on three standard benchmarks for representation learning:
- MNIST: Handwritten digits, focusing on structural transformations.
- dSprites: 2D shapes with variations in scale, rotation, and position.
- 3dshapes: 3D objects with complex attributes like floor/wall color, object shape, and orientation.
Results and Key Insights
The experiments revealed several critical findings regarding the capabilities of current LMMs in interpretability tasks:
- GPT-4V Performance: GPT-4V emerged as the superior model, significantly outperforming open-source alternatives like LLaVA and InstructBLIP. For instance, on the 3dshapes dataset, GPT-4V achieved a METEOR score of 0.370, compared to ~0.24 for other models.
- Effective Filtering: The uncertainty quantification method proved highly robust. Using cosine similarity for certainty scores yielded an AUC of 0.9694 in distinguishing interpretable trends from noise, allowing the system to accurately identify when a latent variable lacked a clear semantic meaning.
- Attribute Bias: LMMs exhibit a notable "color bias," being significantly more sensitive to changes in hue than to spatial or geometric shifts (e.g., scale or orientation). Spatial changes are sometimes incorrectly described as color variations.
Discussion and Limitations
While the framework successfully automates a previously manual task, limitations remain. LMMs often struggle with "entangled" latent variables—where one dimension controls multiple features—typically only identifying the most prominent change. Furthermore, their relative weakness in spatial reasoning compared to color perception suggests that future improvements in the visual-geometric grounding of LMMs will be necessary for more comprehensive interpretability tools.
Conclusion
This research demonstrates that LMMs can effectively interpret the latent spaces of generative models, providing a scalable path toward more transparent AI. By combining automated description with rigorous uncertainty quantification, the framework offers a reliable method for auditing what generative models truly learn.
Summary updated