VideoPure: Diffusion-based Adversarial Purification for Video Recognition

Kaixun Jiang, Zhaoyu Chen, Jiyuan Fu, Lingyi Hong, Jinglun Li +1 more
1/25/2025
cs.CV

Official code: deep-kaixun/VideoPure (9 stars, last commit 2024-12-17).

Abstract

Recent work indicates that video recognition models are vulnerable to adversarial examples, posing a serious security risk to downstream applications. However, current research has primarily focused on adversarial attacks, with limited work exploring defense mechanisms. Furthermore, due to the spatial-temporal complexity of videos, existing video defense methods face issues of high cost, overfitting, and limited defense performance. Recently, diffusion-based adversarial purification methods have achieved robust defense performance in the image domain. However, due to the additional temporal dimension in videos, directly applying these diffusion-based adversarial purification methods to the video domain suffers performance and efficiency degradation. To achieve an efficient and effective video adversarial defense method, we propose the first diffusion-based video purification framework to improve video recognition models' adversarial robustness: VideoPure. Given an adversarial example, we first employ temporal DDIM inversion to transform the input distribution into a temporally consistent and trajectory-defined distribution, covering adversarial noise while preserving more video structure. Then, during DDIM denoising, we leverage intermediate results at each denoising step and conduct guided spatial-temporal optimization, removing adversarial noise while maintaining temporal consistency. Finally, we input the list of optimized intermediate results into the video recognition model for multi-step voting to obtain the predicted class. We investigate the defense performance of our method against black-box, gray-box, and adaptive attacks on benchmark datasets and models. Compared with other adversarial purification methods, our method overall demonstrates better defense performance against different attacks. Our code is available at https://github.com/deep-kaixun/VideoPure.

View on arXivView PDF

Code Implementations(1)

90PythonDec 12, 20241 years ago

Similar Papers

Cite this paper

@article{jiang2025videopure,
  title  = {VideoPure: Diffusion-based Adversarial Purification for Video Recognition},
  author = {Kaixun Jiang and Zhaoyu Chen and Jiyuan Fu and Lingyi Hong and Jinglun Li and Wenqiang Zhang},
  year   = {2025},
  eprint = {2501.14999},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.14999v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.14999.svg)](https://codeofpaper.com/paper/2501.14999)

Discussion