Stacking Brick by Brick: Aligned Feature Isolation for Incremental Face Forgery Detection

Jikang Cheng, Zhiyuan Yan, Ying Zhang, Li Hao, Jiaxin Ai, Qin Zou, Chen Li, Zhongyuan Wang

Introduction

The rapid evolution of face forgery techniques—ranging from classical face-swapping to sophisticated generative AI—necessitates detectors that can adapt incrementally. Incremental Face Forgery Detection (IFFD) aims to update models with new forgery types without retraining from scratch. However, existing methods suffer from catastrophic forgetting, where learning new information causes the model to lose its ability to detect previously seen forgeries.

The Challenge: Feature Overriding

Most current detectors treat all forgeries as a single "Fake" class. When a model learns a new forgery type, the new feature distributions often "override" the old ones in the latent space. This occurs because the model lacks the granularity to distinguish between different forgery types, leading to a performance collapse on previously learned tasks. The authors argue for a "brick-by-brick" approach where features are isolated and stacked rather than mixed.

Comparison of feature overriding in naive binary classification versus feature accumulation in the proposed approach.

The SUR-LID Framework

To address these issues, the authors propose SUR-LID, a framework combining Sparse Uniform Replay (SUR) and a Latent-space Incremental Detector (LID).

Sparse Uniform Replay (SUR)

Unlike traditional methods that replay "hard samples" (those near the decision boundary), SUR selects a subset of data representing the global distribution of each task. Samples are chosen based on magnitude (distance from the center), angularity (direction), and stability (consistency under input shuffling). This creates a "uniformly sparse" representation that prevents the distortion of the global feature space over time.

Latent-space Incremental Detector (LID)

The LID component focuses on three key mechanisms to maintain performance across tasks:

  1. Feature Isolation: Using supervised contrastive loss, the model learns to keep the feature distributions of different forgery tasks separate rather than lumping them together.
  2. Distribution Re-filling (DR): A mixup technique between replayed samples and their centroids is used to "refill" the gaps in the sparse replay set, simulating the original dense distribution.
  3. Incremental Decision Alignment (IDA): This ensures that the decision boundaries for new tasks align with the logic of all previous tasks, allowing for a unified final classification.
The Latent-space Incremental Detector (LID) framework, showing how features are isolated and updated across tasks.

Experimental Results

SUR-LID was evaluated against state-of-the-art (SOTA) incremental learning methods like LwF and iCaRL across multiple datasets, including Celeb-DF-v2, FaceForensics++, and modern diffusion-based forgeries.

  • Dataset Incremental (Protocol 1): SUR-LID achieved an average AUC of 0.9315, significantly outperforming the next best competitor (HDP at 0.8752).
  • Forgery Type Incremental (Protocol 2): In this more challenging scenario, SUR-LID maintained a high average AUC of 0.9433, while most previous methods struggled to stay above 0.82.

Conclusion

SUR-LID demonstrates that treating forgery features as "bricks"—isolated yet aligned—is a superior strategy for incremental learning in the face forgery domain. While the method currently relies on a replay buffer and task-aware training, it sets a new benchmark for robust, long-term deepfake detection. Future work may explore task-free incremental learning to automatically detect shifts in data distribution.

Summary updated

BibTeX
@inproceedings{cheng2025stacking,
  author = {Jikang Cheng and Zhiyuan Yan and Ying Zhang and Li Hao and Jiaxin Ai and Qin Zou and Chen Li and Zhongyuan Wang},
  title = {{Stacking Brick by Brick: Aligned Feature Isolation for Incremental Face Forgery Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01300},
}
Figure