Privacy-Preserving Image Retrieval Based on Additive Secret Sharing

Zhihua Xia, Qi Gu, Lizhi Xiong, Wenhao Zhou, Jian Weng

TL;DR

This paper presents a high-performance framework for privacy-preserving image retrieval (PPCBIR) using additive secret sharing across two non-colluding cloud servers. By developing novel secure protocols for matrix inversion, comparison, and sorting, the authors enable the use of state-of-the-art CNN features and advanced indexing (HKM, C2LSH) on encrypted data with zero loss in accuracy and significantly lower latency than previous methods.

What Problem Does This Paper Address?

As we move more of our lives online, the demand for cloud-based image storage and retrieval grows. However, uploading sensitive images (like medical records or personal photos) to a cloud provider poses significant privacy risks. While we can encrypt images, standard encryption makes Content-Based Image Retrieval (CBIR)—searching for images based on their visual content—nearly impossible.

Existing privacy-preserving retrieval schemes often face a "trilemma" between security, accuracy, and efficiency:

  1. Statistic-based methods are fast but use weak features (like color histograms), leading to poor search accuracy.
  2. Homomorphic Encryption (HE) allows computation on encrypted data but is computationally expensive and struggles with the non-linear operations (like ReLU) essential for modern Convolutional Neural Networks (CNNs).
  3. Secure Multi-party Computation (SMC) can handle non-linearities but often requires many rounds of communication, making it too slow for large-scale databases.

This paper aims to bridge the gap by creating a system that uses powerful CNN features and efficient indexing while keeping the data strictly private.

Methods

The authors leverage Additive Secret Sharing, a form of SMC where a secret value $x$ is split into two random shares ($x_1$ and $x_2$) such that $x = x_1 + x_2$. These shares are sent to two different cloud servers ($S_1$ and $S_2$) that are assumed to be "semi-honest but non-colluding"—meaning they follow the rules but won't share data with each other to try and peek at the original image.

The core technical contributions include:

  • Novel Secure Protocols: The authors designed efficient protocols for basic operations like secure comparison (SecCmp), secure sorting (SecSort), and notably, secure matrix inversion (SecMatInv).
  • Secure CNN Inference: They use a pre-trained VGG16 model. Linear operations (convolutions) are performed locally by the servers on their shares. Non-linear operations (ReLU and Max-pooling) are handled through their new secure comparison protocols.
  • Secure PCA (Principal Component Analysis): To handle the high dimensionality of CNN features, they introduced the first secure PCA protocol for additive shares, allowing the servers to compress features without seeing them.
  • Secure Indexing: They implemented secure versions of Hierarchical k-Means (HKM) and Locality Sensitive Hashing (C2LSH) to ensure that searching a large database doesn't require a slow, linear scan of every single image.
Fig. 2: System model.

Datasets

The researchers evaluated their system using three standard benchmarks:

  • Corel-1k: 1,000 images across 10 categories (384x256 resolution).
  • Corel-10k: 10,000 images across 100 categories (approx. 187x126 resolution).
  • MNIST: Used specifically to benchmark the speed of secure CNN inference against prior work.

Key Insights and Ideas

  • The Power of Two: By moving from a single-server model to a two-server non-colluding model, the authors bypass the massive overhead of traditional functional encryption.
  • Lossless Retrieval: Because the secure protocols perfectly replicate the logic of plaintext operations (rather than using approximations), the retrieval accuracy is identical to searching through unencrypted images.
  • Indexing is Essential: Most PPCBIR research focuses only on the distance between two vectors. This paper highlights that for real-world use, you must build a secure index (like the HKM tree shown below) to avoid "the curse of dimensionality."
  • Strategic Information Leakage: The authors argue that leaking the relative order of distances (required for sorting and indexing) is a safe trade-off. It provides a massive boost in efficiency while revealing nothing about the actual visual content of the images.
Fig. 1: An example of HKM. In the figure, five feature vectors (blue nodes) are indexed by HKM where k set as 2.

Key Results

  • Accuracy: The scheme achieved the same precision as plaintext CBIR, significantly outperforming older privacy-preserving methods like BOEW and Cheng's JPEG-based retrieval.
  • Efficiency: The proposed SecCmp protocol requires only 2 rounds of interaction, compared to $l+1$ rounds in previous state-of-the-art work (where $l$ is bit-width).
  • Feature Compression: Secure PCA successfully reduced 512-dimensional features to just 8 dimensions. This compression made index building for the Corel-1k dataset 38 times faster in terms of communication costs.
  • Retrieval Speed: In the Corel-10k dataset, generating a "Top-50" search result took roughly 1.8 seconds, making it practical for real-world applications.

Limitations and Future Work

  • Trusted Third Party (T): The system requires a trusted party to generate random "triples" (Beaver's triples) during an offline phase. While the authors suggest the image owner could perform this task, it adds a layer of complexity to the system setup.
  • Non-Collusion Assumption: The security hinges entirely on the two cloud servers not colluding. If $S_1$ and $S_2$ share their data, the encryption is instantly broken.
  • Future Directions: The authors suggest exploring even more efficient protocols and applying this additive secret sharing framework to other complex outsourced tasks beyond image retrieval.

Summary updated

Abstract

The rapid growth of digital images motivates individuals and organizations to upload their images to the cloud server. To preserve privacy, image owners would prefer to encrypt the images before uploading, but it would strongly limit the efficient usage of images. Plenty of existing schemes on privacy-preserving Content-Based Image Retrieval (PPCBIR) try to seek the balance between security and retrieval ability. However, compared to the advanced technologies in CBIR like Convolutional Neural Network (CNN), the existing PPCBIR schemes are far deficient in both accuracy and efficiency. With more cloud service providers, the collaborative secure image retrieval service provided by multiple cloud servers becomes possible. In this paper, inspired by additive secret sharing technology, we propose a series of additive secure computing protocols on numbers and matrices with better efficiency, and then show their application in PPCBIR. Specifically, we extract CNN features, decrease the dimension of features and build the index securely with the help of our protocols, which include the full process of image retrieval in the plaintext domain. The experiments and security analysis demonstrate the efficiency, accuracy, and security of our scheme.
BibTeX
@misc{xia2020privacy,
  author = {Zhihua Xia and Qi Gu and Lizhi Xiong and Wenhao Zhou and Jian Weng},
  title = {{Privacy-Preserving Image Retrieval Based on Additive Secret Sharing}},
  year = {2020},
  eprint = {2009.06893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.06893},
}
Figure