CryptoFace: End-to-End Encrypted Face Recognition


Wei Ao

Computer Vision over Homomorphically Encrypted Data

CVPR 2025 Tutorial

June 12, 2025

Face Recognition

theories, applications and risks

Face recognition integrates into daily practical applications


deep Face recognition: to learn discriminative features

What are the privacy and security risks in Face Recognition?


CryptoFace: End-to-End Encrypted Face Recognition

All-stage security: feature extraction, storage and matching.

Encrypting Feature or Image?

Encrypting Feature with FHE

Template Recovery Attack

Template Recovery Attack

CryptoFace: End-to-End Encrypted Face Recognition

CryptoFace: End-to-End Encrypted Face Recognition

CryptoFace: End-to-End Encrypted Face Recognition

CryptoFaceNet: a mixture of CNNs

Co-designing of neural architecture and FHE system.

Convolutional Neural Networks over FHE

Depth-Optimal Convolutional Block

Mixture of Shallow Patch CNNs

Mixture of Shallow Patch CNNs

polynomial approximation for similarity measure

CryptoFace evaluation on standard face datasets

Face verification task

Encrypted Face Recognition Evaluation

Hardware & Software
  • Amazon AWS, r5.24xlarge
  • 96 CPUs, 768 GB RAM
  • Microsoft SEAL, 3.6

Encrypted Face Recognition Evaluation

Approach Resolution Backbone 5 Datasets Latency(s) Memory(GB)
Network Params Boot Average Accuracy1
MPCNN 64x64 ResNet32 0.53M 31 85.60 7,367 286
64x64 ResNet44 0.73M 43 89.64 9,845 286
AutoFHE 64x64 ResNet32 0.53M 8 82.69 4,001 286
CryptoFace 64x64 CryptoFaceNet4 0.94M 1 89.42 1,364 269
CryptoFace 96x96 CryptoFaceNet9 2.12M 1 90.99 1,395 276
CryptoFace 128x128 CryptoFaceNet16 3.78M 1 91.46 1,446 277
  1. Average Accuracy: the average one-to-one verification accuracy across five face datasets, ie LFW, AgeDB, CALFW, CPLFW, CFP-FP
7.2x speedup (2.7 hours → 23 mins), while preserving accuracy (89.64 vs 89.42)
reduce memory footprint by 17G
near-constant latency across different resolutions

Computational Cost Per Operation

CryptoFace speeds up inference and improves verification accuracy.

CryptoFace is scalable to high resolution

Evaluation on IJB-B and IJB-C

Summary and Takeaways

    • CryptoFace is the first end-to-end encrypted face recognition.
    • CryptoFaceNet is efficient and scalable homomorphic architecture.
    • End-to-End Secure Face Recognition system demonstrates security, efficacy and good performance on encrypted benchmarks.