Is Private Learning Possible with Instance Encoding?

Nicholas Carlini, Samuel Deng, Sanjam Garg, Somesh Jha, Saeed Mahloujifar, Mohammad Mahmoody, Abhradeep Thakurta, Florian TramèrIEEE Symposium on Security and Privacy 2021

TL;DR

This paper investigates the feasibility of achieving privacy in machine learning through "instance encoding," where training data is transformed before being fed to a standard learner. The authors demonstrate that this approach, while promising, has fundamental limitations and is vulnerable to reconstruction attacks, as shown by breaking the state-of-the-art InstaHide system.

What Problem Does This Paper Address?

Training machine learning models, especially neural networks, often requires vast amounts of sensitive user data. Protecting this data during training is a significant challenge. Traditional methods like secure multiparty computation are computationally expensive, while differential privacy can degrade model accuracy. Instance encoding offers a potential middle ground: transforming data before training a standard model to hide sensitive information without sacrificing too much accuracy. This paper asks: can instance encoding truly provide meaningful privacy, or are there inherent limitations?

Methods

The authors tackle this question from two angles: theoretical impossibility proofs and practical attacks.

Theoretical: They formalize two attack models:

  1. Dataset Distinguishing Attacks: Can an adversary tell if one dataset (S1) was used instead of another (S2), even if they are very similar?
  2. Instance Distinguishing Attacks: Can an adversary distinguish encodings of different individual instances?

They prove that for non-trivial learning tasks, instance encoding cannot simultaneously offer strong privacy guarantees (like indistinguishability) and high accuracy.

Practical: They focus on InstaHide, a recent instance-encoding scheme. They develop a reconstruction attack that aims to recover the original training images from the encoded data. This attack involves:

  1. Removing Instance Hiding: Nullifying the sign-flipping step in InstaHide.
  2. Clustering Encoded Data: Using a trained neural network to identify which encoded images likely originated from the same source image.
  3. Recovering Original Images: Solving a system of equations to reconstruct the original images from the clustered encodings.

They also explore an attack that exploits implementation weaknesses in InstaHide, such as the PRNG used and the precision of image representation.

Datasets

The authors evaluate their attacks on:

  • CIFAR-10
  • CIFAR-100
  • InstaHide Challenge Dataset: This dataset consists of 5,000 encoded images derived from 100 original images.

Key Insights and Ideas

  • Instance Encoding Isn't a Silver Bullet: While intuitively appealing, instance encoding has fundamental theoretical limits on the privacy it can provide, especially against distinguishing attacks. It cannot achieve the same strong privacy guarantees as cryptographic methods like MPC.
  • Reconstruction Attacks are Powerful: The paper demonstrates that even if an encoding scheme aims to hide individual instances, it's often possible to reconstruct them, especially if the scheme has a "weak" form of privacy or implementation flaws.
  • Implementation Details Matter: Exploiting weaknesses in the random number generator (PRNG) and data representation (e.g., floating-point precision) can lead to surprisingly effective attacks, even breaking schemes that might seem robust algorithmically.
  • "Privacy" Claims Need Rigor: The paper criticizes ad-hoc security arguments and emphasizes the need for precise, falsifiable privacy claims in this domain.

Key Results

  • Theoretical Impossibility: The paper proves that no instance encoding scheme can simultaneously achieve high accuracy and strong privacy (indistinguishability) against distinguishing attacks for non-trivial learning problems.
  • InstaHide Broken: The authors successfully break InstaHide, a state-of-the-art instance-encoding scheme, by reconstructing original images with high fidelity.
  • Their general attack on InstaHide on CIFAR-10 and CIFAR-100 achieves high-quality reconstructions.
  • They also break the InstaHide Challenge, recovering all 100 original images.
  • An improved attack exploiting implementation flaws achieves "pixel-perfect" reconstruction.
  • Attack Efficiency: The attacks are computationally efficient, often running in polynomial time relative to the model training time.

Limitations and Future Work

  • Attack on InstaHide: While the attack is effective, it relies on knowledge of the public dataset used by InstaHide. The authors note that if this public data is kept secret, their attack might be less effective, but this would also limit InstaHide's utility.
  • Future Work: The authors hope that their work will encourage the development of schemes with precise and falsifiable privacy claims, moving away from ad-hoc security arguments. They suggest that future research should focus on achieving meaningful privacy without sacrificing performance, potentially by exploring new approaches or refining existing ones with stronger theoretical underpinnings.

Summary updated

BibTeX
@inproceedings{carlini2021is,
  author = {Nicholas Carlini and Samuel Deng and Sanjam Garg and Somesh Jha and Saeed Mahloujifar and Mohammad Mahmoody and Abhradeep Thakurta and Florian Tramèr},
  title = {{Is Private Learning Possible with Instance Encoding?}},
  booktitle = {IEEE Symposium on Security and Privacy},
  year = {2021},
  url = {https://openreview.net/forum?id=b2CwgLfAvK},
}
Figure