RoGA: Towards Generalizable Deepfake Detection through Robust Gradient Alignment
Lingyu Qiu, Ke Jiang, Xiaoyang Tan
TL;DR
RoGA tackles cross-domain deepfake detection by aligning gradient updates across domains through parameter perturbations, guiding optimization toward flatter, more robust minima without extra regularization. The method combines a perturbation-based robustness objective with a domain-aware gradient alignment term, extending ideas from sharpness-aware optimization to multi-domain settings. Empirical results across FF++ variants, Celeb-DF, and DFDC show RoGA surpasses state-of-the-art domain generalization methods, with strong ablations validating the contributions of both objectives and backbone independence. The approach yields improved cross-domain detection performance and interpretable representations, suggesting practical impact for deploying deepfake detectors in diverse real-world scenarios.
Abstract
Recent advancements in domain generalization for deepfake detection have attracted significant attention, with previous methods often incorporating additional modules to prevent overfitting to domain-specific patterns. However, such regularization can hinder the optimization of the empirical risk minimization (ERM) objective, ultimately degrading model performance. In this paper, we propose a novel learning objective that aligns generalization gradient updates with ERM gradient updates. The key innovation is the application of perturbations to model parameters, aligning the ascending points across domains, which specifically enhances the robustness of deepfake detection models to domain shifts. This approach effectively preserves domain-invariant features while managing domain-specific characteristics, without introducing additional regularization. Experimental results on multiple challenging deepfake detection datasets demonstrate that our gradient alignment strategy outperforms state-of-the-art domain generalization techniques, confirming the efficacy of our method. The code is available at https://github.com/Lynn0925/RoGA.
