Abstract
We introduce FairAlign, a new method to reduce bias and improve group fairness in deepfake detection by aligning conditional distributions of embeddings in a high-dimensional kernel space. Our approach reduces information related to sensitive attributes in the embedding space that could potentially bias the detection process, thus promoting fairness. FairAlign is a versatile plug-and-play loss term compatible with various deepfake detection networks and is capable of enhancing group fairness without compromising detection performance. In addition to applying FairAlign for reducing gender bias, we implement a systematic pipeline for the annotation of skin tones and promotion of fairness in deepfake detection related to this sensitive attribute. Finally, we perform the first comprehensive study toward quantifying and understanding the trade-off between fairness and accuracy in the context of deepfake detection. We use three public deepfake datasets FaceForensics++, CelebDF, and WildDeepfake to evaluate our method. Through various experiments, we observe that FairAlign outperforms other bias-mitigating methods across various deepfake detection backbones for both gender and skin tone, setting a new state-of-the-art. Moreover, our fairness-accuracy trade-off analysis demonstrates that our approach demonstrates the best overall performance when considering effectiveness in both deepfake detection and reducing bias.
Introduction
Modern deepfake detectors, while achieving high overall accuracy, often suffer from "demographic leakage." This phenomenon results in performance disparities across different groups, such as higher accuracy for individuals with lighter skin tones or specific genders. Such biases create security vulnerabilities, as attackers can exploit these gaps to target specific demographics.
We identify three major gaps in current research: the persistence of bias in internal embeddings even after mitigation, the lack of precise metrics for visual factors like skin tone (which is often conflated with ethnicity), and the perceived trade-off between fairness and accuracy. We propose FairAlign, an in-processing technique that aligns internal representations in a high-dimensional kernel space to eliminate biased information while maintaining high detection performance.
Methodology
The core of our approach is the Conditional Kernel Bures (CKB) Alignment loss. FairAlign maps image embeddings into a high-dimensional kernel space to identify and minimize subtle statistical differences between demographic groups. This forces the model to learn features that are invariant to sensitive attributes like gender or skin tone.
To address skin tone bias specifically, we developed a pipeline using U-Net segmentation to isolate facial skin and map the average color to the 10-level Monk Skin Tone (MST) scale. This provides a more objective and visually grounded basis for fairness than broad ethnicity categories, which our research shows can be less precise in capturing visual bias.
Experimental Results
We evaluated FairAlign across three benchmarks: FaceForensics++ (FF++), CelebDF, and WildDeepfake.
State-of-the-Art Fairness and Accuracy
FairAlign consistently outperforms existing methods like MMD and DAG-FDD across various backbones (e.g., EfficientNet, RECCE, MASDT). On the FF++ dataset, FairAlign reduced gender-based False Positive Rate (FPR) gaps to as low as 0.16% while maintaining or even improving overall detection metrics like AUC and Accuracy.
Key Insights
- Robust Generalization: In cross-dataset experiments, FairAlign improved detection accuracy by approximately 3%. By removing biased "shortcuts," the model is forced to learn more robust, generalizable features for deepfake detection.
- Skin Tone vs. Ethnicity: Our results demonstrate that skin tone bias is often more severe than ethnicity bias (e.g., 18.37% vs 8.11% in baseline models), justifying the use of the MST scale.
- Cross-Attribute Synergy: Interestingly, targeting one bias (like skin tone) often helps reduce others (like gender) as a side effect, rather than exacerbating them.
Conclusion and Future Work
FairAlign provides a powerful, plug-and-play solution for fair deepfake detection. While it introduces a minor increase in training time, it adds no overhead during inference. Future work will focus on addressing the data imbalance in existing datasets—which are heavily skewed toward lighter skin tones—and exploring intersectional fairness to protect specific subgroups more effectively.
Summary updated