计算机科学 ›› 2026, Vol. 53 ›› Issue (11): 448-460.doi: 10.11896/jsjkx.250900010

• 信息安全 • 上一篇    下一篇

基于混合颜色空间与注意力机制的人脸伪造主动防御研究

黄晨曦, 芦天亮, 彭舒凡   

  1. 中国人民公安大学信息网络安全学院 北京 100038
  • 收稿日期:2025-09-01 修回日期:2025-12-14 出版日期:2026-11-15 发布日期:2026-11-10
  • 通讯作者: 芦天亮(lutianliang@ppsuc.edu.cn)
  • 作者简介:(1958747443@qq.com)
  • 基金资助:
    2024年度北京社科基金规划项目(24FXC017)

Research on Active Defense Against Face Forgery Based on Hybrid Color Space and AttentionMechanism

HUANG Chenxi, LU Tianliang, PENG Shufan   

  1. College of Information Network Security,People’s Public Security University of China,Beijing 100038,China
  • Received:2025-09-01 Revised:2025-12-14 Published:2026-11-15 Online:2026-11-10
  • About author:HUANG Chenxi,born in 2001,postgraduate,is a member of CCF(No.A20953G).His main research interests include deep forgery detection and cyber security.
    LU Tianliang,born in 1985,professor,Ph.D supervisor.His main research interests include cyber security and artificial intelligence,etc.
  • Supported by:
    2024 Planning Project of the Social Science Foundation of Beijing,China(24FXC017).

摘要: 人脸伪造主动防御在数字身份验证和媒体完整性保护等众多现实场景中发挥着至关重要的作用。然而,现有防御方法过于注重防御性能,忽视了图像的视觉质量以及防御效果的鲁棒性,难以适应多模型以及各种图像失真带来的差异变化,因此防御效果不佳。为此,提出了一种基于通用对抗扰动的主动防御方法。具体而言,采用改进的投影梯度下降算法结合RGB与HSV混合颜色空间转换生成对抗扰动,通过双重掩码融合策略(DMFS)限制扰动于面部关键区域,提高图像的视觉质量;设计了自适应多重数据增强框架(AMAF)来增强扰动对图像压缩、模糊等失真的抵抗性,提升模型防御能力;最终利用Swin Transformer提取各模型的扰动特征,生成注意力图进行加权融合,并通过特征级损失优化,构建适用于多种模型的通用扰动。在名人面部属性数据集CelebA、无约束面部数据集LFW和Radboud面孔数据集上进行的实验表明,该方法对4个模型的平均防御成功率达到98.85%,高于基线模型,其中AttGAN模型的防御成功率较基线模型提高了12%;受保护图像在峰值信噪比、结构相似性指数和欧几里得范数等指标上的表现分别较基准模型提高12.90%,16.40%和34.37%,在图像失真干扰下的防御成功率相较于基线模型提高了26%。该方法在防御多种人脸图像伪造模型时,不仅保持了对抗图像的视觉质量,节省了计算资源,还能在图像失真情况下维持防御效果。

关键词: 人脸伪造主动防御, 对抗样本, 颜色空间, 特征掩码, 视觉注意力机制

Abstract: Active defense against face forgery is critical for digital identity authentication and media integrity protection.How-ever,existing methods overprioritize defensive performance while neglecting image visual quality and defense robustness,failing to adapt to multi-model variations and data distortions and thus yielding poor results.To resolve this,an active defense method based on universal adversarial perturbations is proposed.It uses an improved PGD(Projected Gradient Descent) algorithm with RGB-HSV hybrid color space transformation to generate perturbations,constrains perturbations to key facial regions via a facial mask to enhance visual quality,and designs an AMAF(Adaptive Multiple Data Augmentation Framework) to boost perturbation resistance to distortions(e.g.compression,blurring).Finally,Swin Transformer extracts multi-model perturbation features,gene-rates attention maps for weighted fusion,and optimizes via feature-level loss to construct universal perturbations.Experiments on CelebA,LFW,and RaFD datasets show the proposed method achieves an average attack success rate of 98.85% against four models(12% higher for AttGAN than the baseline).Protected images outperform the baseline by 12.90% in PSNR,16.40% in SSIM,and 34.37% in Euclidean norm.The defense success rate under image distortion interference has increased by 26% compared to the baseline model.This method maintains adversarial image visual quality,saves computational resources,and sustains defense effects under image distortion when countering multiple face forgery models.

Key words: Active defense against facial forgery, Adversarial samples, Color space, Feature mask, Visual attention mechanism

中图分类号: 

  • TP391.4
