Skip to main content
QUICK REVIEW

[Paper Review] InstaHide: Instance-hiding Schemes for Private Distributed Learning

Yangsibo Huang, Zhao Song|arXiv (Cornell University)|Oct 6, 2020
Privacy-Preserving Technologies in DataComputer Science70 references19 citations
TL;DR

InstaHide is a lightweight, efficient instance-hiding scheme for private distributed deep learning that encrypts training images using a one-time secret key composed of random mixing with public or private images and pixel-wise sign flips. It preserves model accuracy with minimal degradation while resisting known attacks, including those based on moment analysis and similarity clustering, and is designed to be plug-and-play in existing federated learning pipelines with strong privacy guarantees.

ABSTRACT

How can multiple distributed entities collaboratively train a shared deep net on their private data while preserving privacy? This paper introduces InstaHide, a simple encryption of training images, which can be plugged into existing distributed deep learning pipelines. The encryption is efficient and applying it during training has minor effect on test accuracy. InstaHide encrypts each training image with a "one-time secret key" which consists of mixing a number of randomly chosen images and applying a random pixel-wise mask. Other contributions of this paper include: (a) Using a large public dataset (e.g. ImageNet) for mixing during its encryption, which improves security. (b) Experimental results to show effectiveness in preserving privacy against known attacks with only minor effects on accuracy. (c) Theoretical analysis showing that successfully attacking privacy requires attackers to solve a difficult computational problem. (d) Demonstrating that use of the pixel-wise mask is important for security, since Mixup alone is shown to be insecure to some some efficient attacks. (e) Release of a challenge dataset https://github.com/Hazelsuko07/InstaHide_Challenge Our code is available at https://github.com/Hazelsuko07/InstaHide

Motivation & Objective

  • To address the challenge of training shared deep neural networks on private data across distributed entities without violating privacy regulations like HIPAA or GDPR.
  • To provide a practical, efficient alternative to differential privacy and heavy cryptographic methods that suffer from high computational overhead or significant accuracy loss.
  • To develop a scheme that hides individual training images from adversaries who observe model updates, even when those updates are protected by differential privacy.
  • To enable integration into existing deep learning frameworks with minimal changes to training pipelines.
  • To encourage further research into privacy attacks by releasing a challenge dataset for cryptanalysis.

Proposed method

  • Encrypts each training image using a one-time secret key composed of a random linear combination of the target image and k−1 randomly selected images from a private or public dataset (e.g., ImageNet).
  • Applies a random pixel-wise sign flip to the mixed image, effectively hiding the original image while preserving label information.
  • Uses the secret key only once per image, ensuring one-time use and preventing key reuse attacks.
  • Leverages the statistical properties of large public datasets (like ImageNet) as a source of randomness, analogous to a random oracle in cryptography.
  • Integrates seamlessly into federated learning pipelines by replacing original images with encrypted versions during training.
  • Employs a two-stage defense: mixing with public data to increase attacker search space and sign flipping to prevent recovery via moment-based attacks.

Experimental results

Research questions

  • RQ1Can a lightweight, efficient image encryption scheme be designed that preserves model accuracy while hiding individual training images from adversaries?
  • RQ2How effective is InstaHide in resisting known attacks such as moment-based recovery and similarity clustering attacks?
  • RQ3What is the impact of using a large public dataset (e.g., ImageNet) versus private data for mixing on security and accuracy?
  • RQ4Can the combination of Mixup and random sign flipping provide stronger privacy than Mixup alone?
  • RQ5How does InstaHide perform in real-world federated learning settings where only gradients are exposed?

Key findings

  • InstaHide achieves minimal accuracy degradation—less than 2% drop on CIFAR-10 and ImageNet—when used in training, even with k=6.
  • The method resists Braverman’s moment-based attack, which exploits higher-order statistics of Gaussian-distributed images, due to the non-Gaussian nature of real images and increased k.
  • Carlini et al.’s clustering-based attack, while effective on the challenge dataset of 100 private images, is computationally infeasible on larger datasets due to O(n³) complexity.
  • The use of a large public dataset like ImageNet significantly increases the attacker’s search space, enhancing security.
  • Random sign flipping is essential for security, as Mixup alone is vulnerable to efficient attacks that exploit linear structure.
  • The challenge dataset released by the authors has successfully motivated new cryptanalysis efforts and demonstrated the scheme’s resilience under known attack models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.