atlas

Research map / Vision-language and multimodal / Human and embodied modeling

Gradient-based Visual Explanation for Transformer-based CLIP

ICML 2024 · Vision-language and multimodal › Human and embodied modeling · approach: Language-grounded scene text and structure

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Grad-ECLIP, a training-free gradient-based visual explanation method for CLIP that weights token value features by channel gradients and loosened spatial attention to produce image-text matching heat maps.

Problem

Interpreting which image regions or words drive CLIP's image-text matching score; existing Transformer explanation methods (attention rollout, GAME, Grad-CAM, similarity-map methods) give sparse or noisy maps for CLIP.

Approach

Decomposes CLIP's last attention layer so the matching score is approximately linear in value features; channel weights come from gradients of the similarity w.r.t. the attention output, and spatial weights come from a loosened (non-softmax) query-key similarity normalized to [0,1], yielding result-specific heat maps without modifying or training CLIP.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Grad-ECLIP instead of CLIPSurgeryCLIP ViT-B/16 explanations · ImageNet val (ground-truth prompt)Deletion AUC @1: 0.3115 -> 0.2464Helped
Use Grad-ECLIP instead of CLIPSurgeryCLIP ViT-B/16 explanations · ImageNet val (ground-truth prompt)Insertion AUC @1: 0.3832 -> 0.3838Helped
Use Grad-ECLIP instead of GAMECLIP ViT-B/16 text explanations · MS COCO Karpathy valDeletion AUC (image retrieval): 0.1083 -> 0.0996Helped
Use Grad-ECLIP instead of GAMECLIP ViT-B/16 text explanations · MS COCO Karpathy valInsertion AUC (text retrieval): 0.2301 -> 0.2536Helped
Use loosened spatial weights wi instead of setting wi = 1 (ablation)Grad-ECLIP · ImageNet val (ground-truth prompt)Deletion AUC @1: 0.2535 -> 0.2464Helped
Use loosened spatial weights wi instead of setting wi = 1 (ablation)Grad-ECLIP · ImageNet val (ground-truth prompt)Insertion AUC @1: 0.3715 -> 0.3838Helped
Use loosened spatial weights wi instead of setting wi = 1 (ablation)Grad-ECLIP · MS COCO Karpathy valDeletion AUC (image retrieval): 0.1116 -> 0.0996Helped
Use loosened spatial weights wi instead of setting wi = 1 (ablation)Grad-ECLIP · MS COCO Karpathy valInsertion AUC (text retrieval): 0.2361 -> 0.2536Helped
Use loosened spatial weights wi instead of setting wi = 1 (ablation)Grad-ECLIP · ImageNet-S valPoint Game: 0.8356 -> 0.8899Helped
Use loosened spatial weights wi instead of setting wi = 1 (ablation)Grad-ECLIP · ImageNet-S valPixel accuracy: 0.7365 -> 0.7056Hurt
Use loosened spatial weights wi instead of setting wi = 1 (ablation)Grad-ECLIP · ImageNet-S valmaskIoU: 0.3314 -> 0.2869Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet MS COCO ImageNet-S CLEVR

Benchmarks: ImageNet MS COCO ImageNet-S

Metrics: deletion AUC insertion AUC Point Game PG-energy pixel accuracy AP maskIoU processing time

Baselines: raw attention Rollout Grad-CAM GAME MaskCLIP CLIPSurgery M2IB RISE

Builds on: Grad-CAM Attention Rollout GAME MaskCLIP CLIPSurgery

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy