Generalize Your Face Forgery Detectors: An Insertable Adaptation Module Is All You Need
Authors: Xiaotian Si, Linghui Li, Liwei Zhang, Ziduo Guo, Kaiguo Yuan, Bingyu Li, Xiaoyong Li
Published: 2024-12-30 08:48:04+00:00
AI Summary
This paper introduces an insertable adaptation module for face forgery detectors that enhances generalization to unseen forgeries. The module adapts a pre-trained detector using unlabeled test data, improving performance without architectural modifications. This is achieved through a learnable class prototype-based classifier and a nearest feature calibrator.
Abstract
A plethora of face forgery detectors exist to tackle facial deepfake risks. However, their practical application is hindered by the challenge of generalizing to forgeries unseen during the training stage. To this end, we introduce an insertable adaptation module that can adapt a trained off-the-shelf detector using only online unlabeled test data, without requiring modifications to the architecture or training process. Specifically, we first present a learnable class prototype-based classifier that generates predictions from the revised features and prototypes, enabling effective handling of various forgery clues and domain gaps during online testing. Additionally, we propose a nearest feature calibrator to further improve prediction accuracy and reduce the impact of noisy pseudo-labels during self-training. Experiments across multiple datasets show that our module achieves superior generalization compared to state-of-the-art methods. Moreover, it functions as a plug-and-play component that can be combined with various detectors to enhance the overall performance.