Engineering decisions
Report FAR and FRR, not just accuracy
A model that rejects almost everyone can post a near-zero false-acceptance rate while being useless. Reading false acceptances (a security risk) and false rejections (a usability risk) together is what exposed FaceNet, FaceNet512 and OpenFace as badly calibrated for this data.
Ten fresh samples instead of one big run
Each run draws a new random set of 500 genuine and 500 impostor pairs. That gives a run-to-run spread (ArcFace ± 0.8 points) at a tenth of the compute of scoring every model on all 15,235 pairs. The cost: models weren’t scored on identical pairs, so small differences between them are less certain than the table’s precision suggests.
The question
The goal was never a new face-recognition algorithm. It was to treat five well-known pretrained models (ArcFace, VGG-Face, FaceNet, FaceNet512 and OpenFace) as black boxes, run them through one identical pipeline, and find out how they actually trade false acceptances against false rejections.
Data and counts
Everything uses Labeled Faces in the Wild (LFW), real photos collected from the web with natural variation in pose, lighting, expression and occlusion. Keeping everyone with at least three images leaves 901 people and 7,606 images.
Two different counts appear in this project, and they mean different things:
- 15,235 unique pairs
- The full test set from generate_pairs.py: every same-person pair (6,225 genuine) plus each person against ten random others (9,010 impostor), with duplicates removed.
- 50,000 verifications
- The model comparison: 5 models × 10 runs × 1,000 pairs. Each run draws a fresh random sample of 500 genuine and 500 impostor pairs from the 901 people, unique within that run. It is not 50,000 different pairs, and the five models were not scored on the same pairs.
Five models, ten runs each
Each model ran at its default threshold. The table is the mean over its ten runs, computed from results/model_comparison_summary.csv; no pairs were skipped in any run.
| Model | Accuracy | FAR (impostor accepted) | FRR (genuine rejected) | Time per 1,000 pairs |
|---|---|---|---|---|
| ArcFace | 93.8% ± 0.8 | 1.6% | 10.7% | ~10 min |
| VGG-Face | 93.0% ± 0.7 | 2.2% | 11.8% | ~8 min |
| FaceNet | 78.6% ± 1.1 | 0.3% | 42.5% | ~13 min |
| FaceNet512 | 71.8% ± 1.0 | 0.02% | 56.4% | ~13 min |
| OpenFace | 51.1% ± 0.4 | 0.02% | 97.7% | ~5 min |
± is the standard deviation across the 10 runs. Times are on a laptop CPU.

Why the gap is so large
ArcFace had the best balance and low run-to-run variance; VGG-Face was a close, faster second. FaceNet, FaceNet512 and OpenFace almost never accepted an impostor, but only because they rejected most genuine pairs too: their default thresholds are badly miscalibrated for LFW’s pose and lighting variation. OpenFace rejected 97.7% of genuine pairs.

Threshold tuning
Default thresholds come from whatever data each model’s authors used, not LFW. Sweeping ArcFace’s threshold to 0.70 raised accuracy from 93.8% to 94.8% and cut false rejections from 10.7% to 8.8% with no meaningful change in false acceptance (1.6%). ArcFace’s ROC AUC was 0.979.
The general lesson: an out-of-the-box threshold is calibrated for someone else’s data, so any real deployment needs its own calibration step.


What I’d do next
- Rerun the comparison with enforce_detection on and at full resolution.
- Score every model on the same fixed pairs so model-to-model differences are paired comparisons.
- Try stronger detectors (RetinaFace, MTCNN) for difficult poses.
- Validate on a second benchmark such as IJB-C.
Technical detailsChecking the pipeline first · Looking at the errors
Checking the pipeline first
Before scaling up I sanity-checked the pipeline on a few of my own photos against public figures, then on a 100-pair LFW pilot (50 genuine, 50 impostor). The pilot file in the repository records 95 of 100 correct, with 3 genuine pairs rejected and 2 impostors accepted.
An early test also showed what the enforce_detection setting does: with it off, an image where no face is found is compared as a whole frame, which can produce a confident wrong answer. The comparison runs reported here still had it off; rerunning with it on, so undetectable faces are skipped, is on the list below.
Looking at the errors
ArcFace was also run over the full 15,235-pair set; the final report gives 94.87% accuracy, 10.55% false rejection and 1.39% false acceptance (per-pair results for that run aren’t in the repository). Pose changes, accessories such as glasses or hats, and lighting differences drove most false rejections; false acceptances were mostly low-resolution or partly obscured faces.

