CryptoFace: End-to-End Encrypted Face Recognition

Wei Ao, Vishnu Naresh Boddeti

Introduction

Biometric data, such as facial templates, is inherently immutable. Unlike passwords, if a facial template is compromised, it cannot be reset, creating a significant privacy bottleneck for face recognition (FR) systems. While Fully Homomorphic Encryption (FHE) offers a potential solution by allowing mathematical operations on encrypted data, standard deep learning models are typically too deep for practical FHE implementation. Every multiplication in FHE increases "noise" in the ciphertext, eventually requiring a computationally expensive "bootstrapping" process to restore data readability.

Existing secure FR systems often compromise by requiring the client to perform feature extraction locally or by only encrypting the final matching step. CryptoFace overcomes these limitations by enabling a true end-to-end pipeline where the client only needs to encrypt the raw image, protecting both user privacy and the server's proprietary model.

End-to-end encrypted face recognition workflow compared to traditional feature-encryption methods.

The CryptoFaceNet Architecture

The core innovation of CryptoFace is CryptoFaceNet, an architecture specifically designed to operate within the constraints of FHE. Instead of a single deep network, CryptoFaceNet utilizes a Mixture of Shallow Patch CNNs (PCNNs).

As illustrated in the figure below, the system divides an input image into a grid of non-overlapping patches. Each patch is processed independently by a very shallow CNN. This approach offers several advantages:

  1. Parallelism over Depth: Shallow networks have low "multiplicative depth," minimizing the need for expensive bootstrapping. Since patches are independent, they are processed in parallel, making latency nearly independent of image resolution.
  2. Jigsaw Auxiliary Task: To prevent local patch networks from losing global context, the model is trained with an auxiliary jigsaw puzzle loss, forcing local features to retain spatial relationships.
  3. Distribution-Aware Polynomials: FHE struggles with non-linear functions like square roots. CryptoFace replaces these with second-degree polynomial approximations tailored to the data distribution, maintaining accuracy with minimal cost.
The CryptoFaceNet architecture uses a mixture of shallow patch CNNs and a jigsaw auxiliary task to maintain accuracy while minimizing multiplicative depth.

Key Results and Performance

CryptoFace was evaluated on standard benchmarks including LFW, AgeDB, and the large-scale WebFace4M dataset. The results demonstrate a significant leap in the practicality of encrypted biometrics:

  • Efficiency: CryptoFace achieves a 7x speedup over previous state-of-the-art FHE-adapted networks and reduces the RAM footprint by approximately 17GB.
  • Accuracy: The system improved one-to-one verification accuracy by up to +8.8% over existing FHE baselines, reaching 98.87% on the LFW benchmark.
  • Latency: End-to-end encrypted inference is performed in roughly 23 minutes. While not yet suitable for real-time consumer applications like smartphone unlocking, it represents a massive advancement for secure forensic or high-security database queries.

Conclusion

CryptoFace demonstrates that by rethinking neural network architecture for the encrypted domain—trading depth for parallel width—it is possible to achieve high-accuracy, end-to-end encrypted face recognition. Future work will focus on further reducing multiplicative depth and exploring hardware acceleration (FPGAs/ASICs) to bring encrypted biometrics closer to real-time performance.

Summary updated

BibTeX
@inproceedings{ao2025cryptoface,
  author = {Wei Ao and Vishnu Naresh Boddeti},
  title = {{CryptoFace: End-to-End Encrypted Face Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01788},
}
Figure