TL;DR
Standard AI explainability tools can tell you which pixels and words matter to a vision-language model, but not how they connect across modalities. Existing tools that do map these connections are so computationally heavy they have to group pixels into blocky patches. This paper introduces GEFI, a mathematically grounded framework that maps cross-modal interactions down to the exact pixel—running faster and more accurately than coarse, patch-based competitors.
What Problem Does This Paper Address?
Vision-language models like CLIP work by projecting images and text into a shared space, thriving on the alignment between visual and textual concepts. If you want to understand how they make decisions, standard "first-order" feature attribution falls short. It might highlight a dog in an image and the word "dog" in the caption, yet completely fail to verify if the model actually linked the two.
To see those links, we need higher-order feature interactions. The catch? Calculating interactions across modalities triggers a combinatorial explosion. Because of this computational bottleneck, existing black-box and game-theoretic methods compromise by operating on coarse, fixed image patches (the natural inputs to Vision Transformers). Treating patches as indivisible blocks blinds us to fine-grained, pixel-level details and struggles when objects awkwardly straddle patch boundaries.
Methods
The authors build upon proxy gradient estimation—a black-box technique that estimates gradients by randomly masking features (turning them "on" or "off" via Bernoulli distributions) rather than relying on internal model access.
- GEFI (The General Theory): By extending first-order proxy gradient estimation to multiple features simultaneously, the authors derive Gradient-Estimation-Based Feature Interaction (GEFI). Crucially, they prove that GEFI is mathematically equivalent to the cooperative game-theoretic Shapley Interaction Index (SII) at any arbitrary order. Because all queries come from the same sampling distribution, you can reuse a single set of model queries to explore interactions of any order.
- GEFI-PM (The Fast Dual-Encoder Variant): Standard GEFI only uses paired image-text samples. For CLIP-like dual encoders, if you run $n_{\text{img}}$ masked images and $n_{\text{txt}}$ masked texts, you get an entire grid of $n_{\text{img}} \times n_{\text{txt}}$ cosine similarity scores almost for free. GEFI-PM decouples the image and text sampling paths to exploit this entire "product-measure" matrix. By reorganizing the math into clean, parallelizable matrix multiplications—and pre-computing the random masks offline—it slashes time complexity by an order of magnitude.
- Subset Anchoring: A single word token carries rich meaning, while a single pixel means almost nothing on its own. GEFI-PM allows users to group arbitrary pixels (like a segmentation mask or bounding box) into a unified "anchor" to query which words align with that specific visual object.
Datasets
The authors evaluate pre-trained CLIP models (ViT-B/32 and ViT-B/16) on two standard vision-language benchmarks (no new datasets are introduced, as explainability operates post-hoc):
- MS COCO (validation split), using dictionary-based synonym matching to link caption words to ground-truth bounding boxes and segmentation masks.
- Flickr30k (test split), utilizing its native phrase-to-bounding-box annotations.
To properly test second-order explanations without relying solely on human annotations, the authors also introduce a novel evaluation metric: Diff-ABPC (Area Between Perturbation Curves on a Contrastive Pair), which measures how progressively deleting/inserting top interactive pixels impacts similarity scores when the anchor word is present versus when it is removed.
Key Insights and Ideas
- Unraveling the patch bottleneck: As Vision Transformers scale from ViT-B/32 to finer ViT-B/16 architectures, the number of patches quadruples. Under a fixed query budget, patch-based game-theoretic baselines actually degrade in accuracy because their player set explodes. Because GEFI-PM operates directly on pixels via matrix multiplication, it is invariant to patch sizes and scales effortlessly.
- A smart bias-variance trade-off: Decoupling the image and text integrals in GEFI-PM introduces a slight theoretical bias relative to the exact Shapley Interaction Index. However, because it unlocks the full matrix of image-text combinations rather than just the main diagonal, it dramatically reduces estimation variance under finite query budgets—a classic case where practical statistical efficiency beats strict theoretical purity.
Key Results
Tested under an identical budget of $5,000$ queries against four state-of-the-art baselines (exCLIP, Faith-Shap, FIxLIP, and ProxySPEX):
- Fastest Execution: Despite operating at pixel resolution, GEFI-PM is the fastest method tested. On ViT-B/16, it runs in 3.95 seconds, beating the white-box exCLIP (4.54s) and crushing black-box peers like Faith-Shap (41.28s), ProxySPEX (36.89s), and FIxLIP (68.31s). On ViT-B/32, it takes just 1.51 seconds.
- Superior Localization: Across all combinations of models, datasets, and annotation types (bounding boxes and segmentation masks), GEFI-PM consistently achieves the highest Point Game Accuracy (PGA) and Intersection over Union (IoU).
- Strongest Perturbation Impact: In contrastive input perturbation tests (normalized Diff-ABPC), GEFI-PM takes first place across the board—for instance, scoring 0.1764 on COCO (ViT-B/16) compared to the runner-up FIxLIP at 0.1328 and white-box exCLIP at 0.0859.
Limitations and Future Work
- Architecture Specificity for Speed: While the general GEFI theory applies to any black-box model, its ultra-fast, high-resolution variant (GEFI-PM) specifically relies on the decoupled, dual-encoder structure of CLIP-like models. Applying general GEFI to monolithic early-fusion models in high dimensions would still face query-budget bottlenecks.
- Theoretical Bias in GEFI-PM: GEFI-PM deviates slightly from the exact Shapley Interaction Index. While the authors note you can mathematically reweight the scores to recover exact SII, doing so shrinks the effective sample size and hurts finite-budget performance.
- Future Directions: Because mask initialization happens offline, the authors note that integrating advanced sampling strategies (such as antithetic sampling or dynamic mask resizing) is a promising, orthogonal avenue to squeeze even more accuracy out of tight query budgets.
Summary updated