LocalStyleFool: Regional Video Style Transfer Attack Using Segment Anything Model

Yuxin Cao, Jinghao Li, Xi Xiao, Derui Wang, Minhui Xue, Hao Ge, Wei Liu, Guangwu Hu

Introduction

Deep Neural Networks (DNNs) for video recognition have become integral to various applications but remain highly vulnerable to adversarial attacks. These attacks typically fall into two categories: restricted attacks, which use imperceptible pixel changes but require high query counts in black-box settings, and unrestricted attacks, which use style transfer or patches to improve efficiency at the cost of visual naturalness. Previous unrestricted methods often produce "counterfactual" artifacts, such as unnatural skin tones, making them easily detectable by human observers.

LocalStyleFool addresses this gap by introducing a regional style-transfer attack. By leveraging the Segment Anything Model (SAM), the attack targets specific semantic regions rather than the entire frame, achieving a 100% success rate while appearing significantly more natural and temporally consistent to human observers than previous methods.

Methodology

The LocalStyleFool framework consists of several key stages designed to create effective and stealthy adversarial videos by moving from global to regional style transfer.

The LocalStyleFool pipeline, featuring SAM-based mask generation, local style transfer, and adversarial finetuning.

Mask Generation and Selection

The process begins with Mask Generation, where the Segment Anything Model (SAM) segments the first frame of a video into distinct semantic regions (e.g., a person, a ball, or the background). To identify the most impactful regions for the attack, the authors use an Associative Selection Criterion. This criterion balances Grad-CAM importance—identifying regions the AI model focuses on—with the regional area to ensure the style change is significant enough to trigger misclassification.

Temporal Consistency and Style Transfer

To ensure the attack remains consistent across the video and avoids flickering, the Track Anything Model (TAM) is employed to track the selected masks across all frames. Regional Style Transfer is then applied, where styles extracted from target-class videos are mapped onto the selected regions. This ensures that only specific parts of the scene are altered, maintaining the original context of the rest of the video.

Adversarial Fine-tuning

The final stage involves Adversarial Fine-tuning. Using the Natural Evolution Strategy (NES) and Projected Gradient Descent (PGD), the stylized video is subtly adjusted to ensure it successfully fools the target black-box model while minimizing perceptible changes.

Experiments and Results

The effectiveness of LocalStyleFool was evaluated on three major benchmarks: UCF-101, HMDB-51, and Kinetics-700. The latter was used specifically to demonstrate the attack's scalability to modern, high-resolution video content.

Quantitative Performance

LocalStyleFool achieved a 100% Attack Success Rate (ASR) across various architectures, including C3D, I3D, and R3D. Notably, the method demonstrated a high "One-Query ASR," where the initial regional style transfer alone was often sufficient to fool the model immediately without iterative optimization.

Qualitative and Human Evaluation

A user study involving 100 participants confirmed the superiority of LocalStyleFool in terms of visual quality.

Qualitative comparison of untargeted attacks. LocalStyleFool maintains higher visual naturalness compared to global style transfer methods.

Participants rated LocalStyleFool significantly higher for naturalness (3.45/5) compared to the global StyleFool method (3.06/5). Furthermore, 34% of users were unable to distinguish the adversarial videos from the original clean videos, highlighting the stealth of the regional approach.

Discussion and Conclusion

LocalStyleFool demonstrates that regional styling is a powerful tool for creating adversarial examples that are both query-efficient and visually convincing. By styling only backgrounds or specific objects, the resulting videos appear as if they were captured under different lighting conditions rather than being intentionally manipulated. This work highlights how zero-shot foundation models like SAM can be utilized to create more sophisticated and stealthy adversarial attacks.

While highly effective, the authors note that future defenses might focus on detecting color transition smoothness at region boundaries. Future work may also explore the integration of Large Language Models (LLMs) to select semantically meaningful styles, further enhancing the naturalness of the attacks.

Summary updated

BibTeX
@inproceedings{cao2024localstylefool,
  author = {Yuxin Cao and Jinghao Li and Xi Xiao and Derui Wang and Minhui Xue and Hao Ge and Wei Liu and Guangwu Hu},
  title = {{LocalStyleFool: Regional Video Style Transfer Attack Using Segment Anything Model}},
  booktitle = {SP (Workshops)},
  year = {2024},
  url = {https://openreview.net/forum?id=JBNJAvf5qP},
}
Figure