DevFD : Developmental Face Forgery Detection by Learning Shared and Orthogonal LoRA Subspaces

Tianshuo Zhang, Li Gao, Siran Peng, Xiangyu Zhu, Zhen Lei

Deepfake technology is a moving target. As Generative Adversarial Networks (GANs) and Diffusion models evolve, the "fingerprints" they leave on forged faces change. For security researchers, this creates a "Red Queen’s Race": as soon as a detector is trained to catch one type of forgery, a new one emerges. Fine-tuning a model on new data often causes it to "forget" how to spot old ones—a phenomenon known as catastrophic forgetting.

Abstract

Face forgery detection faces a significant challenge in the "Red Queen's Race" against evolving generative techniques. Traditional models suffer from catastrophic forgetting when adapted to new forgery types. We present DevFD (Developmental Face Forgery Detection), a framework that treats detection as a continual learning problem. By leveraging a Developmental Mixture of Experts (MoE) with shared "Real-LoRA" and task-specific "Fake-LoRA" modules, constrained by gradient orthogonality, DevFD adapts to novel forgeries while maintaining performance on legacy tasks. Our approach achieves state-of-the-art results across major benchmarks with minimal forgetting.

Addressing the Domain Shift in Forgery Detection

The core challenge in face forgery detection is domain shift. Most detectors are trained on a static dataset; when they encounter a novel manipulation technique, performance plummets. While retraining on combined datasets is a "trivial" solution, it is computationally expensive and impractical at scale.

Existing continual learning methods struggle with the high diversity of forgery traces. DevFD identifies a key asymmetry: while forgery techniques are constantly evolving, genuine human faces remain relatively stable in their distribution.

Overview of the DevFD framework and the motivation behind stable real face data vs. evolving forgery types.

Methodology: Developmental Mixture of Experts

DevFD introduces three main innovations to enable model growth without forgetting:

  1. Developmental Mixture of Experts (MoE): Instead of updating the entire model, DevFD uses LoRA (Low-Rank Adaptation) modules as "experts." It splits these into two groups:
  2. Real-LoRA: A shared expert that focuses on learning and refining the common features of authentic faces across all tasks.
  3. Fake-LoRAs: For every new forgery type encountered, the model "sprouts" a new Fake-LoRA branch to capture that specific incremental information.
  4. Integrated Orthogonal Loss: To prevent new Fake-LoRAs from interfering with old ones, the authors enforce orthogonality. They introduce a loss that constrains the gradient space of the new task to be orthogonal to the subspaces of previous tasks, providing a robust shield against catastrophic forgetting.
  5. Label-guided Localized Balancing (LLB): A specialized routing strategy that uses labels during training to ensure the Real-LoRA learns "realness" and the Fake-LoRAs focus on their assigned forgery types, while still allowing them to collaborate during inference.
Detailed architecture of the Developmental MoE, including the LLB and Orthogonal Subspace modules.

Experimental Results

The model was evaluated using two incremental protocols (dataset-incremental and manipulation-type-incremental) across major benchmarks including FaceForensics++ (FF++), Deepfake Detection (DFD & DFDC-P), and Celeb-DF v2 (CDF2).

  • Superior Anti-Forgetting: In long-sequence experiments (learning 10 different forgery types in a row), DevFD maintained a significantly higher Average Accuracy (AA) and a much lower Average Forgetting (AF) rate compared to specialized methods like DFIL and HDP.
  • State-of-the-Art Performance: On the manipulation-type incremental protocol, DevFD achieved an Average AUC of 94.90%, surpassing the previous best (SUR-LID) while maintaining a lower forgetting rate (2.44% vs 2.99%).
  • Efficiency: Despite adding new branches, the number of trainable parameters remains constant for each new task, as only the Real-LoRA and the current Fake-LoRA are updated.

Conclusion

DevFD mimics a developmental process to address the evolving nature of deepfakes. By dedicating components to stable "real" features and expanding orthogonal experts for new "fake" signatures, it achieves high accuracy with minimal forgetting. While the model size grows linearly with the number of tasks, its parameter efficiency makes it a viable candidate for long-term deployment in dynamic security environments.

Summary updated

BibTeX
@inproceedings{zhang2025devfd,
  author = {Tianshuo Zhang and Li Gao and Siran Peng and Xiangyu Zhu and Zhen Lei},
  title = {{DevFD : Developmental Face Forgery Detection by Learning Shared and Orthogonal LoRA Subspaces}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Xpuci4SV06},
}
Figure