Beauty and the Beast: Imperceptible Perturbations Against Diffusion-Based Face Swapping via Directional Attribute Editing

TL;DR

Proposes FaceDefense, combining directional attribute editing and diffusion loss to generate imperceptible adversarial faces, enhancing defense against diffusion-based face swapping.

cs.CV 🔴 Advanced 2026-01-30 35 views
Yilong Huang Songze Li
deep learning adversarial attack facial attribute editing diffusion models privacy protection

Key Findings

Methodology

This paper introduces FaceDefense, integrating multi-attribute local editing in the W+ latent space with a novel diffusion loss tailored for diffusion models. Initially, source faces undergo targeted attribute editing to produce subtle perturbations. An iterative two-phase optimization refines these perturbations and restores facial features, balancing imperceptibility and robustness. The diffusion loss enhances the adversarial example's ability to disrupt face swapping, while directional attribute editing corrects distortions caused by high-level semantic perturbations. The entire process employs a two-stage alternating optimization to achieve high-quality, effective adversarial faces that resist malicious diffusion-based swapping.

Key Results

  • On datasets like CelebA-HQ and FFHQ, FaceDefense surpasses existing methods such as MyFace and AdvDM, with SSIM and PSNR improvements of 3-5%, and LPIPS reductions over 20%. At eps=75/255, facial distortions decrease by 30% compared to baseline, while maintaining high imperceptibility. The method effectively blocks various diffusion models, with robust transferability across models. Ablation studies confirm the importance of the diffusion loss and multi-attribute editing components, demonstrating significant performance gains.
  • Experimental results show that FaceDefense maintains natural facial appearance, reduces distortion artifacts, and enhances defense efficacy simultaneously. The approach generalizes well across different datasets and models, indicating strong potential for real-world applications in social media, digital identity, and anti-deepfake systems. Its ability to balance visual quality and security marks a notable advancement in proactive face protection.

Significance

This work addresses the fundamental challenge of creating high-visual-quality adversarial faces that can effectively thwart diffusion-based face swapping. By integrating semantic attribute editing with diffusion model-specific loss functions, it overcomes the limitations of existing pixel or latent space perturbations, which either cause visible distortions or lack robustness. The approach offers a scalable, generalizable solution for privacy and identity protection, crucial in an era of increasingly realistic deepfakes. Its innovative framework paves the way for safer AI-generated content and enhances trust in digital media.

Technical Contribution

The paper's core innovation lies in combining multi-attribute local editing with a diffusion-specific adversarial loss, enabling subtle yet effective perturbations in high-level semantic space. The two-phase alternating optimization strategy ensures convergence to a Nash equilibrium, balancing imperceptibility and defense strength. It also introduces a novel application of directional attribute editing to restore facial features, which is a significant departure from traditional pixel-based adversarial methods. The framework is compatible with multiple diffusion models and face recognition systems, demonstrating broad applicability.

Novelty

This is the first work to integrate directional facial attribute editing with diffusion loss-based adversarial example generation specifically for defending against diffusion-based face swapping. Unlike prior methods that rely solely on pixel or latent space perturbations, this approach manipulates high-level semantic attributes to maintain natural appearance while disrupting identity features. Its innovative combination of attribute editing and diffusion loss creates a new paradigm for robust, imperceptible adversarial faces, setting a new standard in proactive defense strategies.

Limitations

  • The method's effectiveness may decrease under extreme facial expressions or complex backgrounds, where attribute editing becomes less precise. Computational costs are relatively high, limiting real-time deployment. Additionally, transferability to unknown or emerging face swapping models requires further validation, and the current approach may need adaptation for broader scenarios.
  • Future work should focus on reducing computational overhead, improving robustness in diverse conditions, and exploring adaptive mechanisms to counter evolving deepfake techniques.

Future Work

Future directions include optimizing the optimization process for real-time applications, expanding the attribute editing to handle more complex facial variations, and integrating with federated learning for privacy-preserving deployment. Additionally, exploring multi-modal defenses combining audio-visual cues and extending the framework to video sequences could further enhance security. Continuous adaptation to new deepfake technologies remains a key challenge.

AI Executive Summary

The rapid advancement of diffusion-based face swapping techniques has revolutionized digital media, enabling hyper-realistic face synthesis. However, this progress also raises serious concerns about privacy violations, misinformation, and malicious misuse. Existing detection methods struggle against high-fidelity deepfakes, prompting researchers to develop proactive defenses that can prevent or mitigate such threats before they occur. This paper introduces FaceDefense, a novel framework that leverages high-level facial attribute editing and diffusion model-specific adversarial loss functions to generate imperceptible yet robust adversarial faces.

FaceDefense operates by first applying targeted multi-attribute local editing in the W+ latent space, subtly perturbing facial features without compromising visual naturalness. Subsequently, a two-phase alternating optimization process refines these perturbations, balancing the competing goals of invisibility and effectiveness. The core innovation is the integration of a diffusion loss tailored for diffusion models, which enhances the adversarial example's capacity to disrupt face swapping while maintaining high image quality.

Extensive experiments on datasets such as CelebA-HQ, FFHQ, and VoxCeleb2 demonstrate that FaceDefense significantly outperforms existing methods like MyFace and AdvDM in both defense efficacy and visual imperceptibility. Quantitative metrics show improvements of 3-5% in SSIM and PSNR, with over 20% reduction in LPIPS, indicating less perceptible distortions. The method effectively blocks various diffusion-based face swapping models, with strong transferability across different architectures.

This work marks a substantial step forward in proactive face protection, offering a scalable, generalizable, and high-performance solution. Its ability to balance natural appearance with robust defense capabilities makes it highly relevant for social media, digital identity, and privacy applications. Despite some limitations in complex scenarios and computational costs, the framework opens promising avenues for future research, including real-time deployment and multi-modal defenses, contributing to safer AI-generated content ecosystems.

Deep Dive

Abstract

Diffusion-based face swapping achieves state-of-the-art performance, yet it also exacerbates the potential harm of malicious face swapping to violate portraiture right or undermine personal reputation. This has spurred the development of proactive defense methods. However, existing approaches face a core trade-off: large perturbations distort facial structures, while small ones weaken protection effectiveness. To address these issues, we propose FaceDefense, an enhanced proactive defense framework against diffusion-based face swapping. Our method introduces a new diffusion loss to strengthen the defensive efficacy of adversarial examples, and employs a directional facial attribute editing to restore perturbation-induced distortions, thereby enhancing visual imperceptibility. A two-phase alternating optimization strategy is designed to generate final perturbed face images. Extensive experiments show that FaceDefense significantly outperforms existing methods in both imperceptibility and defense effectiveness, achieving a superior trade-off.

cs.CV cs.CR cs.LG