Enhancing Privacy in Face Analytics Using Fully Homomorphic Encryption

Bharat Yalavarthi, Arjun Ramesh Kaushik, Arun Ross, Vishnu Boddeti, Nalini K. Ratha

Abstract

Modern face recognition systems rely on high-dimensional embeddings that, while effective for identification, often leak sensitive "soft biometric" information such as age, gender, and ethnicity. This paper introduces a multi-layered privacy framework designed to suppress these secondary attributes without compromising primary identification accuracy. By integrating Matryoshka Representation Learning (MRL) for dimensionality reduction, Fully Homomorphic Encryption (FHE) for secure computation, and PolyProtect for template transformation, the proposed system achieves near-random-chance suppression of sensitive attributes with less than a 2.5% loss in identification performance.

1. Introduction

Face recognition technology has become ubiquitous, yet the mathematical templates (embeddings) used for identity verification contain latent data that can be exploited. Even when a system is intended solely for identification, unauthorized parties can often extract soft biometrics from these embeddings. Existing protection methods, such as PolyProtect, frequently face a "security-utility tradeoff," where maintaining high accuracy requires allowing data overlaps that make the process vulnerable to inversion attacks. Furthermore, traditional encryption requires data to be decrypted during the matching process, creating a window of vulnerability. This research addresses these gaps by proposing a pipeline that ensures data remains protected even during computation.

2. Methodology

The authors propose a four-stage pipeline to secure face templates and suppress sensitive information leakage:

2.1 Dimensionality Reduction via MRL

To mitigate the computational overhead of encrypted processing, the framework utilizes Matryoshka Representation Learning (MRL). This technique compresses 512-dimensional face embeddings (derived from models like FaceNet or AdaFace) into 64-dimensional vectors. This reduction is critical for minimizing the computational "depth" required for subsequent homomorphic operations without significantly impacting the model's discriminative power.

2.2 Secure Computation with FHE

The system employs the CKKS (Cheon-Kim-Kim-Song) Fully Homomorphic Encryption scheme. FHE allows mathematical operations, specifically the calculation of Cosine Similarity for identity matching, to be performed directly on encrypted data. This ensures that the raw face embeddings are never exposed in plaintext during the matching process.

2.3 Template Transformation via PolyProtect

To provide a secondary layer of defense, PolyProtect is applied on top of the encrypted data. PolyProtect maps embeddings into secure templates using multivariate polynomials. This serves as a safeguard against potential FHE secret key compromises; even if the encryption is breached, the underlying identity features remain transformed and non-invertible.

2.4 Optimization: The "Fold and Add" Algorithm

Summing elements within a ciphertext is a computationally expensive operation in FHE. The authors implemented a "Fold and Add" algorithm that iteratively folds the encrypted array in half. This method provides significant speed improvements over traditional rotation-based summation methods, making the complex math required for FHE viable for real-world application.

3. Experimental Setup

The framework was evaluated using two primary datasets:

  • CelebSet: Comprising 80 identities and over 72,000 images, annotated for gender, age, and ethnicity.
  • Balanced Faces in the Wild (BFW): Featuring 100 identities balanced across eight demographic groups. For consistency, age labels for BFW were generated using a pre-trained predictive model.

4. Key Insights and Results

4.1 Synergy of FHE and PolyProtect

A primary finding of the study is the complementary nature of FHE and PolyProtect. While PolyProtect can be vulnerable to inversion attacks when tuned for high utility, FHE prevents such attacks by keeping the polynomial inputs encrypted. Conversely, PolyProtect acts as a fail-safe should the FHE layer be compromised.

4.2 Natural Attribute Suppression

Interestingly, the researchers observed that performing analytics within the FHE domain naturally suppresses soft biometric features. The inherent noise in FHE approximations appears to disproportionately affect the features used by neural networks to predict age or gender, while leaving primary identity features largely intact. On the CelebSet dataset, gender prediction accuracy dropped from 98.12% in an unprotected state to 52.22% (near-random) when protected.

4.3 Performance and Efficiency

Despite the rigorous encryption layers, identity retention remained robust. In most experimental configurations, the drop in identification accuracy was less than 1%, and it never exceeded 2.5%. Furthermore, the "Fold and Add" optimization demonstrated exponential speed gains as ciphertext size increased, validating the efficiency of the proposed pipeline.

5. Conclusion and Future Work

This research demonstrates that high-level privacy in face analytics is achievable without sacrificing significant utility. By combining MRL, FHE, and PolyProtect, the framework successfully masks sensitive soft biometrics while maintaining reliable identification. Future work will focus on exploring more efficient FHE schemes to further reduce computational overhead and testing the framework on larger, more diverse "in-the-wild" datasets to ensure the generalizability of the observed suppression effects.

Summary updated

BibTeX
@inproceedings{yalavarthi2024enhancing,
  author = {Bharat Yalavarthi and Arjun Ramesh Kaushik and Arun Ross and Vishnu Boddeti and Nalini K. Ratha},
  title = {{Enhancing Privacy in Face Analytics Using Fully Homomorphic Encryption}},
  booktitle = {FG},
  year = {2024},
  doi = {10.1109/fg59268.2024.10581983},
}
Figure