paper-with-me

홈 › Papers

Not All Attention Heads Are What You Need: Refining CLIP's Image Representation with Attention Ablation

2025-07-01 · Feng Lin, Marco Chen, Haokui Zhang, Xiaotian Yu, Guangming Lu, Rong Xiao arxiv

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.

📄 PDF Abstract BibTeX arXiv:2507.00537

Code (0)

등록된 구현이 없습니다.

Tasks

Cross-Modal Retrieval

Similar Papers 제목 키워드 기반

Quantifying Interpretability in CLIP Models with Concept Consistency

2025-03-14 · Avinash Madasu, Vasudev Lal, Phillip Howard

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 Learning

Interpreting CLIP's Image Representation via Text-Based Decomposition

2023-10-09 · Yossi Gandelsman, Alexei A. Efros, Jacob Steinhardt

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

2024-12-10 · Yingfan Wang, Guoliang Kang

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 Learning

Quantifying and Enabling the Interpretability of CLIP-like Models

2024-09-10 · Avinash Madasu, Yossi Gandelsman, Vasudev Lal, Phillip Howard

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 Learning

CLAP: Isolating Content from Style through Contrastive Learning with Augmented Prompts

2023-11-28 · Yichao Cai, Yuhang Liu, Zhen Zhang, Javen Qinfeng Shi

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