Forensics Adapter: Unleashing CLIP for Generalizable Face Forgery Detection

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Cui, Xinjie, Li, Yuezun, Zhu, Delong, Zhou, Jiaran, Dong, Junyu, Lyu, Siwei
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912388655087616
author Cui, Xinjie
Li, Yuezun
Zhu, Delong
Zhou, Jiaran
Dong, Junyu
Lyu, Siwei
author_facet Cui, Xinjie
Li, Yuezun
Zhu, Delong
Zhou, Jiaran
Dong, Junyu
Lyu, Siwei
contents We describe Forensics Adapter, an adapter network designed to transform CLIP into an effective and generalizable face forgery detector. Although CLIP is highly versatile, adapting it for face forgery detection is non-trivial as forgery-related knowledge is entangled with a wide range of unrelated knowledge. Existing methods treat CLIP merely as a feature extractor, lacking task-specific adaptation, which limits their effectiveness. To address this, we introduce an adapter to learn face forgery traces -- the blending boundaries unique to forged faces, guided by task-specific objectives. Then we enhance the CLIP visual tokens with a dedicated interaction strategy that communicates knowledge across CLIP and the adapter. Since the adapter is alongside CLIP, its versatility is highly retained, naturally ensuring strong generalizability in face forgery detection. With only 5.7M trainable parameters, our method achieves a significant performance boost, improving by approximately 7% on average across five standard datasets. Additionally, we describe Forensics Adapter++, an extended method that incorporates textual modality via a newly proposed forgery-aware prompt learning strategy. This extension leads to a further 1.3% performance boost over the original Forensics Adapter. We believe the proposed methods can serve as a baseline for future CLIP-based face forgery detection methods. The codes have been released at https://github.com/OUC-VAS/ForensicsAdapter.
format Preprint
id arxiv_https___arxiv_org_abs_2411_19715
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Forensics Adapter: Unleashing CLIP for Generalizable Face Forgery Detection
Cui, Xinjie
Li, Yuezun
Zhu, Delong
Zhou, Jiaran
Dong, Junyu
Lyu, Siwei
Computer Vision and Pattern Recognition
Cryptography and Security
Machine Learning
We describe Forensics Adapter, an adapter network designed to transform CLIP into an effective and generalizable face forgery detector. Although CLIP is highly versatile, adapting it for face forgery detection is non-trivial as forgery-related knowledge is entangled with a wide range of unrelated knowledge. Existing methods treat CLIP merely as a feature extractor, lacking task-specific adaptation, which limits their effectiveness. To address this, we introduce an adapter to learn face forgery traces -- the blending boundaries unique to forged faces, guided by task-specific objectives. Then we enhance the CLIP visual tokens with a dedicated interaction strategy that communicates knowledge across CLIP and the adapter. Since the adapter is alongside CLIP, its versatility is highly retained, naturally ensuring strong generalizability in face forgery detection. With only 5.7M trainable parameters, our method achieves a significant performance boost, improving by approximately 7% on average across five standard datasets. Additionally, we describe Forensics Adapter++, an extended method that incorporates textual modality via a newly proposed forgery-aware prompt learning strategy. This extension leads to a further 1.3% performance boost over the original Forensics Adapter. We believe the proposed methods can serve as a baseline for future CLIP-based face forgery detection methods. The codes have been released at https://github.com/OUC-VAS/ForensicsAdapter.
title Forensics Adapter: Unleashing CLIP for Generalizable Face Forgery Detection
topic Computer Vision and Pattern Recognition
Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2411.19715