Introduction
Vision-Language Models (VLMs) like CLIP have revolutionized zero-shot image understanding. However, these models possess a significant vulnerability: adversarial attacks. Minimal, human-imperceptible perturbations can drastically alter model predictions, posing a major security risk. Traditional defenses, such as full adversarial fine-tuning, are computationally prohibitive and often lead to "catastrophic forgetting" of the model's pre-trained knowledge.
The Structural Gap in VLM Defense
Existing lightweight adaptation methods, like Prompt Tuning, attempt to defend models by optimizing a small set of input vectors. While efficient, these methods often lack the structural capacity to repair distorted features deep within the model's layers. The authors identify this as a "structural gap," where shallow input-side adjustments are insufficient against complex adversarial noise.
NAP-Tuning: Internal Feature Rectification
To address this, the authors propose Neural Augmented Prompt Tuning (NAP-Tuning). This framework shifts the focus from input alignment to internal feature purification.
Key Components:
- Neural Augmentors & TokenRefiners: NAP-Tuning inserts lightweight "TokenRefiners"—two-layer neural networks with residual connections—directly into the transformer blocks of a frozen backbone. These act as internal "purifiers" that reconstruct clean feature representations from adversarial noise.
- Multi-modal, Multi-layer Architecture: Unlike previous methods, NAP-Tuning applies these refiners across both visual and textual pathways and throughout multiple layers of the model, providing a deep-seated defense mechanism.
- Efficiency: By keeping the massive pre-trained weights of the VLM frozen and only training the lightweight refiners, NAP-Tuning remains highly efficient compared to full fine-tuning.
Experimental Evaluation
The researchers evaluated NAP-Tuning across 11 diverse datasets, including ImageNet, specialized domains (satellite imagery, aircraft, textures), and action recognition (UCF101). Robustness was tested against rigorous benchmarks, including PGD-100, M-Attack, and the industry-standard AutoAttack.
Results and Discussion
NAP-Tuning demonstrates a significant leap in adversarial robustness. On the AutoAttack benchmark, it outperformed existing baselines by over 32% on the ViT-B16 architecture.
Key Findings:
- Robustness vs. Intelligence: Unlike full fine-tuning (e.g., TeCoA), which can cause a 30%+ drop in clean accuracy, NAP-Tuning maintains high performance on unperturbed data while building a robust "immune system" against attacks.
- Attention Stability: Visualizations using EigenCAM reveal that NAP-Tuning keeps the model's attention focused on relevant objects, whereas undefended models are easily distracted by adversarial noise in the background.
- Modality Synergy: Adding refiners to the text encoder, even for image-based attacks, allows text embeddings to adapt and better match purified visual features, enhancing overall system resilience.
Conclusion
NAP-Tuning provides a scalable and efficient way to harden VLMs against adversarial threats. By integrating dedicated neural capacity for feature purification within a frozen backbone, it achieves state-of-the-art robustness without sacrificing general intelligence. Future work may explore adaptive refiners that dynamically adjust purification strength based on the detected level of perturbation.
Summary updated