TL;DR
This paper introduces a novel rank-based, no-reference image quality assessment (NR-IQA) method specifically designed for face swapping. By leveraging a large-scale dataset and a Siamese network that considers multiple facial attributes, their approach accurately assesses the quality of swapped faces without needing original reference images, outperforming existing methods. This new metric also demonstrably improves face-swapping models by acting as a training constraint.
What Problem Does This Paper Address?
Face swapping technology has advanced rapidly, enabling realistic manipulation of facial identities in images and videos. However, evaluating the quality of these swapped faces remains a significant challenge. Current methods often rely on full-reference image quality assessment (FR-IQA), which requires access to the original, unmanipulated source and target images. This is impractical for real-world scenarios where only the manipulated output is available. Existing no-reference image quality assessment (NR-IQA) methods, while not requiring references, are not specifically tuned for the unique distortions introduced by face swapping, such as unnatural expressions, poses, or identity inconsistencies. Face image quality assessment (FIQA) methods often focus solely on identity, neglecting other crucial visual attributes. This gap highlights the need for a robust, reference-free method that can accurately assess face-swapping quality by considering a holistic set of facial attributes.
Methods
The core of the proposed solution is a rank-based, no-reference quality assessment (NR-IQA) method. Instead of assigning an absolute quality score, the model learns to rank pairs of swapped faces. This is achieved through a Siamese network architecture. The network takes two swapped face images as input and, through its learned representations, predicts which image is of higher quality.
To generate training data for this network, the authors developed a novel rank-based label generation pipeline. This pipeline involves:
- 3D Face Reconstruction: Using models like EMOCA and DECA, they extract expression, lighting, and pose vectors from the faces.
- Pose Vector Estimation: Employing a 6D rotation representation model (6DRepNet) to accurately capture head pose.
- Label Generation: These extracted attribute vectors, along with perceptual similarity metrics like LPIPS, are used to create ranking labels. A pair of swapped faces is ranked based on the consistency of their attribute preservation (expression, lighting, pose) relative to the target face, and their perceptual similarity. If face A preserves attributes better than face B, and has higher perceptual similarity to the target, then face A is ranked higher than face B.
The Siamese network is trained using a margin-aware ranking loss to ensure robust learning of these relative quality judgments.
Datasets
The authors introduce a large-scale, novel dataset specifically for face swapping quality assessment.
- Training Data: This dataset is constructed using high-resolution face images from the CelebAMask-HQ dataset as sources and targets. They employed five advanced face-swapping methods (SimSwap, FaceShifter, MegaFS, HiRes, InfoSwap) to generate over 1.2 million manipulated face images. Crucially, they also incorporated "self-swapped" images, where a face is swapped onto itself, to help the model learn distortions without being influenced by identity changes. This dataset contains over 1 million rank-based pseudo-labels.
- Evaluation Data: For evaluation, they utilized the DeepFake Game Competition Visual Realism Assessment (DFGC-VRA) database, which contains annotated videos of face-swapped content.
Key Insights and Ideas
- Ranking is More Robust than Absolute Scoring for NR-IQA: The paper argues that learning relative quality (ranking) is more effective for NR-IQA in face swapping than trying to predict an absolute score, especially when dealing with subtle distortions.
- Multi-Attribute Consistency is Key: Simply preserving identity isn't enough. The model's success hinges on its ability to assess the preservation of multiple attributes like expression, pose, and lighting, and how these contribute to perceived quality.
- Self-Swapped Images are Valuable for Training: Including self-swapped images in the training set helps the model learn the inherent distortions of the swapping process itself, independent of identity changes, leading to better generalization.
- Quality Assessment as a Training Constraint: The proposed quality assessment metric can be directly integrated as a loss function into face-swapping models, leading to improved generation quality in terms of expression and pose preservation.
Key Results
- State-of-the-Art Performance: The proposed rank-based NR-IQA method achieves state-of-the-art performance in assessing face-swapping quality, demonstrating superior consistency with human judgments compared to existing general NR-IQA and FIQA methods.
- Improved Face Swapping: When used as a training loss, the proposed metric helped an existing face-swapping model achieve better preservation of target expressions and poses, as evidenced by quantitative improvements in attribute errors.
- Dataset Scale: The created dataset is substantial, with over 1.2 million images and rich rank-based annotations, making it a valuable resource for future research.
- Quantitative Improvements: Tables in the paper show significant improvements in consistency scores (e.g., 85.75% for coarse-grained and 69.50% for fine-grained with their method, compared to other methods in the 40-70% range).
Limitations and Future Work
- Computational Cost of 3D Reconstruction: The label generation pipeline relies on 3D face reconstruction, which can be computationally intensive. Future work could explore more efficient methods for attribute extraction.
- Generalizability to Unseen Methods: While the model shows good generalization, further exploration into its performance on entirely novel face-swapping techniques not seen during training would be beneficial.
- Human Perception Alignment: While the method aligns well with human perception, further fine-tuning and exploration of the margin parameter in the loss function could potentially lead to even closer alignment.
- Real-World Deployment: The authors suggest that their method is well-suited for real-world scenarios, but further testing in diverse, uncontrolled environments would be valuable.
Summary updated