paper-with-me

홈 › Papers

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 and zeros-shot performance. Previous methods either utilize full fine-tuning or prompt-learning paradigms to harness CLIP for DG tasks. Those works focus on avoiding catastrophic forgetting of the original knowledge encoded in CLIP but ignore that the knowledge encoded in CLIP in nature may contain domain-specific cues that constrain its domain generalization performance. In this paper, we propose a new perspective to harness CLIP for DG, i.e., attention head purification. We observe that different attention heads may encode different properties of an image and selecting heads appropriately may yield remarkable performance improvement across domains. Based on such observations, we purify the attention heads of CLIP from two levels, including task-level purification and domain-level purification. For task-level purification, we design head-aware LoRA to make each head more adapted to the task we considered. For domain-level purification, we perform head selection via a simple gating strategy. We utilize MMD loss to encourage masked head features to be more domain-invariant to emphasize more generalizable properties/heads. During training, we jointly perform task-level purification and domain-level purification. We conduct experiments on various representative DG benchmarks. Though simple, extensive experiments demonstrate that our method performs favorably against previous state-of-the-arts.

📄 PDF Abstract BibTeX arXiv:2412.07226

Code (0)

등록된 구현이 없습니다.

Tasks

Domain GeneralizationPrompt Learning

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…
Focus 설명 없음

Similar Papers 제목 키워드 기반

CLIPure: Purification in Latent Space via CLIP for Adversarially Robust Zero-Shot Classification

2025-02-25 · Mingkun Zhang, Keping Bi, Wei Chen, Jiafeng Guo 외

In this paper, we aim to build an adversarially robust zero-shot image classifier. We ground our work on CLIP, a vision-language pre-trained encoder model that can perform zero-shot classification by matching an image wi…

Denoisingzero-shot-classificationZero-Shot Learning

Boosting ViT-based MRI Reconstruction from the Perspectives of Frequency Modulation, Spatial Purification, and Scale Diversification

2024-12-14 · Yucong Meng, Zhiwei Yang, Yonghong Shi, Zhijian Song

The accelerated MRI reconstruction process presents a challenging ill-posed inverse problem due to the extensive under-sampling in k-space. Recently, Vision Transformers (ViTs) have become the mainstream for this task, d…

Image RestorationMRI Reconstruction

Multi-Perspective Subimage CLIP with Keyword Guidance for Remote Sensing Image-Text Retrieval

2026-01-26 · Yifan Li, Shiying Wang, Jianqiang Huang arxiv

Vision-Language Pre-training (VLP) models like CLIP have significantly advanced Remote Sensing Image-Text Retrieval (RSITR). However, existing methods predominantly rely on coarse-grained global alignment, which often ov…

Text Retrieval

Adversarial Text Purification: A Large Language Model Approach for Defense

2024-02-05 · Raha Moraffah, Shubh Khandelwal, Amrita Bhattacharjee, Huan Liu

Adversarial purification is a defense mechanism for safeguarding classifiers against adversarial attacks without knowing the type of attacks or training of the classifier. These techniques characterize and eliminate adve…

Adversarial PurificationAdversarial TextLanguage ModelingLanguage Modelling+2

Improving Adversarial Robustness for 3D Point Cloud Recognition at Test-Time through Purified Self-Training

2024-09-23 · Jinpeng Lin, Xulei Yang, Tianrui Li, Xun Xu

Recognizing 3D point cloud plays a pivotal role in many real-world applications. However, deploying 3D point cloud deep learning model is vulnerable to adversarial attacks. Despite many efforts into developing robust mod…

Adversarial PurificationAdversarial Robustness