Robots Atlas>ROBOTS ATLAS
Computer Vision

Facial Recognition

2014ActivePublished: 23 September 2026Updated: 23 September 2026Published
Key innovation
The shift from hand-crafted features to learned face embeddings in a metric space where distance directly encodes identity โ€” enabling large-scale open-set 1:N identification.
Category
Computer Vision
Abstraction level
System
Operation level
ModelInferenceApplication
Use cases
Device unlocking (smartphones, laptops)Access control and security systemsBorder and passport control (e-gates)Human-robot interaction (HRI) โ€” robots recognizing peopleService and assistant personalizationPayment authentication and bankingVideo analytics and surveillance

How it works

The facial recognition pipeline has four main stages. (1) Face detection โ€” locating faces in the image (e.g. the Viola-Jones cascade or MTCNN/RetinaFace networks). (2) Alignment โ€” geometric normalization of the face relative to detected landmarks (eyes, nose, mouth) to reduce pose variance. (3) Embedding extraction โ€” a deep convolutional network maps the aligned face to a fixed-length vector (e.g. 128 or 512 dimensions), trained with a metric loss (triplet loss in FaceNet) or a margin-based softmax loss (ArcFace, CosFace, SphereFace) so that embeddings of the same person are close and different people are far apart. (4) Comparison โ€” for 1:1 verification a distance (cosine or Euclidean) is computed and compared to a threshold; for 1:N identification the query embedding is compared against a gallery of known identities and the nearest is selected (or rejected if it exceeds the threshold).

Problem solved

Automatic, contactless establishment or confirmation of a person's identity from a face image under varying illumination, pose, expression, and aging. Classical hand-crafted-feature methods generalized poorly; learned embeddings solve the open-set identity problem without retraining the model for each new person.

Components

Face detectorPipeline input โ€” detecting and cropping the face region

Locates faces in the image, returning bounding boxes and often facial landmarks. Examples: Viola-Jones, MTCNN, RetinaFace.

INRGB image of arbitrary resolution.
OUTBounding boxes and landmarks for N faces.

Official

Face alignmentPreprocessing before feature extraction

Normalizes face geometry relative to landmarks (affine warp to a canonical layout), reducing pose variance.

INCropped face and its landmarks.
OUTAligned, cropped face image of fixed size.

Official

Embedding network (backbone)Recognition core โ€” producing the identity embedding

A deep convolutional network (e.g. ResNet, Inception) mapping the aligned face to a fixed-length feature vector. Trained with a metric or margin-based loss.

INAligned face image.
OUTEmbedding vector, typically D = 128 (FaceNet) or 512 (ArcFace).
FaceNet (triplet loss, 128-d)128-dimensional embedding trained with triplet loss (Google, 2015).
ArcFace (additive angular margin, 512-d)Embedding trained with additive angular margin loss (2019).

Official

Matcher / comparatorPipeline output โ€” identity decision

Computes similarity (cosine or Euclidean distance) between embeddings and decides: 1:1 verification against a threshold or 1:N identification via nearest-neighbor search in the gallery.

INQuery embedding and gallery of embeddings.
OUTIdentity (1:N) or binary decision (1:1).

Official

Implementation

Implementation pitfalls
Demographic biasCritical

Models exhibit uneven accuracy across demographic groups (gender, ethnicity, age), as confirmed e.g. by NIST FRVT studies.

Fix:Balanced training sets, fairness audits, per-group threshold calibration, and testing on diverse benchmarks.
Spoofing vulnerabilityHigh

Systems without liveness detection can be fooled by a photo, video, or 3D mask (presentation attack).

Fix:Liveness detection, depth/IR cameras, and anti-spoofing measures.
Decision threshold calibrationMedium

A poorly chosen threshold yields an unfavorable trade-off between false acceptance (FAR) and false rejection (FRR).

Fix:Calibrate the threshold on representative data and choose the operating point per security requirements.
Sensitivity to alignment and poseMedium

Landmark detection errors or large pose deviations degrade embedding quality.

Fix:Robust alignment, pose augmentation in training, and rejection of low-quality samples.

Evolution

Original paper ยท 2014 ยท CVPR 2014 ยท Yaniv Taigman
DeepFace: Closing the Gap to Human-Level Performance in Face Verification
Yaniv Taigman, Ming Yang, Marc'Aurelio Ranzato, Lior Wolf
1991
Eigenfaces
Inflection point

Turk and Pentland introduce Eigenfaces โ€” the first practical automated face recognition method based on PCA.

2001
Viola-Jones detector

The Viola-Jones cascade enables real-time face detection, becoming a foundation for practical systems.

2014
DeepFace
Inflection point

Facebook presents DeepFace โ€” a deep CNN reaching 97.35% on LFW, close to human level.

2015
FaceNet
Inflection point

Google introduces FaceNet with triplet loss and 128-dimensional embeddings, reaching 99.63% on LFW.

2016
MTCNN

Zhang et al. propose MTCNN โ€” a CNN cascade jointly performing face detection and landmark alignment.

2019
ArcFace
Inflection point

Deng et al. introduce Additive Angular Margin Loss (ArcFace), significantly increasing embedding discriminability.

Hyperparameters (configurable axes)

Embedding dimensionHigh

Length of the face feature vector. Trade-off between discriminability and memory/comparison cost.

128FaceNet
512ArcFace / most modern models
Angular margin (m)Critical

Margin added in the loss function (ArcFace/CosFace) to increase separation between identity classes.

0.5Typical ArcFace margin
Feature scale (s)Medium

Scaling factor applied to normalized features before softmax in margin-based losses.

64Typical ArcFace scale value
Decision thresholdCritical

Distance/similarity threshold determining match acceptance; controls the FAR/FRR trade-off.

Backbone depthHigh

Architecture and depth of the feature-extraction network (e.g. ResNet-50, ResNet-100).

Computational complexity

Time complexity: O(N ยท D). Space complexity: O(N ยท D).

Execution paradigm

Primary mode
Dense

Embedding extraction is a dense CNN forward pass; all paths are active for every input.

Activation pattern
All paths active

Parallelism

Parallelism level
Fully parallel

Embedding extraction for many faces and gallery comparisons are fully parallelizable (batching, matrix multiplications).

Scope
TrainingInference

Hardware requirements

Primary

Training and inference of deep CNNs benefit from parallel matrix multiplications on GPU tensor cores.

Possible

Single-face inference and embedding comparisons are feasible on CPU at small scale.