[1] ZHAO Y,GAO M C,YAO W D,et al.Review of Forged Face Detection Techniques Based on Deep Learning[J].Computer Systems & Applications,2025,34(4):1-17.
[2] YANG H Y,LI X H,HU Z.A Survey of Deepfake Face Generation and Detection Technologies[J].Journal of Huazhong University of Science and Technology(Natural Science Edition),2025,53(5):85-103.
[3] LIU H,TAN Z,TAN C,et al.Forgery-aware adaptive trans-former for generalizable synthetic image detection[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2024:10770-10780.
[4] TAN C,ZHAO Y,WEI S,et al.Frequency-aware deepfake detection:Improving generalizability through frequency space domain learning[C]//Proceedings of the AAAI Conference on Artificial Intelligence.2024:5052-5060.
[5] PENG C,MIAO Z,LIU D,et al.Where deepfakes gaze at? spatial-temporal gaze inconsistency analysis for video face forgery detection[J].IEEE Transactions on Information Forensics and Security,2024,19:1-14.
[6] WANG Y,FANG X J,YANG G M,et al.Active DefenseAgainst Face Forgery Based on Attention Mask and Feature Extraction[J].Journal of Computer Applications,2025,45(3):904-910.
[7] YEH C Y,CHEN H W,TSAI S L,et al.Disrupting-image-translation-based deepfake algorithms with adversarial attacks[C]//Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision Workshops.2020:53-62.
[8] HUANG H,WANG Y,CHEN Z,et al.Cmua-watermark:Across-model universal adversarial watermark for combating deepfakes[C]//Proceedings of the AAAI Conference on Artificial Intelligence.2022:989-997.
[9] LIN S Y,CHEN J C,WANG J C.A comparative study of cross-model universal adversarial perturbation for face forgery[C]//2022 IEEE International Conference on Visual Communications and Image Processing(VCIP).IEEE,2022:1-5.
[10] LV K,LIN W,XU J,et al.Generating Optimized Universal Adversarial Watermark for Preventing Face Deepfake[C]//2023 IEEE 22nd International Conference on Trust,Security and Privacy in Computing and Communications(TrustCom).IEEE,2023:1586-1591.
[11] LIU P,TAO Q,ZHOU T J.Evolving from single-modal tomulti-modal facial deepfake detection:A survey[J].arXiv:2406.06965,2024.
[12] XIA R,ZHOU D,LIU D,et al.Towards Generalized Proactive Defense against Face Swappingwith Contour-Hybrid Watermark[J].arXiv:2505.19081,2025.
[13] SZEGEDY C,ZAREMBA W,SUTSKEVER I,et al.Intriguing properties of neural networks[J].arXiv:1312.6199,2013.
[14] HUANG Q,ZHANG J,ZHOU W,et al.Initiative defenseagainst facial manipulation[C]//Proceedings of the AAAI Conference on Artificial Intelligence.2021:1619-1627.
[15] DONG J,WANG Y,LAI J,et al.Restricted black-box adversarial attack against deepfake face swapping[J].IEEE Transactions on Information Forensics and Security,2023,18:2596-2608.
[16] GOODFELLOW I J,SHLENS J,SZEGEDY C.Explaining and harnessing adversarial examples[J].arXiv:1412.6572,2014.
[17] KURAKIN A,GOODFELLOW I J,BENGIO S.Adversarial examples in the physical world[M]//Artificial Intelligence Safety and Security.Chapman and Hall/CRC,2018:99-112.
[18] MADRY A,MAKELOV A,SCHMIDT L,et al.Towards deep learning models resistant to adversarial attacks[J].arXiv:1706.06083,2017.
[19] CROCE F,HEIN M.Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks[C]//International Conference on Machine Learning.2020:2206-2216.
[20] KAZEMI V,SULLIVAN J.One millisecond face alignment with an ensemble of regression trees[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.2014:1867-1874.
[21] QIN X,ZHANG Z,HUANG C,et al.U2-Net:Going deeperwith nested U-structure for salient object detection[J].Pattern Recognition,2020,106:107404.
[22] LIU Z,LIN Y,CAO Y,et al.Swin Transformer:Hierarchical vision transformer using shifted windows[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.2021:10012-10022.
[23] CHOI Y,CHOI M,KIM M,et al.Stargan:Unified generativeadversarial networks for multi-domain image-to-image translation[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.2018:8789-8797.
[24] TANG H,LIU H,XU D,et al.Attentiongan:Unpaired image-to-image translation using attention-guided generative adversarialnetworks[J].IEEE Transactions on Neural Networks and Learning Systems,2021,34(4):1972-1987.
[25] HE Z,ZUO W,KAN M,et al.Attgan:Facial attribute editingby only changing what you want[J].IEEE Transactions on Ima-ge Processing,2019,28(11):5464-5478.
[26] LI X,ZHANG S,HU J,et al.Image-to-image translation viahierarchical style disentanglement[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2021:8639-8648.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!