Attributes Shape the Embedding Space of Face Recognition Models

Abstract

Face Recognition (FR) tasks have made significant progress with the advent of Deep Neural Networks, particularly through margin-based triplet losses that embed facial images into high-dimensional feature spaces. During training, these contrastive losses focus exclusively on identity information as labels. However, we observe a multiscale geometric structure emerging in the embedding space, influenced by interpretable facial (e.g., hair color) and image attributes (e.g., contrast). We propose a geometric approach to describe the dependence or invariance of FR models to these attributes and introduce a physics-inspired alignment metric. We evaluate the proposed metric on controlled, simplified models and widely used FR models fine-tuned with synthetic data for targeted attribute augmentation. Our findings reveal that the models exhibit varying degrees of invariance across different attributes, providing insight into their strengths and weaknesses and enabling deeper interpretability. Code available here: https://github.com/mantonios107/attrs-fr-embs.

Cite

Text

Leroy et al. "Attributes Shape the Embedding Space of Face Recognition Models." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Leroy et al. "Attributes Shape the Embedding Space of Face Recognition Models." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/leroy2025icml-attributes/)

BibTeX

@inproceedings{leroy2025icml-attributes,
  title     = {{Attributes Shape the Embedding Space of Face Recognition Models}},
  author    = {Leroy, Pierrick and Mastropietro, Antonio and Nurisso, Marco and Vaccarino, Francesco},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {33960-33983},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/leroy2025icml-attributes/}
}