atlas

Research map / Vision-language and multimodal / CLIP and zero-shot

Interpreting CLIP's Image Representation via Text-Based Decomposition

ICLR 2024 · Vision-language and multimodal › CLIP and zero-shot · approach: Fine-grained improvements to CLIP · 4 citations (OpenAlex)

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.

Decomposes CLIP ViT image representations into per-layer, per-head, and per-patch contributions, uses text to label head output directions (TextSpan), and turns the patch decomposition into a zero-shot segmenter and spurious-cue remover.

Problem

CLIP's image representation is poorly understood: it is unclear what information is encoded and which components (layers, heads, image locations) produce it, limiting interpretability and debugging of spurious correlations.

Approach

Exploit the residual and attention structure of CLIP-ViT to write the image representation as a sum over heads and patch tokens, all living in the joint text-image space; greedily select text descriptions (TextSpan) that span each head's output variance to label head roles, and use per-token contributions as zero-shot segmentation heatmaps.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use image-token decomposition heatmaps for zero-shot segmentationCLIP · ImageNet-segmentationmIoU: 47.47 -> 54.50Helped
Ablate geolocation and image-location heads (ablation)CLIP ViT-L-14 · Waterbirdsworst-group accuracy: 47.7 -> 72.9Helped
Ablate property-specific heads (ablation)CLIP on Waterbirds · Waterbirdsaccuracy: 73.1 -> 84.2Helped
Project each head output to a subspace spanned by 60 TextSpan descriptions (ablation)CLIP ViT-L · ImageNet zero-shot classificationaccuracy: 75.25% -> 72.77%Hurt
Mean-ablate class-token contribution (ablation)CLIP ViT-B-16 · ImageNet zero-shot classificationaccuracy: 70.22 -> 69.37Hurt
Mean-ablate class-token contribution and MLPs (ablation)CLIP ViT-B-16 · ImageNet zero-shot classificationaccuracy: 70.22 -> 67.32Hurt
Mean-ablate class-token contribution (ablation)CLIP ViT-L-14 · ImageNet zero-shot classificationaccuracy: 75.25 -> 74.38Hurt
Mean-ablate class-token contribution and MLPs (ablation)CLIP ViT-L-14 · ImageNet zero-shot classificationaccuracy: 75.25 -> 73.87Hurt
Mean-ablate all MLP direct effects (ablation)CLIP image encoder · ImageNet zero-shot classificationaccuracy: 1%-3%Hurt
Mean-ablate early MSA layers, retaining the last 4 (ablation)CLIP image encoder · ImageNet zero-shot classificationaccuracyNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet validation set LAION-2B Waterbirds ImageNet-segmentation ChatGPT-generated text descriptions (3498 general, 28767 class-specific)

Benchmarks: ImageNet zero-shot classification Waterbirds ImageNet-segmentation

Metrics: top-1 accuracy worst-group accuracy pixel accuracy mIoU mAP

Baselines: LRP partial-LRP rollout raw attention GradCAM Waterbirds random head ablation

Builds on: CLIP ViT mean-ablation transformer residual decomposition

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