SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.00411 · September 2026

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

Yiying Tong, Arun Ross, Fizza Rubab

arXiv · PDF · Open in the Atlas

Code that ran

4 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 8 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2609.00411.json · badge: /api/ran/2609.00411.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Fizza-Rubab/unmasking-face-embeddings canonical (classifier label)
classifier basis: census
4 ran · 8 no recorded run
FunctionStatusWhere it lives
embeddings_for Ran
ran; our contract draft was wrong, not the code
Fizza-Rubab/unmasking-face-embeddings/experiments/eval_t2i.py
code served (permissive licence) · get_code("fa79c6eb3670e8d0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from unittest.mock import Mock, patch

# Create mock embeddings data
# We need to mock np.load to return fake embedding arrays
mock_embeddings = {
    'embeddings/cfp/clip_kandinsky_bigg.npy': np.random.randn(10, 8).astype(np.float64),
    'embeddings/cfp/arcface.npy': np.random.randn(10, 6).astype(np.float64),
    'embeddings/cfp/adaface.npy': np.random.randn(10, 6).astype(np.float64),
    'embeddings/cfp/adaface_vit.npy': np.random.randn(10, 6).astype(np.float64),
    'embeddings/cfp/kprpe.npy': np.random.randn(10, 6).astype(np.float64),
}

original_load = np.load

def mock_load(path, *args, **kwargs):
    if path in mock_embeddings:
        return mock_embeddings[path]
    return original_load(path, *args, **kwargs)

# Patch np.load globally
np.load = mock_load

# Create arguments
dec = 'kandinsky'  # decoder variant from DECODERS
tr = np.array([0, 1, 2, 3])  # training indices (4 samples)
pick = np.array([5, 6])  # indices to pick (2 samples)
rng = np.random.RandomState(42)  # random number generator

ARGS = {
    'dec': dec,
    'tr': tr,
    'pick': pick,
    'rng': rng,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fit_bridge Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Fizza-Rubab/unmasking-face-embeddings/experiments/eval_ridge_ablation.py
code served (permissive licence) · get_code("019163067f2cf41f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (3,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Create small matrices for X and Y
# X: (n_samples, n_features) = (5, 3)
# Y: (n_samples,) or (n_samples, 1) = (5,)
X = np.random.randn(5, 3).astype(np.float64)
Y = np.random.randn(5).astype(np.float64)

# alpha: regularization parameter (Ridge regression)
alpha = 0.1

ARGS = {
    "X": X,
    "Y": Y,
    "alpha": alpha
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
l2 Ran
ran, violated the contract we drafted
Fizza-Rubab/unmasking-face-embeddings/experiments/eval_naming.py
code served (permissive licence) · get_code("b9bc4d88c2c9c67d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function l2 takes a single parameter 'x'
# It converts x to a numpy array, ensures it's 2D, normalizes rows by their L2 norm
# We need to provide a valid input that can be converted to a numpy array

# Create a small 2D array with distinct dimensions (2 rows, 4 columns)
x = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]], dtype=np.float64)

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
union_find_clusters Ran
ran; our contract draft was wrong, not the code
Fizza-Rubab/unmasking-face-embeddings/experiments/eval_utk_leakage.py
code served (permissive licence) · get_code("db739551ad1b649a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family int, shape (5,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small embedding matrix E
# The function uses E for matrix operations and indexing
# Shape: (n_samples, embedding_dim)
np.random.seed(0)
n_samples = 5
embedding_dim = 3
E = np.random.randn(n_samples, embedding_dim).astype(np.float32)

# Normalize rows to have meaningful similarity scores
E = E / (np.linalg.norm(E, axis=1, keepdims=True) + 1e-8)

# tau is a threshold for similarity
# Similarity scores from dot product typically range ~[-1, 1]
tau = 0.5

# block is the block size for processing
block = 2000

ARGS = {
    "E": E,
    "tau": tau,
    "block": block,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (5,) — shape (5,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
enc_text Not yet run
unverified (harvested, no recorded run)
Fizza-Rubab/unmasking-face-embeddings/experiments/eval_naming.py
code served (permissive licence) · get_code("92923dd25dd7ae28")
How it ran

no invocation recorded.

encode_text Not yet run
unverified (harvested, no recorded run)
Fizza-Rubab/unmasking-face-embeddings/experiments/eval_text_retrieval.py
code served (permissive licence) · get_code("f079564e623fd094")
How it ran

no invocation recorded.

identity_split Not yet run
unverified (harvested, no recorded run)
Fizza-Rubab/unmasking-face-embeddings/experiments/eval_t2i.py
code served (permissive licence) · get_code("6806526b91cb2b73")
How it ran

no invocation recorded.

load_magface_model Not yet run
unverified (harvested, no recorded run)
Fizza-Rubab/unmasking-face-embeddings/ufe/model_loaders.py
code served (permissive licence) · get_code("1df1eed7084b7cb2")
How it ran

no invocation recorded.

load_model_by_repo_id Not yet run
unverified (harvested, no recorded run)
Fizza-Rubab/unmasking-face-embeddings/ufe/model_loaders.py
code served (permissive licence) · get_code("a87725a07c5f49d2")
How it ran

no invocation recorded.

load_model_from_local_path Not yet run
unverified (harvested, no recorded run)
Fizza-Rubab/unmasking-face-embeddings/ufe/model_loaders.py
code served (permissive licence) · get_code("d469384dcdf7a2d0")
How it ran

no invocation recorded.

mean_ap Not yet run
unverified (harvested, no recorded run)
Fizza-Rubab/unmasking-face-embeddings/experiments/eval_retrieval_crossds.py
code served (permissive licence) · get_code("7a2d21cf5475af46")
How it ran

no invocation recorded.

name_anchors Not yet run
unverified (harvested, no recorded run)
Fizza-Rubab/unmasking-face-embeddings/experiments/eval_naming.py
code served (permissive licence) · get_code("b7f9fadc869e73b3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
load_model_by_repo_id 1 other paper
1 dated earlier
2411.16832 (2024-11)
Edit Away and My Face Will not Stay: Personal Biometric Defense against Malicious Generative Editing

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2609.00411")
get_code_for_paper("2609.00411")
have("2609.00411")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2609.00411.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2609.00411.svg)](https://syntology.ai/paper/2609.00411)

Connect an agent — have() is free.