Privacy-Preserving Visual Learning Using Doubly Permuted Homomorphic Encryption

Ryo Yonetani, Vishnu Naresh Boddeti, Kris M. Kitani, Yoichi Sato

Introduction

In the era of deep learning, the performance of computer vision models is heavily dependent on the availability of large-scale, diverse datasets. However, much of the most valuable data—such as personal photo collections or medical imagery—is inherently sensitive. This creates a "data dilemma": how can we train robust visual classifiers without compromising the privacy of individual users?

Traditional approaches to privacy-preserving machine learning typically fall into two categories. Differential Privacy (DP) adds statistical noise to data or model updates, providing a mathematical guarantee of privacy but often at the cost of significant model accuracy. On the other hand, Homomorphic Encryption (HE) allows computations to be performed directly on encrypted data, preserving full accuracy. However, HE is computationally expensive; encrypting high-dimensional visual features (often exceeding 2000 dimensions) can take several minutes per update, making it impractical for iterative training.

This paper introduces Doubly Permuted Homomorphic Encryption (DPHE), a framework designed to bridge this gap. DPHE achieves the high accuracy of HE while providing a 10x speedup, making it feasible for high-dimensional visual learning tasks.

The DPHE Framework

The DPHE framework operates within a distributed learning environment. As illustrated in Figure 1, an aggregator maintains a global classifier $\bar{w}_t$, which is shared with participating users. Each user updates this classifier locally using their private data to produce a local update $w_t^{(i)}$. These updates are then sent back to the aggregator, which averages them to produce the next global model $\bar{w}_{t+1}$.

Overview of the distributed learning process where an aggregator averages locally-updated classifiers from multiple users.

To ensure privacy and efficiency, DPHE employs three core strategies:

1. Sparsity Constraints

Visual classifiers are often over-parameterized. By applying Elastic Net regularization during local training, the authors force the updates $w_t^{(i)}$ to be sparse. This means that in any given training round, only a small fraction of the model's weights change significantly.

2. Selective Encryption

Rather than encrypting the entire high-dimensional weight vector, DPHE only encrypts the non-zero values of the sparse update. By using the Paillier cryptosystem on only a subset of dimensions, the computational overhead is drastically reduced.

3. Double Permutation

Hiding the values of the updates is insufficient if the indices of the updated weights leak information about the user's private data. DPHE introduces a double-shuffling mechanism to protect these indices:

  • User-Shared (U-S) Permutation: A shuffle known to all users but hidden from the aggregator.
  • User-Aggregator (U-A) Permutation: A unique shuffle for each user that prevents other users from identifying which features were updated if they were to intercept communications.

The technical flow of this encryption and permutation process is detailed in Figure 3. By splitting the update into values and indices, encrypting them, and applying these permutations, the aggregator can compute the sum of updates without ever seeing the raw values or knowing which specific features any individual user modified.

The DPHE technical pipeline: local updates are encrypted and permuted before being securely summed and reordered by the aggregator.

Experimental Evaluation

The authors evaluated DPHE across several challenging datasets, including Caltech101, Caltech256, CelebA (for face attribute recognition), and a first-person life-logging dataset (for sensitive place detection).

Accuracy and Utility

Unlike Differential Privacy methods, DPHE does not introduce noise into the learning process. Consequently, it maintains high utility. On the Caltech101 dataset, DPHE achieved an accuracy of 89.3%, which is comparable to non-private state-of-the-art methods and significantly outperforms DP-based baselines like PRR10 (41.6%) and RA12 (83.8%).

Computational Efficiency

The primary advantage of DPHE is its speed. By leveraging sparsity, the system can achieve a 10x speedup over standard HE. For a Caltech101 classifier, increasing the sparsity level to 95.6% reduced the encryption time from 620 seconds to just 62 seconds, with only a marginal 1.5% decrease in final model accuracy.

Conclusion and Future Work

DPHE represents a significant step forward in practical privacy-preserving visual learning. By combining the cryptographic strength of Homomorphic Encryption with the efficiency of sparse updates and double permutation, it enables collaborative training on sensitive data without the typical accuracy-efficiency trade-offs.

However, some limitations remain. The system currently requires at least three participating users ($N \ge 3$) to prevent the aggregator from deducing individual updates from the average. Additionally, the security model assumes "semi-honest" participants who follow the protocol. Future research may explore extending these techniques to more complex architectures, such as deep convolutional neural networks, and developing defenses against more sophisticated "model inversion" attacks.

Summary updated

BibTeX
@inproceedings{yonetani2017privacy,
  author = {Ryo Yonetani and Vishnu Naresh Boddeti and Kris M. Kitani and Yoichi Sato},
  title = {{Privacy-Preserving Visual Learning Using Doubly Permuted Homomorphic Encryption}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.225},
}
Figure