Abstract
Text-to-image face recognition remains a significant challenge in computer vision due to the inherent ambiguity of linguistic descriptions and the vast modality gap between text and visual data. This paper introduces DiFace, a novel framework that repurposes Diffusion Probabilistic Models (DPMs) for discriminative tasks. By framing the diffusion process as a probability transport mechanism and incorporating a specialized refinement module, DiFace achieves approximately 79.2% verification accuracy on the CelebA dataset, demonstrating that generative models can be effectively adapted for high-stakes identification applications.
Introduction
Cross-modal face recognition typically involves matching disparate visual modalities, such as infrared images to standard visible-light photos. However, identifying individuals from verbal descriptions—text-to-image recognition—is often considered the "holy grail" of the field. The primary hurdles include the imprecision of language (where terms like "big nose" are subjective), the mathematical gap between text and image spaces, and the scarcity of paired identity-preserving datasets.
While diffusion models like Stable Diffusion have excelled in image generation, their potential for recognition has remained largely unexplored. DiFace addresses this by bridging the gap between words and faces through controlled diffusion.
Methodology
DiFace moves beyond the standard generative view of diffusion, treating it instead as a probability transport problem. The architecture consists of three core components:
- Identity-Optimized Encoder: Unlike standard VAE encoders used in generative AI, DiFace employs a pretrained face recognition model (ResNet with ArcFace). This ensures the latent space is structured for identity discrimination from the outset.
- Controlled Diffusion: A UNet-based diffusion model guides the reverse process from noise to a rough facial feature estimate using text prompts.
- Refinement Module: To address the fact that generative outputs may not be tightly clustered for the same identity, a lightweight refinement network adjusts features to minimize intra-class distances, making them suitable for actual recognition.
Key Insights: Generative vs. Discriminative Latents
A major finding of the research is that standard VAE embeddings are insufficient for recognition tasks. To bridge the modality gap effectively, one must use an encoder trained specifically for face recognition. Furthermore, DiFace performs recognition directly in the latent space reached via the diffusion path, rather than generating a noisy intermediate image.
The authors also highlight an "Ambiguity Ceiling": because text is inherently lower-resolution than vision, two different people can match the same description, suggesting a theoretical limit to accuracy in this domain.
Experimental Results
The model was primarily evaluated on the CelebA dataset, where 40 binary attributes were converted into linguistic prompts.
Verification and Identification Performance
DiFace achieved a stable verification accuracy of 79.2%. The inclusion of the Refinement Module was critical, providing a 5.52 percentage point boost over raw diffusion outputs.
In identification tasks (1:N), where a text probe is compared against a gallery of candidates, the model reached 63% accuracy at Rank-30 within a 300-subject gallery.
Conclusion
DiFace demonstrates that diffusion models can be successfully repurposed for discriminative applications. By bridging the modality gap through controlled probability transport, it sets a new benchmark for text-to-image face recognition. Future work will focus on moving from attribute-based prompts to natural, free-form language descriptions.
Summary updated