Using text to guide visual attention makes CLIP more robust to adversarial examples
Aligning attention between clean and adversarial images improves model robustness
π https://arxiv.org/abs/2410.21802
π― Original Problem:
Pre-trained vision-language models like CLIP are vulnerable to adversarial attacks where small image perturbations cause misclassification. Current solutions either sacrifice clean accuracy or provide limited robustness improvement.
-----
π§ Solution in this Paper:
β Introduces TGA-ZSR (Text-Guided Attention for Zero-Shot Robustness) with two key components:
β Attention Refinement module: Aligns text-guided attention from adversarial examples with clean examples
β Attention-based Model Constraint module: Maintains clean sample performance while improving robustness
β Uses text embeddings from frozen text encoder to guide visual attention during adversarial training
-----
π‘ Key Insights:
β Adversarial perturbations cause shifts in text-guided attention patterns
β Text guidance can help filter irrelevant information during adversarial attacks
β Simple attention alignment between clean and adversarial samples improves robustness
-----
π Results:
β 9.58% improvement in zero-shot robust accuracy over state-of-the-art across 16 datasets
β Maintains high clean accuracy (56.48%) while achieving 41.96% robust accuracy
β Effective against multiple attack types: PGD, AutoAttack, and CW attacks










