Papers › Unified Negative Pair Generation toward Well-discriminative Feature Space for Face Recognition

Unified Negative Pair Generation toward Well-discriminative Feature Space for Face Recognition

22 Mar 2022arXiv:2203.11593archive 2025-07-28

Junuk Jung, Seonhoon Lee, Heung-Seon Oh, Yongjun Park, Joochan Park, Sungbin Son

The goal of face recognition (FR) can be viewed as a pair similarity optimization problem, maximizing a similarity set 𝒮ᵖ over positive pairs, while minimizing similarity set 𝒮ⁿ over negative pairs. Ideally, it is expected that FR models form a well-discriminative feature space (WDFS) that satisfies inf𝒮ᵖ > sup𝒮ⁿ. With regard to WDFS, the existing deep feature learning paradigms (i.e., metric and classification losses) can be expressed as a unified perspective on different pair generation (PG) strategies. Unfortunately, in the metric loss (ML), it is infeasible to generate negative pairs taking all classes into account in each iteration because of the limited mini-batch size. In contrast, in classification loss (CL), it is difficult to generate extremely hard negative pairs owing to the convergence of the class weight vectors to their center. This leads to a mismatch between the two similarity distributions of the sampled pairs and all negative pairs. Thus, this paper proposes a unified negative pair generation (UNPG) by combining two PG strategies (i.e., MLPG and CLPG) from a unified perspective to alleviate the mismatch. UNPG introduces useful information about negative pairs using MLPG to overcome the CLPG deficiency. Moreover, it includes filtering the similarities of noisy negative pairs to guarantee reliable convergence and improved performance. Exhaustive experiments show the superiority of UNPG by achieving state-of-the-art performance across recent loss functions on public benchmark datasets. Our code and pretrained models are publicly available.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.11593")

Code

Syntology Ran 2 of 14 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 2 ran · our draft was wrong.

By repository: official repository: 14 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jung-jun-uk/unpg officialmentioned in paperpytorchApache-2.0 report
tomas-gajarsky/facetorch mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 2 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
12unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jung-jun-uk/unpg. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

conv1x1 jung-jun-uk/unpg/recognition/models/iresnet.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 158bf4c3a5f11f04 · report
conv3x3 jung-jun-uk/unpg/recognition/models/iresnet.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 29df79c9fdb0cee8 · report
box_and_whisker_algorithm jung-jun-uk/unpg/recognition/models/build.py official repository unverified Apache-2.0 (permissive) · d5ef2a1cd275f515 · report
build_models jung-jun-uk/unpg/recognition/models/build.py official repository unverified Apache-2.0 (permissive) · 6f437f153ac1b10c · report
check_keys jung-jun-uk/unpg/detection/retinaface/loader.py official repository unverified Apache-2.0 (permissive) · da3669dabcdd0326 · report
conv_bn jung-jun-uk/unpg/detection/retinaface/models/net.py official repository unverified Apache-2.0 (permissive) · f5414e78ff7a815f · report
conv_bn1X1 jung-jun-uk/unpg/detection/retinaface/models/net.py official repository unverified Apache-2.0 (permissive) · bb07aa213e6aacc9 · report
conv_bn_no_relu jung-jun-uk/unpg/detection/retinaface/models/net.py official repository unverified Apache-2.0 (permissive) · aacb8f654f54d534 · report
convert_label_to_similarity jung-jun-uk/unpg/recognition/models/build.py official repository unverified Apache-2.0 (permissive) · 1797ec521871130c · report
get_affine_transform_matrix jung-jun-uk/unpg/detection/alignment.py official repository unverified Apache-2.0 (permissive) · 8a6f28d59833cee6 · report
get_reference_facial_points jung-jun-uk/unpg/detection/alignment.py official repository unverified Apache-2.0 (permissive) · 8e88e8cdf0c6402f · report
iresnet jung-jun-uk/unpg/recognition/models/iresnet.py official repository unverified Apache-2.0 (permissive) · 297f7fbb6b24d3d7 · report
remove_prefix jung-jun-uk/unpg/detection/retinaface/loader.py official repository unverified Apache-2.0 (permissive) · fdbe70b1f0ff1936 · report
warp_and_crop_face jung-jun-uk/unpg/detection/alignment.py official repository unverified Apache-2.0 (permissive) · a07ddf14857db52f · report

Tasks

Face IdentificationFace RecognitionFace Verification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Face Identification MegaFace Cos+UNPG Accuracy 99.27% #1 of 13 Archive leaderboard report
Face Identification MegaFace Arc+UNPG Accuracy 98.82% #3 of 13 Archive leaderboard report
Face Identification MegaFace Mag+UNPG Accuracy 98.03% #7 of 13 Archive leaderboard report
Face Verification IJB-B Arc+UNPG TAR @ FAR=0.001 96.6 #2 of 12 Archive leaderboard report
Face Verification IJB-B Arc+UNPG TAR @ FAR=0.01 97.7% #2 of 12 Archive leaderboard report
Face Verification IJB-B Arc+UNPG TAR@FAR=0.0001 95.04 #2 of 12 Archive leaderboard report
Face Verification IJB-B Mag+UNPG TAR @ FAR=0.001 96.5 #3 of 12 Archive leaderboard report
Face Verification IJB-B Mag+UNPG TAR @ FAR=0.01 97.63% #3 of 12 Archive leaderboard report
Face Verification IJB-B Mag+UNPG TAR@FAR=0.0001 95.21 #3 of 12 Archive leaderboard report
Face Verification IJB-B Cos+UNPG TAR @ FAR=0.001 96.5 #4 of 12 Archive leaderboard report
Face Verification IJB-B Cos+UNPG TAR @ FAR=0.01 97.36% #4 of 12 Archive leaderboard report
Face Verification IJB-B Cos+UNPG TAR@FAR=0.0001 94.99 #4 of 12 Archive leaderboard report
Face Verification IJB-C Mag+UNPG TAR @ FAR=1e-5 94.7% #7 of 26 Archive leaderboard report
Face Verification IJB-C Cos+UNPG TAR @ FAR=1e-3 97.57 #8 of 26 Archive leaderboard report
Face Verification IJB-C Cos+UNPG TAR @ FAR=1e-4 96.38% #8 of 26 Archive leaderboard report
Face Verification IJB-C Cos+UNPG TAR @ FAR=1e-5 94.47% #8 of 26 Archive leaderboard report
Face Verification IJB-C Cos+UNPG model R100 #8 of 26 Archive leaderboard report
Face Verification IJB-C Cos+UNPG training dataset MS1MV2 #8 of 26 Archive leaderboard report
Face Verification IJB-C Arc+UNPG TAR @ FAR=1e-3 97.51 #19 of 26 Archive leaderboard report
Face Verification IJB-C Arc+UNPG TAR @ FAR=1e-4 96.33% #19 of 26 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections