SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.01141 · September 2026

Revisiting Face Recognition for Monozygotic Twins: The Celeb Twins Test Set

Kevin Bowyer, Haiyu Wu, Michael Zang, Mrinal Sharma, Kevin W. Bowyer

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 3 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.01141.json · badge: /api/ran/2609.01141.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
mzang20/CTTS canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_accuracy Ran
ran, honoured the contract we drafted
mzang20/CTTS/verification.py
pointer only (licence: MIT); the stored copy get_code serves, from zrui94/insight_mx, is pointer only (licence: NONE) · get_code("f975336b5d5f1a80")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zrui94/insight_mx, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_roc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mzang20/CTTS/verification.py
code served (permissive licence) · get_code("9099bff90b8fbd1d")
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 tuple. 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
import math
from sklearn.model_selection import KFold

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

# Create small sample data
nrof_pairs = 8
embedding_dim = 4

# Create embeddings for pairs
embeddings1 = np.random.randn(nrof_pairs, embedding_dim).astype(np.float32)
embeddings2 = np.random.randn(nrof_pairs, embedding_dim).astype(np.float32)

# Create actual_issame labels (some pairs are same, some are different)
actual_issame = np.array([True, True, False, False, True, False, True, False], dtype=bool)

# Create thresholds to test
thresholds = np.linspace(0.0, 1.0, 5)

# Build ARGS dictionary with all parameters
ARGS = {
    'thresholds': thresholds,
    'embeddings1': embeddings1,
    'embeddings2': embeddings2,
    'actual_issame': actual_issame,
    'nrof_folds': 2,
    'pca': 0,
    'cosine': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
collect_twins Ran
ran; our contract draft was wrong, not the code
mzang20/CTTS/pos_neg.py
code served (permissive licence) · get_code("e99b4aec6adaf773")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 tempfile
from pathlib import Path

# Create a temporary directory structure that mimics the expected layout
temp_dir = tempfile.TemporaryDirectory()
celeb_twins_path = Path(temp_dir.name)

# Create fold_0 directory
fold_0 = celeb_twins_path / "fold_0"
fold_0.mkdir()

# Create a twin pair folder
twin_pair_folder = fold_0 / "pair_001"
twin_pair_folder.mkdir()

# Create twin individual folders
twin_1_folder = twin_pair_folder / "twin_1"
twin_1_folder.mkdir()

twin_2_folder = twin_pair_folder / "twin_2"
twin_2_folder.mkdir()

# Create 12 jpg files in each twin folder
for i in range(12):
    (twin_1_folder / f"image_{i:02d}.jpg").touch()
    (twin_2_folder / f"image_{i:02d}.jpg").touch()

# Create another fold for robustness
fold_1 = celeb_twins_path / "fold_1"
fold_1.mkdir()

twin_pair_folder_2 = fold_1 / "pair_002"
twin_pair_folder_2.mkdir()

twin_3_folder = twin_pair_folder_2 / "twin_3"
twin_3_folder.mkdir()

twin_4_folder = twin_pair_folder_2 / "twin_4"
twin_4_folder.mkdir()

for i in range(12):
    (twin_3_folder / f"image_{i:02d}.jpg").touch()
    (twin_4_folder / f"image_{i:02d}.jpg").touch()

ARGS = {
    "celeb_twins_path": celeb_twins_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
conv1x1 Ran
ran; our contract draft was wrong, not the code
mzang20/CTTS/model/iresnet.py
code served (permissive licence) · get_code("158bf4c3a5f11f04")
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) and returned Conv2d. 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
from torch import nn

torch.manual_seed(0)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
mzang20/CTTS/model/iresnet.py
code served (permissive licence) · get_code("8484c2714df844f4")
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 Conv2d. 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

torch.manual_seed(0)

ARGS = {
    'in_planes': 3,
    'out_planes': 64,
    'stride': 1,
    'groups': 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
distance_ Ran
ran, honoured the contract we drafted
mzang20/CTTS/verification.py
code served (permissive licence) · get_code("6c0dcd2842566e2b")
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 (2,) 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
import math

torch_available = True
try:
    import torch
except ImportError:
    torch_available = False

# Create small embedding matrices
# embeddings0 and embeddings1 should be 2D arrays (batch_size, embedding_dim)
# Using distinct sizes: batch_size=2, embedding_dim=4
np.random.seed(0)

embeddings0 = np.random.randn(2, 4).astype(np.float32)
embeddings1 = np.random.randn(2, 4).astype(np.float32)

# Normalize the embeddings to avoid division by zero issues
embeddings0 = embeddings0 / (np.linalg.norm(embeddings0, axis=1, keepdims=True) + 1e-8)
embeddings1 = embeddings1 / (np.linalg.norm(embeddings1, axis=1, keepdims=True) + 1e-8)

ARGS = {
    "embeddings0": embeddings0,
    "embeddings1": embeddings1,
}
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 ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) 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
get_complete_twin_pairs Ran
ran; our contract draft was wrong, not the code
mzang20/CTTS/pos_neg.py
code served (permissive licence) · get_code("715248f8247f14f5")
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.

# Analyze the function to understand what it needs
# The function takes all_twins which should be an iterable of dicts
# Each dict needs 'fold_id' and 'twin_pair' keys
# The function groups them by (fold_id, twin_pair) and returns only complete pairs (len == 2)

all_twins = [
    {'fold_id': 1, 'twin_pair': 'A', 'name': 'twin1_a'},
    {'fold_id': 1, 'twin_pair': 'A', 'name': 'twin1_b'},
    {'fold_id': 1, 'twin_pair': 'B', 'name': 'twin2_a'},
    {'fold_id': 2, 'twin_pair': 'C', 'name': 'twin3_a'},
    {'fold_id': 2, 'twin_pair': 'C', 'name': 'twin3_b'},
    {'fold_id': 2, 'twin_pair': 'D', 'name': 'twin4_a'},
    {'fold_id': 3, 'twin_pair': 'E', 'name': 'twin5_a'},
    {'fold_id': 3, 'twin_pair': 'E', 'name': 'twin5_b'},
]

ARGS = {
    'all_twins': all_twins
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
load_from_folders Ran
ran; our contract draft was wrong, not the code
mzang20/CTTS/prepare_test_images.py
code served (permissive licence) · get_code("a3776713b3d7a004")
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 tuple. 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 tempfile
import numpy as np
from pathlib import Path
import cv2

# Create a temporary directory structure with the expected folders and images
temp_dir = tempfile.mkdtemp()
pairs_folder = Path(temp_dir) / "pairs"
gen_folder = pairs_folder / "gen"
imp_folder = pairs_folder / "imp"

gen_folder.mkdir(parents=True, exist_ok=True)
imp_folder.mkdir(parents=True, exist_ok=True)

# Constants from the function
NUM_FOLDS = 10
TWINS_PER_FOLD = 8
POSITIVE_PER_PAIR = 132
NEGATIVE_PER_PAIR = 132
GEN_PER_FOLD = TWINS_PER_FOLD * POSITIVE_PER_PAIR
IMP_PER_FOLD = TWINS_PER_FOLD * NEGATIVE_PER_PAIR

# Create gen folders with images
for i in range(NUM_FOLDS * GEN_PER_FOLD):
    pair_dir = gen_folder / str(i)
    pair_dir.mkdir(exist_ok=True)
    # Create 2 dummy jpg images
    for j in range(2):
        img_path = pair_dir / f"image_{j}.jpg"
        # Create a small dummy image (112x112 RGB)
        dummy_img = np.random.randint(0, 256, (112, 112, 3), dtype=np.uint8)
        cv2.imwrite(str(img_path), cv2.cvtColor(dummy_img, cv2.COLOR_RGB2BGR))

# Create imp folders with images
for i in range(NUM_FOLDS * IMP_PER_FOLD):
    pair_dir = imp_folder / str(i)
    pair_dir.mkdir(exist_ok=True)
    # Create 2 dummy jpg images
    for j in range(2):
        img_path = pair_dir / f"image_{j}.jpg"
        # Create a small dummy image (112x112 RGB)
        dummy_img = np.random.randint(0, 256, (112, 112, 3), dtype=np.uint8)
        cv2.imwrite(str(img_path), cv2.cvtColor(dummy_img, cv2.COLOR_RGB2BGR))

ARGS = {
    "pairs_folder": str(pairs_folder),
    "image_size": (112, 112)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
organize_pairs_by_fold Ran
ran; our contract draft was wrong, not the code
mzang20/CTTS/pos_neg.py
code served (permissive licence) · get_code("75ddb8d7e493509c")
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 tuple. 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 numpy as np

ARGS = {
    "complete_twin_pairs": {
        (0, 0): ("twin_data_0_0", [1, 2, 3]),
        (0, 1): ("twin_data_0_1", [4, 5, 6]),
        (0, 2): ("twin_data_0_2", [7, 8, 9]),
        (0, 3): ("twin_data_0_3", [10, 11, 12]),
        (0, 4): ("twin_data_0_4", [13, 14, 15]),
        (0, 5): ("twin_data_0_5", [16, 17, 18]),
        (0, 6): ("twin_data_0_6", [19, 20, 21]),
        (0, 7): ("twin_data_0_7", [22, 23, 24]),
        (1, 0): ("twin_data_1_0", [25, 26, 27]),
        (1, 1): ("twin_data_1_1", [28, 29, 30]),
        (1, 2): ("twin_data_1_2", [31, 32, 33]),
        (1, 3): ("twin_data_1_3", [34, 35, 36]),
        (2, 0): ("twin_data_2_0", [37, 38, 39]),
        (2, 1): ("twin_data_2_1", [40, 41, 42]),
    }
}
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 tuple — a tuple output has no array shape of its own; none is 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
read_image Ran
ran; our contract draft was wrong, not the code
mzang20/CTTS/prepare_test_images.py
code served (permissive licence) · get_code("06901cf7d9135dc7")
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 3, dtype family int, shape (48, 64, 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 cv2
import numpy as np
import tempfile
import os

# Create a temporary image file for testing
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.png")

# Create a simple test image using numpy and cv2
test_image = np.random.randint(0, 255, (100, 120, 3), dtype=np.uint8)
cv2.imwrite(temp_image_path, test_image)

ARGS = {
    "image_path": temp_image_path,
    "image_size": (64, 48)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (48, 64, 3) — shape (48, 64, 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
get_vit Not yet run
unverified (harvested, no recorded run)
mzang20/CTTS/model/vit.py
code served (permissive licence) · get_code("76f9fd079865bb01")
How it ran

no invocation recorded.

get_vit Not yet run
unverified (harvested, no recorded run)
mzang20/CTTS/model/vit_fast.py
code served (permissive licence) · get_code("b58d96417b8e47c0")
How it ran

no invocation recorded.

iresnet Not yet run
unverified (harvested, no recorded run)
mzang20/CTTS/model/iresnet.py
code served (permissive licence) · get_code("7b4577107082bb4c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 0 later) and 9 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
conv1x1 431 other papers
429 dated earlier, 1 the same month, 1 undated · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv3x3 13 other papers
13 dated earlier · 1 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1904.01169 (2019-04)
Res2Net: A New Multi-scale Backbone Architecture
1907.11561 (2019-07)
Deep Learning for Classification and Severity Estimation of Coffee Leaf Biotic Stress
and 10 more not named here
calculate_accuracy 12 other papers
12 dated earlier
1503.03832 (2015-03)
FaceNet: A Unified Embedding for Face Recognition and Clustering
1607.08221 (2016-07)
MS-Celeb-1M: A Dataset and Benchmark for Large-Scale Face Recognition
1703.07737 (2017-03)
In Defense of the Triplet Loss for Person Re-Identification
and 9 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-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

Past literature on face recognition for monozygotic (("identical") twins points to facial marks and mirror asymmetry as possible directions for improved accuracy of twins recognition. The Celeb Twins Test Set (CTTS) contains web-scraped image pairs for 80 sets of celebrity twins. It is the only twins test set with meta-data for twins with distinguishing skin marks and possible mirror asymmetry. CTTS is organized in the manner of face verification test sets such as LFW, CALFW, CPLFW, CFP-FP, and AgeDB-30. Current deep CNN matchers can achieve over 76% accuracy in classifying CTTS same-person / different-person image pairs. We show that current matchers do not make use of skin marks, or asymmetry, and discuss reasons for this. Finally, we discuss the feasibility of using generative AI tools such as Grok, ChatGPT and Gemini to create images of imagined monozygotic twins as a means to increase representation of twins in face recognition training sets.

For agents

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

get_harvested_code_for_paper("2609.01141")
get_code_for_paper("2609.01141")
have("2609.01141")

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

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

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

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

Connect an agent — have() is free.