Abstract
Diffusion models (DMs) have achieved significant success in generating imaginative images from textual descriptions. However, they often fall short in real-life scenarios requiring intricate details, particularly human faces. Low-quality, unrealistic faces are a prominent issue hindering the practical application of DMs. This paper introduces FaceScore (FS), a novel metric developed by fine-tuning ImageReward on a dataset of face pairs created via an automated inpainting pipeline. FS demonstrates superior alignment with human judgment. By utilizing FS for preference learning, the authors significantly enhance face quality in models like SDXL.
The Challenge of Facial Realism
While diffusion models like Stable Diffusion and Midjourney produce stunning landscapes and complex artistic concepts, they frequently stumble on human faces. This often results in what the authors describe as "nightmare fuel"—distorted eyes, melted skin textures, or irrational geometries.
The researchers identify two primary culprits for this failure:
- Scale Disparity: Faces often occupy a tiny fraction of the total image area. During global processing, the model tends to prioritize overall composition, leading it to "ignore" fine-grained facial details.
- Metric Mismatch: Existing aesthetic metrics, such as ImageReward or HPS, evaluate the entire image. A beautiful sunset with a mangled face might still receive a high score from these metrics, providing a poor training signal for models to prioritize facial realism.
Methodology: Developing FaceScore
The researchers attacked this problem in three distinct stages:
1. Automated Dataset Construction
To train a face-specific metric without expensive human labeling, the authors used an "inpainting" trick. They took high-quality natural images of faces, masked the face area, and used a diffusion model to inpaint them with varying levels of noise. This created a "win/loss" pair: the original natural face (the winner) and the degraded, generated face (the loser). They used an adaptive noise strategy, where the amount of degradation was tuned based on the face's size relative to the image.
2. The FaceScore (FS) Metric
The team fine-tuned a BLIP-based reward model (ImageReward) on 46,000 of these synthetic pairs. Crucially, they focused the model's attention solely on cropped face regions rather than the whole image. This resulted in FaceScore, a metric that specifically rates the rationality and aesthetic appeal of generated faces.
3. Model Enhancement via DPO
Finally, they used FaceScore to improve existing models. They generated thousands of images using SDXL, ranked them using FaceScore, and applied Direct Preference Optimization (DPO). This "teaches" the model to steer its latent space toward the high-scoring (realistic) facial distributions.
Key Insights and Results
- Local Focus is Critical: The most significant finding is that general aesthetic metrics are often "face-blind." By forcing the metric to look only at the face crop (LocalHPS/LocalIR), accuracy in predicting human preference jumped significantly.
- Superior Alignment: FaceScore achieved 81.15% accuracy in matching human rankings of face quality, significantly outperforming HPS (75.04%) and the original ImageReward (60.32%).
- Quantifiable Improvement: When SDXL was fine-tuned using FaceScore (FS-DPO), its internal FaceScore jumped from 2.21 to 4.08.
- Human Validation: In side-by-side "blind" tests, humans preferred the faces generated by the FS-DPO model over the base SDXL model 57.44% of the time.
- Generalization: The authors showed that FaceScore remains a valid metric for the latest models, including SD3, Hunyuan, and Kolors, correctly identifying that newer models generally produce better faces.
Limitations and Future Work
The authors acknowledge several hurdles:
- Bias Toward Frontal Faces: FaceScore currently tends to give higher ratings to large, unoccluded, frontal faces. It may struggle with artistic profiles or faces partially hidden by hair or objects.
- Generalization Trade-off: While face quality improved drastically, the improvement in general prompt following was less pronounced than standard DPO, likely due to the narrow focus of the training prompts.
- Future Directions: The authors suggest expanding the dataset to include more diverse angles and occlusions, and potentially integrating FaceScore directly into the sampling process as a guidance signal to improve quality at inference time without extra fine-tuning.
Summary updated