Contextualize differential privacy in image database: a lightweight image differential privacy approach based on principle component analysis inverse

Shiliang Zhang, Xuehui Ma, Hui Cao, Tengyuan Zhao, Yajie Yu, Zhuzhu WangarXiv 2022

Abstract

Differential Privacy (DP) is a robust framework for data protection, yet its application to image databases often faces a trade-off between image utility and computational complexity. This paper proposes a lightweight framework that applies DP to images by injecting noise into their principal components rather than raw pixels. By utilizing a Principal Component Analysis (PCA) inverse technique, the method reconstructs privatized images that remain useful for deep learning tasks while providing mathematically provable privacy guarantees.

Introduction

While Differential Privacy is well-established for tabular data, its application to high-dimensional image data remains challenging. Existing methods typically suffer from three main drawbacks: excessive noise that destroys semantic meaning, high computational overhead from generative models like DP-GANs, or a lack of "visible" data for inspection when DP is applied only to model gradients (DP-SGD). There is a clear need for a method that privatizes the database itself, allowing both humans and machines to evaluate the privacy-accuracy trade-off.

Methodology: The PCA-Inverse Pipeline

The proposed approach shifts the focus from pixel-level perturbation to feature-level privatization. The core pipeline consists of three stages:

  1. Dimensionality Reduction: PCA maps images into a lower-dimensional space of $d$ attributes, capturing the most significant features while discarding noise.
  2. Differential Privacy Injection: Laplace noise is added to these principal components based on a calculated sensitivity and a privacy budget ($\epsilon$).
  3. Visualization via PCA Inverse: A PCA inverse operation, aided by a regulator matrix to ensure stability, reconstructs the privatized images.
The proposed lightweight framework for image differential privacy using PCA and PCA inverse.

This framework allows for a "visible" privatized database that can be used directly for training deep learning models, balancing the competing demands of accuracy and privacy.

Experimental Setup

The researchers evaluated the framework using two distinct benchmarks:

  • MNIST Handwriting Digit Database: 70,000 grayscale images ($28 \times 28$ pixels) for digit recognition.
  • Facial Database: 5,886 color images ($250 \times 250$ pixels) for gender classification.

Results and Discussion

The experiments revealed critical insights into the relationship between privacy parameters and model performance.

Accuracy vs. Privacy Trade-off

For MNIST, a vanilla CNN achieved 98.68% accuracy. Under the DP framework, accuracy remained stable as the privacy budget $\epsilon$ increased. In gender classification, the vanilla model reached 90.24% accuracy, with the privatized version showing a steady climb toward this benchmark as privacy constraints were relaxed.

Visualizing Privacy

A key contribution of this work is the ability to visually inspect the impact of the privacy budget. As $\epsilon$ decreases (increasing privacy), individual features blur into group-level statistics, making individual contributions indistinguishable.

Visual grid of privatized MNIST digits across varying privacy budgets ($\epsilon$) and principal components ($d$).

The researchers also identified a "pitfall" region in the MNIST data where increasing the number of principal components ($d$) between 80 and 120 actually decreased accuracy. This suggests that adding more attributes can introduce more noise than signal if not carefully managed.

Conclusion

The PCA-inverse approach provides a scalable, lightweight alternative to complex generative models for image privatization. By contextualizing DP within the principal component space, the method maintains high utility for machine learning tasks while offering a visual intuition for privacy guarantees. Future work will explore the application of this method to more complex computer vision tasks such as object detection and segmentation.

Summary updated

BibTeX
@misc{zhang2022contextualize,
  author = {Shiliang Zhang and Xuehui Ma and Hui Cao and Tengyuan Zhao and Yajie Yu and Zhuzhu Wang},
  title = {{Contextualize differential privacy in image database: a lightweight image differential privacy approach based on principle component analysis inverse}},
  year = {2022},
  eprint = {2202.08309},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.08309},
}
Figure