TAME: Test-Time Adversarial Prompt Tuning via Mixture-of-Experts for Vision-Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Xin, Wang, Yixu, Zhang, Jiaming, Wang, Ruofan, Yu, Jiaqi, Chen, Kai, Chen, Jingjing, Ma, Xingjun, Jiang, Yu-Gang
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911692259065856
author Wang, Xin
Wang, Yixu
Zhang, Jiaming
Wang, Ruofan
Yu, Jiaqi
Chen, Kai
Chen, Jingjing
Ma, Xingjun
Jiang, Yu-Gang
author_facet Wang, Xin
Wang, Yixu
Zhang, Jiaming
Wang, Ruofan
Yu, Jiaqi
Chen, Kai
Chen, Jingjing
Ma, Xingjun
Jiang, Yu-Gang
contents Large-scale pre-trained Vision-Language models (VLMs), such as CLIP, exhibit strong zero-shot generalization, yet remain highly vulnerable to imperceptible adversarial perturbations, raising serious safety concerns for open-world deployment. To enhance robustness without requiring downstream task-specific retraining, we propose TAME, a novel test-time defense. Building upon our prior Test-Time Adversarial Prompt Tuning (TAPT), TAME introduces an architectural reformulation by replacing TAPT's single adaptive prompt with an input-conditioned Mixture-of-Experts (MoE) framework, enabling more expressive and adaptive defense. Specifically, TAME maintains a bank of learnable expert prompts and employs an input-dependent routing mechanism to aggregate a customized prompt mixture for each unlabeled test sample at inference time. This test-time defense mechanism is driven by three unsupervised objectives: (1) multi-view prediction entropy minimization, (2) layer-wise alignment of visual token statistics to precomputed clean and adversarial reference distributions, and (3) MoE regularization for balanced expert utilization and prompt diversity. We evaluated TAME on 11 benchmark datasets, including ImageNet and 10 additional zero-shot datasets. The results show that TAME improves the zero-shot adversarial robustness of the original CLIP by at least 49.1% under AutoAttack while largely preserving generalization on clean samples. TAME also consistently outperforms existing adversarial prompt tuning methods across multiple prompt designs, yielding an average robustness gain of at least 30.2%.
format Preprint
id arxiv_https___arxiv_org_abs_2605_17577
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle TAME: Test-Time Adversarial Prompt Tuning via Mixture-of-Experts for Vision-Language Models
Wang, Xin
Wang, Yixu
Zhang, Jiaming
Wang, Ruofan
Yu, Jiaqi
Chen, Kai
Chen, Jingjing
Ma, Xingjun
Jiang, Yu-Gang
Computer Vision and Pattern Recognition
Large-scale pre-trained Vision-Language models (VLMs), such as CLIP, exhibit strong zero-shot generalization, yet remain highly vulnerable to imperceptible adversarial perturbations, raising serious safety concerns for open-world deployment. To enhance robustness without requiring downstream task-specific retraining, we propose TAME, a novel test-time defense. Building upon our prior Test-Time Adversarial Prompt Tuning (TAPT), TAME introduces an architectural reformulation by replacing TAPT's single adaptive prompt with an input-conditioned Mixture-of-Experts (MoE) framework, enabling more expressive and adaptive defense. Specifically, TAME maintains a bank of learnable expert prompts and employs an input-dependent routing mechanism to aggregate a customized prompt mixture for each unlabeled test sample at inference time. This test-time defense mechanism is driven by three unsupervised objectives: (1) multi-view prediction entropy minimization, (2) layer-wise alignment of visual token statistics to precomputed clean and adversarial reference distributions, and (3) MoE regularization for balanced expert utilization and prompt diversity. We evaluated TAME on 11 benchmark datasets, including ImageNet and 10 additional zero-shot datasets. The results show that TAME improves the zero-shot adversarial robustness of the original CLIP by at least 49.1% under AutoAttack while largely preserving generalization on clean samples. TAME also consistently outperforms existing adversarial prompt tuning methods across multiple prompt designs, yielding an average robustness gain of at least 30.2%.
title TAME: Test-Time Adversarial Prompt Tuning via Mixture-of-Experts for Vision-Language Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2605.17577