Manuscript Offprint

arXiv:2609.00411

Unmasking Face Embeddings: Reading, Rendering and Naming with Foundation Models

Fizza Rubab, Yiying Tong, Arun Ross

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Fizza Rubab®, Yiying Tong®, and Arun Ross®

Michigan State University {rubabfiz, ytong, rossarun}@msu.edu

Figure

Fig. 1: Overview. A single linear transformation maps a face embedding from a face recognition model into a foundation space, where it can be read by a text query, rendered by a diffusion decoder, and named against a text vocabulary without additional training.

Abstract. Modern face recognition (FR) owes much of its success to deep neural networks that learn to extract compact identity embeddings from face images. These models are typically trained for identity discrimination, producing embeddings that are highly effective for biometric matching but largely opaque to semantic interpretation. In contrast, foundation models, pretrained on broad visual or vision-language tasks, provide rich interfaces for describing, retrieving, generating, and organizing visual content. This contrast raises a natural question: what capabilities become available when face embeddings from domain-specific FR models are made interoperable with foundation models? Building on recent work on embedding compatibility across models, we use simple pre-computed linear transformations, estimated from paired embeddings alone, to connect existing FR models with off-the-shelf foundation models. Once aligned with a foundation model, a face embedding can be “unmasked” in multiple ways, without training or modifying either model: it can be read in natural language, enabling free-form text queries over a gallery of FR embeddings; rendered into a face image that recovers a person’s appearance, using an unmodified diffusion decoder; and converted to a name, enabling identification even in the absence of an enrolled face gallery. In effect, one linear transformation turns an identity embedding into a rich embedding for web-scale foundation models. This interoperability exposes face embeddings as semantically and visually rich biometric representations, with direct implications for interpretability, retrieval, reconstruction, and template security.

Keywords: biometrics · face recognition · foundation models · representation alignment · template privacy · interpretability

1 Introduction

The automated process of recognizing an individual based on their face image is known as face recognition (FR) [11]. FR systems are being used in several biometric applications ranging from unlocking smartphones to identifying perpetrators of crime. Modern FR systems rely on deep neural networks that map a face image to a compact embedding vector [13]. Vectors corresponding to different face images are compared using distance metrics in order to verify or determine the identity of an unknown face image [30]. Domain-specific models such as ArcFace [4], CosFace [35], and AdaFace [14] are trained using face images and identity labels alone. As a result, their embeddings are effective for biometric matching. However, with no language or semantic supervision, an embedding (i.e., a face template) cannot be directly queried in words, decoded into an image, or associated with a name in the absence of an enrolled face gallery.

In contrast, foundation models, pretrained on broad heterogeneous data including vision-language data and recently explored for biometric tasks [32,33], can go beyond image matching. Image-text models such as CLIP [25], Meta-CLIP [37], and SigLIP [38] enable language-based retrieval of visual content and support semantic description through text. Embedding-conditioned diffusion models [26,27] invert an embedding back into an image. Web-scale pretraining even associates face images with the names of well-known individuals [8].

If FR embeddings could be mapped to the embedding spaces of foundation models, they could avail of the capabilities that these models already provide. However, such a mapping is not guaranteed: various FR and foundation models are trained using different data, objectives, loss functions, architectures, and embedding dimensions. Yet a growing body of work shows that independently trained networks learn geometrically related representations (embeddings) [1, 10, 16, 20]. For face images specifically, recent work has shown that FR and foundation-model embeddings are linearly compatible [29]. So the question now is: how can aligning embeddings across FR and foundation models be further exploited?

Our approach is deliberately minimal (Fig. 1). A single linear transformation, estimated once from paired embeddings between two models, aligns a domain-specific FR model to an off-the-shelf foundation model. The transformation uses no attribute labels, fine-tunes neither model, and retrains no decoder, text encoder, or downstream head. The transformed face embedding can be utilized directly by the foundation model. We view this as an unmasking mechanism: alignment exposes semantic, visual, and identity-related information that is present in an FR embedding but inaccessible through the original model. 1^{1}

