Not All Attention Heads Are What You Need: Refining CLIP's Image Representation with Attention Ablation
This paper investigates the role of attention heads in CLIP's image encoder. Building on interpretability studies, we conduct an exhaustive analysis and find that certain heads, distributed across layers, are detrimental to the resulting representations. To mitigate their impact, we propose a simple yet effective Attention Ablation Technique (AAT) that suppresses selected heads by directly manipulating their attention weights. By incorporating two complementary strategies tailored to different application scenarios, AAT enables the systematic identification and ablation of harmful heads with minimal overhead. Experiments show that AAT consistently improves downstream performance across diverse domains, boosting recall by up to 11.1% on cross-modal retrieval benchmarks. These results highlight that AAT can effectively refine large-scale VLMs with virtually no extra inference cost, while yielding semantically meaningful patterns that align with existing interpretability findings.
Code (0)
등록된 구현이 없습니다.
Tasks
Cross-Modal RetrievalSimilar Papers 제목 키워드 기반
Quantifying Interpretability in CLIP Models with Concept Consistency
CLIP is one of the most popular foundational models and is heavily used for many vision-language tasks. However, little is known about the inner workings of CLIP. While recent work has proposed decomposition-based interp…
In-Context LearningInterpreting CLIP's Image Representation via Text-Based Decomposition
We investigate the CLIP image encoder by analyzing how individual model components affect the final representation. We decompose the image representation as a sum across individual image patches, model layers, and attent…
Attention Head Purification: A New Perspective to Harness CLIP for Domain Generalization
Domain Generalization (DG) aims to learn a model from multiple source domains to achieve satisfactory performance on unseen target domains. Recent works introduce CLIP to DG tasks due to its superior image-text alignment…
Domain GeneralizationPrompt LearningQuantifying and Enabling the Interpretability of CLIP-like Models
CLIP is one of the most popular foundational models and is heavily used for many vision-language tasks. However, little is known about the inner workings of CLIP. To bridge this gap we propose a study to quantify the int…
DisentanglementIn-Context LearningCLAP: Isolating Content from Style through Contrastive Learning with Augmented Prompts
Contrastive vision-language models, such as CLIP, have garnered considerable attention for various dowmsteam tasks, mainly due to the remarkable ability of the learned features for generalization. However, the features t…
Contrastive LearningData AugmentationImage AugmentationText Augmentation