SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.00332 · CVPR · 2025

CryptoFace: End-to-End Encrypted Face Recognition

Wei Ao, Vishnu Boddeti

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2509.00332.json · badge: /api/ran/2509.00332.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
human-analysis/CryptoFace community
Papers with Code archive
4 ran · 3 no recorded run
FunctionStatusWhere it lives
Flatten Ran
ran on a synthesized input
human-analysis/CryptoFace/models/pcnn.py
code served (permissive licence) · get_code("d45cd0dd13f0cbc5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float, shape (2, 60) 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 torch
import torch.nn as nn

class Flatten(nn.Module):

    def forward(self, input):
        return input.view(input.size(0), -1)


INIT_ARGS = {}

ARGS = {
    'input': torch.randn(2, 4, 3, 5)
}

if __name__ == '__main__':
    model = Flatten(**INIT_ARGS)
    output = model(**ARGS)
    print(output.shape)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 60) — shape (2, 60) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
HerPN Ran
ran on a synthesized input · constructed an object; no result was computed
human-analysis/CryptoFace/models/pcnn.py
code served (permissive licence) · get_code("d670223bc0c5b35b")
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 an instance of its own class, HerPN: the run constructed the object and did not call it, so no result was computed. 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 torch
import torch.nn as nn
import math
import numpy as np

torch.manual_seed(0)

# The HerPN class takes only one parameter: planes
# This is the number of channels in the BatchNorm2d layers
planes = 4

ARGS = {
    "planes": planes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type HerPN — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a HerPN 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
HerPNConv Ran
ran on a synthesized input · constructed an object; no result was computed
human-analysis/CryptoFace/models/pcnn.py
code served (permissive licence) · get_code("c7389b6991bf5af4")
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 an instance of its own class, HerPNConv: the run constructed the object and did not call it, so no result was computed. 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 torch
import torch.nn as nn
import math
import numpy as np

torch.manual_seed(0)

# Create a minimal input tensor for testing
# Shape: (batch_size, in_planes, height, width)
x = torch.randn(2, 3, 4, 4)

# Define ARGS dict with all parameters for HerPNConv.__init__
ARGS = {
    'in_planes': 3,
    'planes': 4,
    'stride': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type HerPNConv — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a HerPNConv 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
HerPNPool Ran
ran on a synthesized input · constructed an object; no result was computed
human-analysis/CryptoFace/models/pcnn.py
code served (permissive licence) · get_code("9b3b481a486ec682")
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 an instance of its own class, HerPNPool: the run constructed the object and did not call it, so no result was computed. 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 torch
import torch.nn as nn
import math
import numpy as np

torch.manual_seed(0)

ARGS = {
    "planes": 4,
    "output_size": (2, 2),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type HerPNPool — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a HerPNPool 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
Backbone Not yet run
unverified (harvested, no recorded run)
human-analysis/CryptoFace/models/pcnn.py
code served (permissive licence) · get_code("43bca9799e6fda81")
How it ran

no invocation recorded.

PatchCNN Not yet run
unverified (harvested, no recorded run)
human-analysis/CryptoFace/models/pcnn.py
code served (permissive licence) · get_code("7e002e883bdf8b91")
How it ran

no invocation recorded.

initialize_weights Not yet run
unverified (harvested, no recorded run)
human-analysis/CryptoFace/models/pcnn.py
code served (permissive licence) · get_code("b087bdd8512ae9e3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 6 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
Flatten
brick of this paper's assembly: helper
6 other papers
6 dated earlier · 4 only as an assembly brick
1705.05363 (2017-05)
Curiosity-driven Exploration by Self-supervised Prediction
1810.12894 (2018-10)
Exploration by Random Network Distillation
2002.10025 (2020-02)
Triple Wins: Boosting Accuracy, Robustness and Efficiency Together by Enabling Input-Adaptive Inference
and 3 more not named here

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-24.

Repositories linked to this paper

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

Abstract

Face recognition is central to many authentication, security, and personalized applications. Yet, it suffers from significant privacy risks, particularly arising from unauthorized access to sensitive biometric data. This paper introduces CryptoFace, the first end-to-end encrypted face recognition system with fully homomorphic encryption (FHE). It enables secure processing of facial data across all stages of a face-recognition process-feature extraction, storage, and matching-without exposing raw images or features. We introduce a mixture of shallow patch convolutional networks to support higher-dimensional tensors via patch-based processing while reducing the multiplicative depth and thus inference latency. Parallel FHE evaluation of these networks ensures near-resolution-independent latency. On standard face recognition benchmarks, CryptoFace significantly accelerates inference and increases verification accuracy compared to the state-of-the-art FHE neural networks adapted for face recognition. CryptoFace will facilitate secure face recognition systems requiring robust and provable security. The code is available at https: //github.com/human-analysis/CryptoFace.

For agents

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

get_harvested_code_for_paper("2509.00332")
get_code_for_paper("2509.00332")
have("2509.00332")

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

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

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

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

Connect an agent — have() is free.