InstaHide: Instance-hiding Schemes for Private Distributed Learning

Yangsibo Huang, Zhao Song, Kai Li, Sanjeev Arora

Abstract

Distributed machine learning faces a critical trade-off between data privacy and model utility. While Differential Privacy (DP) provides formal guarantees, it often incurs significant accuracy penalties. This paper presents InstaHide, an efficient "instance-hiding" scheme that encrypts training images via a combination of multi-image mixing and random pixel-wise sign-flipping. Experimental results on benchmarks like CIFAR-10 show that InstaHide maintains high accuracy (91.2%) while providing strong empirical resistance to reconstruction attacks, offering a practical alternative to DP and heavy cryptographic methods.

1. Introduction

Collaborative training on private datasets, such as in medical imaging or finance, is often hindered by the risk of data leakage. Standard Federated Learning (FL) is susceptible to gradient-matching attacks where an adversary reconstructs private inputs from model updates. Existing defenses like DP-SGD significantly degrade performance (often by over 20%), while Secure Multi-Party Computation (MPC) or Homomorphic Encryption (HE) introduce massive computational overhead. InstaHide is proposed as a lightweight, high-utility "middle ground" for privacy-preserving distributed learning.

2. Methodology

InstaHide transforms each private training image $x$ into an encrypted version using a one-time secret key. The process involves two primary stages:

2.1 Linear Mixing (Mixup-inspired)

Each private image is linearly combined with $k-1$ other images. In the "Inside-dataset" setting, these are other private samples. In the more robust "Cross-dataset" setting, images are sampled from both the private training set and a large, unlabelled public dataset (e.g., ImageNet).

2.2 Random Pixel-wise Masking

The composite image is then subjected to a random sign-flipping mask, where each pixel is multiplied by either $+1$ or $-1$ based on a secret, one-time key.

The InstaHide encryption process: mixing private and public images followed by random pixel sign flipping.

3. Security Analysis

The security of InstaHide is empirical and relies on the computational difficulty of reversing the encryption steps.

3.1 Phase Retrieval and Subset Sum

The random sign-flipping mask forces an attacker to solve a "phase retrieval" problem, which is computationally challenging even for modern generative models. Furthermore, mixing with a large public dataset expands the search space astronomically, effectively requiring the solution of a $k$-vector subset sum problem, which is conjectured to be computationally intractable.

3.2 Indistinguishability

Statistical analysis using Kolmogorov-Smirnov tests indicates that the distributions of encrypted images are nearly identical across different source images, preventing adversaries from grouping or identifying specific samples based on pixel-wise statistics.

Security summary of different InstaHide settings.

4. Experimental Results

The authors evaluated InstaHide on MNIST, CIFAR-10, CIFAR-100, and ImageNet. On CIFAR-10, InstaHide (with $k=4$) achieved 91.2% accuracy, compared to 94.8% for vanilla training and only 72% for DP-SGD. The encryption process is highly efficient, adding less than 5% overhead to total training time. While a combinatorial attack by Carlini et al. demonstrated vulnerabilities in small-scale challenge datasets, its cubic complexity makes it less feasible for massive, real-world datasets.

5. Conclusion and Future Work

InstaHide demonstrates that instance-hiding can provide a compelling balance of privacy and utility for image-based distributed learning. While the scheme relies on empirical rather than theoretical security, it offers a scalable solution where DP is too costly. Future research will focus on extending these techniques to other data modalities, such as text, and developing more rigorous theoretical privacy bounds.

Summary updated

BibTeX
@inproceedings{huang2020instahide,
  author = {Yangsibo Huang and Zhao Song and Kai Li and Sanjeev Arora},
  title = {{InstaHide: Instance-hiding Schemes for Private Distributed Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure