Understanding why a Vision-Language (V&L) model—like an image captioner—generates a specific sentence is notoriously difficult. Most current "explainability" tools are like looking at a mosaic through a straw: they explain the output one word at a time and divide the image into arbitrary square patches.
In their paper, "Interpreting Vision and Language Generative Models with Semantic Visual Priors," Michele Cafagna and colleagues propose a more holistic approach. By moving from token-level to sentence-level explanations and swapping random image grids for "semantic priors," they’ve created a framework that is both more intuitive for humans and computationally efficient.
TL;DR
The authors introduce a SHAP-based framework that explains entire generated sentences at once rather than word-by-word. By leveraging the model's own internal "semantic priors" to identify important image regions, they produce explanations that humans find more detailed and satisfying, all while significantly reducing the computational cost of the analysis.
What Problem Does This Paper Address?
Explainable AI (XAI) for multimodal models usually suffers from two major headaches:
- The "Token-by-Token" Trap: Most methods explain the generation of individual words (e.g., why did the model say "dog"?). However, the meaning of a sentence is more than the sum of its parts. Explaining every token is computationally expensive and often fails to provide a "global" understanding of the model's logic.
- The "Superpixel" Problem: To make image analysis manageable, researchers often divide images into "superpixels"—essentially a grid of squares. These squares are arbitrary; they might split a single object in half or group unrelated background elements together, which "shatters" the semantic meaning of the image.
Methods
The researchers built their framework on SHAP (Shapley Additive Explanations), a game-theoretic approach that assigns "credit" to different input features (pixels) for the final output. They introduced three key innovations:
- Sentence-based Explanations: Instead of looking at raw logits for single words, they measure how the meaning of the entire sentence changes when parts of the image are hidden. They do this by comparing the embedding (a mathematical representation of meaning) of the original caption to the caption generated from a perturbed image using cosine distance.
- Deep Feature Factorization (DFF): Instead of using a grid of squares, they use DFF to "interrogate" the model’s own visual backbone (like a CNN or Vision Transformer). DFF identifies the regions the model actually cares about—like "faces," "grass," or "sky"—and uses these as the "players" in the SHAP game.
- Priority Sampling: SHAP is notoriously slow because it requires thousands of model evaluations. The authors implemented a deterministic sampling strategy that prioritizes high-weight coalitions, allowing for accurate approximations with much less compute.
Datasets
The study primarily uses the HL (High-Level) image caption dataset. This dataset contains 15,000 images from the famous COCO benchmark but adds a unique twist: it pairs images with captions describing three abstract dimensions—scenes, actions, and rationales—alongside standard object-centric descriptions. This provided a rigorous testbed to see if the explanations could adapt to different types of semantic questions (e.g., "What is happening?" vs. "Where is this?").
Key Insights and Ideas
- The Model is its Own Best Explainer: The "aha moment" here is that the features already learned by the model's visual backbone are far better candidates for explanation than arbitrary geometric shapes. When you use the model's internal "concepts" as features, the resulting heatmaps align much more closely with human intuition.
- Global > Local: By explaining the sentence as a whole, the framework captures the "grounding" of the entire narrative. This avoids the noise and redundancy of generating 10 separate explanations for a 10-word sentence.
- Efficiency via Semantics: Because DFF identifies a small number of highly relevant regions (usually 8–12), the SHAP computation becomes tractable. You don't need to test thousands of random combinations of squares if you already know which "semantic chunks" matter.
Key Results
- Human Preference: In a study with 14 AI researchers, DFF-based explanations were rated as significantly more detailed and satisfying than traditional superpixel methods.
- Consistency: The DFF method maintained high "completeness" scores, meaning it didn't miss relevant image regions despite using fewer features.
- Computational Speedup: The priority sampling method approximated "true" Shapley values with errors orders of magnitude smaller than standard Monte Carlo sampling, making it feasible for large-scale generative models like OFA.
- Adaptability: While DFF works best with CNNs and Vision Transformers (ViT), the authors showed the framework is modular. For architectures where DFF struggles (like FasterRCNN), they successfully swapped in an off-the-shelf segmentation model (STEGO) to maintain high-quality explanations.
Limitations and Future Work
The authors noted that DFF doesn't produce perfect results on all architectures. Specifically, in FasterRCNN models, the extracted features were often too redundant or overlapping to provide fine-grained detail.
Future work could involve refining how these semantic priors are extracted across a wider variety of "black box" architectures. Additionally, while the current method is unsupervised, there is potential to integrate more "human-in-the-loop" feedback to further align model explanations with human reasoning.
Summary updated