Face verification turns two face images into embeddings (vectors) and compares them. If their similarity is above a threshold, they're declared the same person. Every threshold makes two kinds of mistake: a false match (an impostor accepted, measured as FMR, also called FAR) and a false non-match (the real person rejected, FNMR, also called FRR). Raising the threshold lowers one and raises the other. The right threshold isn't a property of the model; it's a business decision, made from data, about which mistake costs more.
A schematic: real curves come from your own genuine and impostor pairs.
How does face verification work?
- Detect and align the face in each image (the selfie and the document portrait), so eyes and mouth sit in standard positions.
- Embed each face with a recognition model. Similar faces map to nearby vectors.
- Compare, usually with cosine similarity.
- Decide with a threshold.
This is 1:1 verification ("is this the claimed person?"). It's different from 1:N identification ("who is this, out of a million people?"), where errors scale with the size of the database. KYC is mostly 1:1, as one stage of the verification pipeline.
What are FMR and FNMR?
To measure them, you need labelled pairs:
- Genuine pairs: two images of the same person. FNMR is the share of these scoring below the threshold.
- Impostor pairs: two images of different people. FMR is the share of these scoring at or above the threshold.
Error rates at a threshold
import numpy as np
def error_rates(genuine: np.ndarray, impostor: np.ndarray, threshold: float):
fnmr = float(np.mean(genuine < threshold))
fmr = float(np.mean(impostor >= threshold))
return fmr, fnmr
def threshold_for_fmr(impostor: np.ndarray, target_fmr: float) -> float:
return float(np.quantile(impostor, 1 - target_fmr))
threshold_for_fmr picks the threshold that lets through the target share of impostors. You then read FNMR at that threshold, and that tells you how many real customers will fail.
How do you choose the threshold?
Start from the mistake that's more expensive, and fix its rate:
- Fix FMR first when a false accept is costly: bank accounts, payments, account recovery. Typical targets are 1 in 10,000 down to 1 in 1,000,000 impostor attempts. Then check that FNMR is acceptable.
- Plot FNMR against FMR across thresholds (a DET curve) to see the trade-off. A better model moves the whole curve down, which is the only way to improve both at once.
- Send the uncertain middle to a human instead of forcing a yes or no. A band just under the threshold, reviewed manually, often costs less than either kind of error.
Be careful with small numbers. Estimating an FMR of one in a million needs millions of impostor pairs; with 10,000 pairs, "zero false matches" says very little.
What moves the numbers in real KYC?
Benchmarks use clean photos. Real verification compares a phone selfie with a small, printed, sometimes years-old document portrait, and the error rates move with:
- Image quality: glare on the card, low light, motion blur, heavy compression.
- Ageing: a passport photo can be ten years old. The gap between genuine scores and impostor scores shrinks as the age difference grows.
- Demographics: NIST's evaluations (NIST IR 8280, 2019) found error rates for many algorithms varied by age, sex and race, with false match rates often differing by large factors between groups. Measure FMR and FNMR per group on your own data before choosing one global threshold.
- Attacks: a high similarity score from a printed photo is still a "match". That's why liveness detection runs alongside face matching.
The checklist
- Pick the threshold from your own genuine and impostor pairs, not a vendor default.
- Fix the costly error rate first, then measure the other.
- Report rates with sample sizes, and per demographic group.
- Keep a manual review band for borderline scores.
- Log scores, not just decisions, so you can re-tune later without re-running every verification.
Related: how passport MRZ check digits work, OCR for Arabic, Urdu and other scripts, and why a classifier's confident output still needs checking, from my AI code detector post-mortem. More of my work is on the home page.
The same threshold trade-off applies to spotting reused document photos: see perceptual hashing for KYC fraud.
A threshold only means what you think if the scores are calibrated: see calibration, ECE and temperature scaling.
Where the threshold sits in the whole selfie check: how KYC selfie verification works.
Written by Ali Ahmed (QuantumBreakz), AI engineer in Lahore · Original article

Top comments (2)
The same trade-off shows up in sanctions name screening, and the threshold is just as hard to justify without data. In my tests moving from 85 to 90 cut false alerts by about three quarters, but nickname-style variations ("Sasha" for "Aleksandr") started slipping through. Do you see the same thing in face matching, where one global threshold behaves very differently across subgroups?
Yes, and it's the same shape of problem. NIST's demographic evaluation (NIST IR 8280) found that for many algorithms the false match rate at a single fixed threshold differed between age, sex and race groups, sometimes by large factors. So one global threshold gives you one overall FMR, but each subgroup gets its own. The practical answer is to measure FMR and FNMR per group on your own data, with sample sizes, and choose the threshold so the worst group still meets your FMR target, rather than tuning it to the average.
On the nickname point, I don't think a threshold can fix that one. I scored a few pairs with Jaro-Winkler: "Sasha" vs "Aleksandr" is 0.64, "Bob" vs "Robert" 0.50, "Bill" vs "William" 0.73. They're nowhere near 0.85, so no reasonable threshold catches them without flooding you with false alerts. They need a separate path: expand names through a nickname or alias table before the fuzzy comparison. Then the threshold only has to handle spelling and transliteration, which it's actually good at.
Your 85 → 90 result is a good example of why the threshold should come from labelled pairs (known variants that must match, known different people that mustn't) measured at several cut-offs, not from intuition.