arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.00537cs.CVcs.AIcs.LG
收藏

并非所有注意力头都是你需要的:通过注意力消融优化CLIP的图像表征

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

Intellifusion Inc.(Intellifusion公司);Northwest Polytechnical University(西北工业大学);Harbin Institute of Technology(哈尔滨工业大学)

Feng Lin, Marco Chen, Haokui Zhang, Xiaotian Yu, Guangming Lu, Rong Xiao

AI总结:

针对CLIP图像编码器中部分注意力头损害表征质量的问题,本文提出低开销的注意力消融技术AAT,可在几乎无额外推理成本的前提下稳定提升跨领域下游任务性能。

摘要:

本文研究了CLIP图像编码器中注意力头的作用。基于可解释性研究,我们开展了详尽分析,发现分布在不同层中的特定注意力头会损害最终生成的表征质量。为缓解这类注意力头的负面影响,我们提出了一种简单高效的注意力消融技术(Attention Ablation Technique, AAT),该技术通过直接操控注意力权重来抑制选定的注意力头。通过搭配两种针对不同应用场景设计的互补策略,AAT能够以极低的开销系统性地识别并消融有害注意力头。实验表明,AAT在跨多个领域的下游任务上均能稳定提升性能,在跨模态检索基准上召回率最高提升11.1%。这些结果表明,AAT几乎不会带来额外推理成本即可有效优化大规模视觉语言模型(VLM),同时还能生成与现有可解释性研究结论一致的语义可解释模式。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