We study three such implications of this alignment. An embedding can be read: free-form text queries can search an aligned gallery of FR embeddings, retrieving the faces that match the description (Sec. 5). It can be rendered: an unmodified diffusion decoder can reconstruct the person's appearance and softbiometric attributes, though not fine identity details (Sec. 6). Further, it can be

1^{1} Code: https://github.com/Fizza-Rubab/unmasking-face-embeddings named: the aligned embedding can be used to find out a person's name, identifying well-known individuals from the embedding alone (Sec. 7). The performance of the aligned embeddings on these tasks is compared against the foundation model's native performance, as well as against two baselines: unaligned embeddings and randomly transformed embeddings (Sec. 3). This ensures that every capability we report is attributable to the learned alignment rather than other incidental factors.

Our main contributions are:

  1. Demonstrating that a single pre-computed linear transformation makes a gallery of face embeddings searchable using natural language text, at close to the foundation model's own retrieval accuracy (Sec. 5).

  2. Showing that a linear transformation into a diffusion decoder's conditioning space inverts an FR embedding into a realistic face image that preserves appearance and soft-biometric attributes (Sec. 6).

  3. Matching an aligned embedding against text embeddings of candidate names, thereby identifying well-known individuals from their face embeddings even in the absence of an enrolled face gallery (Sec. 7).

References (41)

  • Revisiting model stitching to compare neural representations
  • Deep CNN face matchers inherently support revocable biometric templates
  • 15m multimodal facial image-text dataset (opens arXiv in a new tab)
  • ArcFace: Additive angular margin loss for deep face recognition
  • MS-Celeb-1M: A dataset and benchmark for large-scale face recognition
  • Handbook of Biometric Template Protection: Motivation, Methods and Metrics
  • GANs trained by a two time-scale update rule converge to a local Nash equilibrium
  • Does CLIP know my face? Journal of Artificial Intelligence Research (JAIR) 80
  • Labeled faces in the wild: A database for studying face recognition in unconstrained environments
  • The platonic representation hypothesis
  • Introduction to Biometrics
  • Controllable inversion of black-box face recognition models via diffusion
  • 50 years of automated face recognition
  • AdaFace: Quality adaptive margin for face recognition
  • KeyPoint relative position encoding for face recognition
  • Understanding image representations by measuring their equivariance and equivalence
  • Deep learning face attributes in the wild
  • On the reconstruction of face images from deep face templates
  • MagFace: A universal representation for face recognition and quality assessment
  • Relative representations enable zero-shot latent space communication
  • A data-driven approach to cleaning large face datasets
  • DINOv2: Learning robust visual features without supervision
  • Face reconstruction from face embeddings using adapter to a face foundation model
  • Arc2Face: A foundation model for ID-consistent human faces
  • Learning transferable visual models from natural language supervision
  • Hierarchical Text-Conditional Image Generation with CLIP Latents
  • Kandinsky: an improved text-to-image synthesis with image prior and latent diffusion
  • High-resolution image synthesis with latent diffusion models
  • Compatibility of face embeddings across deep neural networks
  • FaceNet: A unified embedding for face recognition and clustering
  • Frontal to profile face verification in the wild
  • Benchmarking foundation models for zero-shot biometric tasks (opens arXiv in a new tab)
  • Foundation versus domain-specific models: Performance comparison, fusion, and explainability in face recognition
  • Beyond identity: What information is stored in biometric face templates? In: IEEE International Joint Conference on Biometrics (IJCB)
  • CosFace: Large margin cosine loss for deep face recognition
  • InstantID: Zero-shot identity-preserving generation in seconds (opens arXiv in a new tab)
  • Demystifying CLIP data
  • Sigmoid loss for language image pre-training
  • The unreasonable effectiveness of deep features as a perceptual metric
  • Age progression/regression by conditional adversarial autoencoder
  • WebFace260M: A benchmark unveiling the power of million-scale deep face recognition