Introduction
Adversarial transferability is a critical metric for evaluating the robustness of deep learning models. It allows attackers to generate a perturbation on a known surrogate model and successfully fool an unknown, black-box target model. While this transferability is well-documented between static image models, it often fails when transferring attacks from image models to video models.
The core issue is that standard image models—like Vision Transformers (ViTs) or CLIP—are "blind" to time. They do not capture motion dynamics, object changes over frames, or shifting viewpoints. Consequently, an attack optimized on a static image model lacks the "temporal gradients" needed to consistently fool a video model that processes sequences of frames. This paper introduces a method to bridge this gap. By inducing "dynamic cues" into frozen image models via learnable temporal prompts, the researchers significantly boost the transferability of adversarial perturbations from simple image surrogates to complex, black-box video models.
Methodology: Temporal Prompt Adaptation
To give image models "temporal eyes" without the massive computational cost of retraining them from scratch, the authors propose a parameter-efficient approach called Temporal Prompt Adaptation.
Instead of fine-tuning the entire image model, the pre-trained weights (e.g., from ImageNet or CLIP) remain frozen while a small set of learnable components is introduced:
- Transformation $T(\cdot)$: A single self-attention block processes $t$ frames of a video to produce $t$ "temporal tokens."
- Temporal Prompts: These tokens are concatenated with the original "spatial tokens" (the image patches) and passed through the frozen ViT.
- Task-Specific Heads: A temporal head is added to handle video classification, while the original spatial head remains intact.
During the attack phase, the adversarial perturbation is optimized using a dual-loss objective. One part of the loss targets the supervised temporal cues (to fool the motion logic), while the other is a self-supervised loss ensuring the perturbation disrupts the underlying spatial representations.
Key Insights and Discoveries
Image Models are "Secretly" Good Video Surrogates You do not need a specialized 3D convolutional network or divided space-time attention to attack a video model. A standard ViT, once equipped with temporal prompts, becomes a highly effective surrogate. Furthermore, this approach is highly parameter-efficient. The authors only trained about 7 million parameters (the prompts and transformation) to adapt a model, compared to the 121 million parameters required for a full video model like TimesFormer.
The "Scale-Space" Trick for Static Images One of the most surprising findings is that this logic applies to static images as well. By treating different spatial resolutions (scale-space) as a form of "dynamic" change, the authors mimicked dynamics on static images. Learning prompts across different resolutions (e.g., 96x96 to 224x224) significantly improves adversarial transferability to other image models. This suggests that "motion" and "scale changes" share similar feature spaces in deep networks.
CLIP’s Unique Vulnerability While CLIP is excellent at adapting to video tasks, its adversarial perturbations often contain "textual imprints" due to its language-vision pre-training. These perturbations do not transfer as well to purely vision-based models compared to self-supervised models like DINO.
Key Results
The researchers evaluated their approach across a diverse set of benchmarks, including video datasets (Kinetics-400, UCF-101, HMDB-51), image datasets (ImageNet-1k), and 3D/multi-view datasets (ModelNet40).
- Image-to-Video Transfer: An iterative attack launched from a DeiT-B model equipped with temporal prompts reduced the top-1 accuracy of a black-box video model on Kinetics-400 by 35%.
- Image-to-Image Transfer: On ImageNet, the proposed method improved the "fool rate" against various architectures (including ResNets and other ViTs) by roughly 9% over current state-of-the-art transfer attacks.
- Cross-Task Success: The method successfully fooled models across different data modalities, including transferring attacks from 2D image models to 3D object classifiers.
Limitations and Future Work
While the method works across various ViT-based models (DeiT, DINO, CLIP), it relies heavily on the transformer architecture's ability to handle flexible token sequences. Its applicability to older, purely convolutional architectures is less direct. Additionally, the textual bias in CLIP-based adversaries presents an interesting challenge; future work could explore how to "de-bias" these perturbations to make them more universal. Finally, as this paper focuses entirely on the attack side, a natural next step for the community is to investigate whether these dynamic cues can be used to build more robust defenses for video models.
Summary updated