Proceedings

Robust, Generalizable Proactive Face-swapping Defense via Semantic Gradient Divergence

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 890-898.

https://doi.org/10.24963/ijcai.2026/100

Abstract

The rapid progress of identity-feature-based face-swapping technology has raised concerns about impersonation and privacy violations. Although proactive defenses aim to block identity extraction at the source, existing methods suffer from perceptible visual artifacts, poor generalization across diverse deepfake models, and vulnerability to post-processing techniques (e.g., diffusion purification, image compression, and transformations). This work proposes a robust, generalizable proactive face-swapping defense via semantic gradient divergence (SGD-Guard) to address these challenges. It introduces an integrated feature gallery that uses CLIP features and a generalized identity feature, obtained by iteratively refining heterogeneous identity features into a homogeneous representation. This framework facilitates our semantic distortion attack by leveraging consensus weighting to target specific facial attributes within a CLIP-identity joint embedding space, disrupting deepfake generation while preserving visual fidelity. Furthermore, to ensure robustness against purification and post-processing, this method incorporates a module that prioritizes critical transformations by exploiting directional discrepancies. Comprehensive experiments demonstrate that the method effectively defends against diverse face-swapping models with high cross-model transferability.

  1. [Athalye et al., 2018] Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In International conference on machine learning, pages 274-283. PMLR, 2018.
  2. [Baliah et al., 2025] Sanoojan Baliah, Qinliang Lin, Sheng- cai Liao, Xiaodan Liang, and Muhammad Haris Khan. Realistic and efficient face swapping: A unified approach with diffusion models. In 2025 IEEE/CVF Winter Confer- ence on Applications of Computer Vision (WACV), pages 1062-1071. IEEE, 2025.
  3. [Chen et al., 2020] Renwang Chen, Xuanhong Chen, Bing- bing Ni, and Yanhao Ge. Simswap: An efficient frame- work for high fidelity face swapping. In Proceedings of the 28th ACM international conference on multimedia, pages 2003-2011, 2020.
  4. [Chen et al., 2023] Xuanhong Chen, Bingbing Ni, Yutian Liu, Naiyuan Liu, Zhilin Zeng, and Hang Wang. Sim- swap++: Towards faster and high-quality identity swap- ping. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(1):576-592, 2023.
  5. [Deng et al., 2019] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular mar- gin loss for deep face recognition. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4690-4699, 2019.
  6. [Dong et al., 2023] Junhao Dong, Yuan Wang, Jianhuang Lai, and Xiaohua Xie. Restricted black-box adversar- ial attack against deepfake face swapping. IEEE Trans- actions on Information Forensics and Security, 18:2596- 2608, 2023.
  7. [Douze et al., 2024] Matthijs Douze, Alexandr Guzhva, Chengqi Deng, Jeff Johnson, Gergely Szilvasy, Pierre- Emmanuel Mazaré, Maria Lomeli, Lucas Hosseini, and Hervé Jégou. The faiss library. 2024.
  8. [Hu et al., 2022] Shengshan Hu, Xiaogeng Liu, Yechao Zhang, Minghui Li, Leo Yu Zhang, Hai Jin, and Lib- ing Wu. Protecting facial privacy: Generating adversarial identity masks via style-robust makeup transfer. In Pro- ceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 15014-15023, 2022.
  9. [Hu et al., 2024] Cong Hu, Yuanbo Li, Zhenhua Feng, and Xiaojun Wu. Toward transferable attack via adversarial diffusion in face recognition. IEEE Transactions on Infor- mation Forensics and Security, 19:5506-5519, 2024.
  10. [Huang et al., 2022] Hao Huang, Yongtao Wang, Zhaoyu Chen, Yuze Zhang, Yuheng Li, Zhi Tang, Wei Chu, Jing- dong Chen, Weisi Lin, and Kai-Kuang Ma. Cmua- watermark: A cross-model universal adversarial water- mark for combating deepfakes. In Proceedings of the AAAI conference on artificial intelligence, volume 36, pages 989-997, 2022.
  11. [Jeong et al., 2025] Jaehwan Jeong, Sumin In, Sieun Kim, Hannie Shin, Jongheon Jeong, Sang Ho Yoon, Jaewook Chung, and Sangpil Kim. Faceshield: Defending facial image against deepfake threats. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10364-10374, 2025.
  12. [Jia et al., 2022] Shuai Jia, Bangjie Yin, Taiping Yao, Shouhong Ding, Chunhua Shen, Xiaokang Yang, and Chao Ma. Adv-attribute: Inconspicuous and transferable adversarial attack on face recognition. Advances in Neural Information Processing Systems, 35:34136-34147, 2022.
  13. [Karras et al., 2017] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
  14. [Kim et al., 2025] Kihong Kim, Yunho Kim, Seokju Cho, Junyoung Seo, Jisu Nam, Kychul Lee, Seungryong Kim, and KwangHee Lee. Diffface: Diffusion-based face swapping with facial guidance. Pattern Recognition, 163:111451, 2025.
  15. [Komkov and Petiushko, 2021] Stepan Komkov and Alek- sandr Petiushko. Advhat: Real-world adversarial attack on arcface face id system. In 2020 25th international confer- ence on pattern recognition (ICPR), pages 819-826. IEEE, 2021.
  16. [Korshunova et al., 2017] Iryna Korshunova, Wenzhe Shi, Joni Dambre, and Lucas Theis. Fast face-swap using con- volutional neural networks. In Proceedings of the IEEE international conference on computer vision, pages 3677- 3685, 2017.
  17. [Lee et al., 2023] Isack Lee, Eungi Lee, and Seok Bong Yoo. Latent-ofer: Detect, mask, and reconstruct with latent vec- tors for occluded facial expression recognition. In Pro- ceedings of the IEEE/CVF International Conference on Computer Vision, pages 1536-1546, 2023.
  18. [Lee et al., 2025] Eungi Lee, Jae Hyun Yoon, and Seok Bong Yoo. Scol: Style code orchestration in latent space for proactive face-swapping defense. In Proceedings of the 33rd ACM International Conference on Multimedia, pages 11472-11481, 2025.
  19. [Lei et al., 2025] Chun Tong Lei, Hon Ming Yam, Zhongliang Guo, Yifei Qian, and Chun Pong Lau. Instant adversarial purification with adversarial consis- tency distillation. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 24331-24340, 2025.
  20. [Lestriandoko et al., 2022] Nova Hadi Lestriandoko, Ray- mond Veldhuis, and Luuk Spreeuwers. The contribution of different face parts to deep face recognition. Frontiers in Computer Science, 4:958629, 2022.
  21. [Lyu et al., 2023] Yueming Lyu, Yue Jiang, Ziwen He, Bo Peng, Yunfan Liu, and Jing Dong. 3d-aware ad- versarial makeup generation for facial privacy protection. IEEE Transactions on Pattern Analysis and Machine In- telligence, 45(11):13438-13453, 2023.
  22. [Ma et al., 2023] Haotian Ma, Ke Xu, Xinghao Jiang, Zeyu Zhao, and Tanfeng Sun. Transferable black-box attack against face recognition with spatial mutable adversarial patch. IEEE Transactions on Information Forensics and Security, 18:5636-5650, 2023.
  23. [Meng et al., 2021] Qiang Meng, Chixiang Zhang, Xiao- qiang Xu, and Feng Zhou. Learning compatible embed- dings. In Proceedings of the IEEE/CVF International Con- ference on Computer Vision, pages 9939-9948, 2021.
  24. [Nie et al., 2022] Weili Nie, Brandon Guo, Yujia Huang, Chaowei Xiao, Arash Vahdat, and Anima Anandkumar. Diffusion models for adversarial purification. arXiv preprint arXiv:2205.07460, 2022.
  25. [Qu et al., 2024] Zuomin Qu, Zuping Xi, Wei Lu, Xi- angyang Luo, Qian Wang, and Bin Li. Df-rap: A robust adversarial perturbation for defending against deepfakes in real-world social network scenarios. IEEE Transactions on Information Forensics and Security, 19:3943-3957, 2024.
  26. [Rosberg et al., 2023] Felix Rosberg, Eren Erdal Aksoy, Fernando Alonso-Fernandez, and Cristofer Englund. Facedancer: Pose-and occlusion-aware high fidelity face swapping. In Proceedings of the IEEE/CVF winter con- ference on applications of computer vision, pages 3454- 3463, 2023.
  27. [Schroff et al., 2015] Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 815-823, 2015.
  28. [Sun et al., 2024] Yuhao Sun, Lingyun Yu, Hongtao Xie, Ji- aming Li, and Yongdong Zhang. Diffam: Diffusion-based adversarial makeup transfer for facial privacy protection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 24584-24594, 2024.
  29. [Tao et al., 2025] Renshuai Tao, Ziheng Qin, Yifu Ding, Chuangchuang Tan, Jiakai Wang, and Wei Wang. Unlock- ing the potential of lightweight quantized models for deep- fake detection. In Proceedings of the Thirty-Fourth Inter- national Joint Conference on Artificial Intelligence, pages 520-528, 2025. IJCAI
  30. [Van Le et al., 2023] Thanh Van Le, Hao Phung, Thuan Hoang Nguyen, Quan Dao, Ngoc N Tran, and Anh Tran. Anti-dreambooth: Protecting users from personalized text-to-image synthesis. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2116-2127, 2023.
  31. [Wang et al., 2020] Chien-Yi Wang, Ya-Liang Chang, Shang-Ta Yang, Dong Chen, and Shang-Hong Lai. Uni- fied representation learning for cross model compatibility. arXiv preprint arXiv:2008.04821, 2020.
  32. [Wang et al., 2021] Yuhan Wang, Xu Chen, Junwei Zhu, Wenqing Chu, Ying Tai, Chengjie Wang, Jilin Li, Yongjian Wu, Feiyue Huang, and Rongrong Ji. Hififace: 3d shape and semantic prior guided high fidelity face swapping. arXiv preprint arXiv:2106.09965, 2021. IJCAI
  33. [Wang et al., 2022] Run Wang, Ziheng Huang, Zhikai Chen, Li Liu, Jing Chen, and Lina Wang. Anti-forgery: Towards a stealthy and robust deepfake disruption attack via adver- sarial perceptual-aware perturbations. In Proceedings of the Thirty-First International Joint Conference on Artifi- cial Intelligence, IJCAI-22, pages 761-767, 2022. IJCAI
  34. [Wang et al., 2025] Tianyi Wang, Shuaicheng Niu, Harry Cheng, Xiao Zhang, and Yinglong Wang. Nullswap: Proactive identity cloaking against deepfake face swap- ping. In Proceedings of the IEEE/CVF International Con- ference on Computer Vision, pages 9945-9954, 2025.
  35. [Xue et al., 2023] Haotian Xue, Alexandre Araujo, Bin Hu, and Yongxin Chen. Diffusion-based adversarial sam- ple generation for improved stealthiness and controllabil- ity. Advances in Neural Information Processing Systems, 36:2894-2921, 2023.
  36. [Yuan et al., 2022] Zheng Yuan, Jie Zhang, and Shiguang Shan. Adaptive image transformations for transfer-based adversarial attack. In European Conference on Computer Vision, pages 1-17. Springer, 2022.
  37. [Zhang et al., 2024] Yunming Zhang, Dengpan Ye, Caiyun Xie, Long Tang, Xin Liao, Ziyi Liu, Chuanxi Chen, and Jiacheng Deng. Dual defense: Adversarial, traceable, and invisible robust watermarking against face swapping. IEEE Transactions on Information Forensics and Security, 19:4628-4641, 2024.
  38. [Zhao et al., 2023] Wenliang Zhao, Yongming Rao, Weikang Shi, Zuyan Liu, Jie Zhou, and Jiwen Lu. Diffswap: High-fidelity and controllable face swapping via 3d-aware masked diffusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8568-8577, 2023.
  39. [Zheng et al., 2022] Yinglin Zheng, Hao Yang, Ting Zhang, Jianmin Bao, Dongdong Chen, Yangyu Huang, Lu Yuan, Dong Chen, Ming Zeng, and Fang Wen. General facial representation learning in a visual-linguistic manner. In Proceedings of the IEEE/CVF conference on computer vi- sion and pattern recognition, pages 18697-18709, 2022.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards