[Paper Review] OGAN: Disrupting Deepfakes with an Adversarial Attack that Survives Training
This paper introduces OGAN, a training-resistant adversarial attack that disrupts face-swapping deepfakes by injecting spatial-temporal distortions via a bilevel optimization framework. The method generates adversarial perturbations that persist even when the attack samples are included in the target model’s training data, outperforming prior attacks like the Distorting Attack in such scenarios.
Recent advances in autoencoders and generative models have given rise to effective video forgery methods, used for generating so-called "deepfakes". Mitigation research is mostly focused on post-factum deepfake detection and not on prevention. We complement these efforts by introducing a novel class of adversarial attacks---training-resistant attacks---which can disrupt face-swapping autoencoders whether or not its adversarial images have been included in the training set of said autoencoders. We propose the Oscillating GAN (OGAN) attack, a novel attack optimized to be training-resistant, which introduces spatial-temporal distortions to the output of face-swapping autoencoders. To implement OGAN, we construct a bilevel optimization problem, where we train a generator and a face-swapping model instance against each other. Specifically, we pair each input image with a target distortion, and feed them into a generator that produces an adversarial image. This image will exhibit the distortion when a face-swapping autoencoder is applied to it. We solve the optimization problem by training the generator and the face-swapping model simultaneously using an iterative process of alternating optimization. Next, we analyze the previously published Distorting Attack and show it is training-resistant, though it is outperformed by our suggested OGAN. Finally, we validate both attacks using a popular implementation of FaceSwap, and show that they transfer across different target models and target faces, including faces the adversarial attacks were not trained on. More broadly, these results demonstrate the existence of training-resistant adversarial attacks, potentially applicable to a wide range of domains.
Motivation & Objective
- To address the limitation of existing adversarial attacks on deepfakes, which fail when adversarial samples are included in training data.
- To develop a novel class of adversarial attacks—training-resistant attacks—that remain effective regardless of whether adversarial examples are part of the model’s training set.
- To design and evaluate a new attack method, OGAN, specifically optimized for robustness against retraining on adversarial data.
- To validate the effectiveness of OGAN and the prior Distorting Attack across multiple face-swapping models and unseen target faces.
- To demonstrate transferability and persistence of distortions in deepfake outputs under extended training
Proposed method
- Formulate the attack as a bilevel optimization problem where a generator and a face-swapping autoencoder are trained adversarially against each other.
- Train the generator to produce adversarial images that induce visible spatial-temporal distortions when processed by a face-swapping model.
- Use alternating optimization to iteratively update the generator and the target face-swapping model, simulating real-world adversarial dynamics.
- Introduce a loss function for the generator that prioritizes inducing disruptive distortions in the output of the face-swapping model.
- Apply the attack end-to-end to popular face-swapping implementations (e.g., FaceSwap) to evaluate transferability and robustness.
- Measure success using spatial-temporal distortion scores ($S_{tmp}$) and perceptual error ($E_{tmp}$) on deepfake outputs
Experimental results
Research questions
- RQ1Can adversarial attacks remain effective when the target deepfake model is retrained on adversarial samples that were used to craft the attack?
- RQ2How does the OGAN attack compare to the prior Distorting Attack in terms of robustness when adversarial samples are included in the training data?
- RQ3To what extent do these attacks transfer across different face-swapping models and target identities not seen during attack training?
- RQ4How does prolonged training of the target model affect the persistence of distortions introduced by the adversarial attack?
- RQ5Can training-resistant adversarial attacks be generalized to other generative models beyond face-swapping autoencoders?
Key findings
- OGAN maintains a high spatial-temporal distortion score ($S_{tmp} = 0.054$) even after 500,000 training iterations on adversarial data, demonstrating strong training resistance.
- The Distorting Attack also exhibits training resistance, achieving $S_{tmp} = 0.021$ after 500,000 iterations on adversarial data, though it is outperformed by OGAN.
- When adversarial samples are excluded from training, OGAN still achieves a significant $S_{tmp}$ score, indicating residual effectiveness even without training-specific optimization.
- Both OGAN and the Distorting Attack successfully transfer to unseen target faces and different face-swapping models, including dfl-h128, dfl-sae, and realface.
- The $S_{tmp}$ score stabilizes after approximately 300,000 training iterations, indicating convergence and sustained disruption despite extended training.
- Visual analysis confirms that distortions manifest as visible oscillations in deepfake videos, making the manipulation detectable to the human eye
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.