TL;DR
This paper introduces a novel framework for interpreting the internal representations of Large Multimodal Models (LMMs). By employing Sparse Autoencoders (SAEs) to disentangle features and then using another LMM to explain these features, the authors achieve a deeper understanding of LMMs' decision-making processes, enabling them to steer model behavior and even mitigate issues like hallucination.
What Problem Does This Paper Address?
Large Multimodal Models (LMMs) have achieved remarkable success, but their internal workings remain largely opaque. Understanding why these models make certain decisions is crucial for debugging, improving reliability, and building trust. Traditional methods for interpreting neural networks struggle with the high dimensionality and polysemantic nature of LMM representations, and the sheer scale of open-ended concepts they handle makes manual analysis infeasible. This paper tackles the challenge of dissecting and understanding these complex, open-semantic features within LMMs.
Methods
The authors propose a two-pronged approach:
- Disentanglement with Sparse Autoencoders (SAEs): They integrate SAEs into specific layers of LMMs (like LLaVA-NeXT). SAEs are designed to decompose complex representations into more human-understandable, potentially monosemantic features. This addresses the challenge of polysemantic neurons.
- Zero-shot Interpretation Pipeline: To interpret the disentangled features, they develop an automatic pipeline that leverages the zero-shot capabilities of other LMMs. This involves:
- Identifying Top Activated Images and Patches: For each learned feature, they find images and specific regions within those images that maximally activate it.
- Automatic Feature Interpretation: These activated image patches are then fed into a larger LMM (LLaVA-OV-72B) to generate explanations for the feature's semantics.
- Steering and Localization: The framework also allows for steering model behavior by manipulating feature activations and for localizing the causes of specific model outputs (like hallucinations) by analyzing feature contributions.
Datasets
- Training: The SAEs are trained on the LLaVA-NeXT-LLaMA3-8B dataset.
- Evaluation/Interpretation: A combined dataset of approximately 46,684 images (from LLaVA training data and additional sources) is used for caching feature activations. The LLaVA-OV-72B model is used for the interpretation pipeline.
Key Insights and Ideas
- SAEs as Feature Disentanglers for LMMs: The paper demonstrates that SAEs, a known interpretability technique, can be effectively applied to LMMs to break down complex multimodal representations into more interpretable components.
- LMMs Interpreting Other LMMs: A key innovation is using a larger LMM as an "explainer" for the features learned by an SAE integrated into another LMM. This leverages the advanced reasoning capabilities of modern LMMs for interpretability.
- Features Can Steer Model Behavior: The authors show that by clamping specific feature activations, they can influence the LMM's output, demonstrating a direct link between learned features and model behavior. This is crucial for controlling LMMs.
- Identifying Causes of Hallucination: The framework successfully identifies features that contribute to undesirable behaviors like hallucination, paving the way for targeted interventions.
- Low-Level Perception Features in LMMs: Unlike LLMs, LMMs exhibit a significant number of low-level visual features (color, shape, texture), highlighting a key difference in their representational structure.
Key Results
- The proposed interpretation pipeline significantly improves upon random baselines in terms of consistency and accuracy, as measured by IOU and CLIP scores.
- The authors successfully demonstrate steering model behavior, for example, by clamping a "happy" feature to elicit a happiness response and by mitigating hallucination related to geographical information by steering features associated with specific text.
- The study identifies various types of features, including emotional, low-level perception (shape, texture, color), object, scene, and invariant visual neurons.
Limitations and Future Work
- Quantitative Evaluation of Steering: The paper acknowledges the difficulty in quantitatively evaluating steering effects due to prompt dependency and potential neuron inhibition. They propose using LLMs for evaluation as an initial step.
- Computational Cost: The interpretation and localization methods involve multiple forward passes, making them computationally intensive. Linear approximations are used to mitigate this.
- Generalizability: While the approach is tested on LLaVA-NeXT and Instruct-BLIP, further validation across a wider range of LMM architectures and sizes would be beneficial.
- Future Work: The authors suggest exploring more sophisticated methods for feature disentanglement and interpretation, as well as developing more robust steering mechanisms for controlling LMM behavior and addressing complex failure modes. They also highlight the potential for these findings to inform cognitive processes in the human brain.
Summary updated