InstaHide’s Sample Complexity When Mixing Two Private Images

Baihe Huang, Zhao Song, Runzhou Tao, Ruizhe Zhang, Danyang Zhuo

TL;DR

This paper tackles the security of InstaHide, a privacy-preserving technique for federated learning. The authors present a new algorithm that can recover all private images used in InstaHide with significantly fewer samples than previous methods, achieving near-optimal sample complexity. They also prove that InstaHide is computationally secure in the worst case, meaning it's hard to break even with powerful adversaries.

What Problem Does This Paper Address?

In collaborative machine learning, sensitive data from multiple parties is often combined to train powerful models. InstaHide is a method designed to protect the privacy of this training data by mixing private images with public ones and then randomly flipping pixel signs. While InstaHide offers good model utility, its security has been a key question. Previous attacks could recover only one private image and required a relatively large number of mixed images. This paper addresses two main questions: 1) What's the minimum number of mixed images needed to recover all private images? 2) How secure is InstaHide against a worst-case attacker?

Methods

The authors propose a novel algorithm that breaks down the attack into four main steps:

  1. Gram Matrix Recovery: They first recover a "Gram matrix" from the mixed images. This matrix essentially captures the relationships between the mixed images and is related to the underlying private and public image components.
  2. Public Image Subtraction: They then identify and remove the contribution of public images from the Gram matrix, isolating the information related to private images. This step is computationally challenging.
  3. Private Coefficient Assignment: This is a crucial step where they assign the mixed images to their corresponding original private images. They frame this as a line graph reconstruction problem, leveraging graph theory to efficiently recover the "mixup matrix" (which indicates which private images were combined).
  4. Private Image Recovery: Finally, they solve a system of linear regression problems to recover the actual private images.

A key innovation is framing the private coefficient assignment as a line graph reconstruction problem, which allows them to achieve better sample complexity and recover all private images, not just one. They also introduce a computational hardness result for a core sub-problem (l2-regression with hidden signs), demonstrating that InstaHide is computationally secure in the worst case.

Datasets

The paper uses synthetic data generated according to the InstaHide model. The public images are assumed to be drawn from a Gaussian distribution, and the private images are also assumed to be Gaussian. The paper does not introduce new real-world datasets but relies on the theoretical setup of the InstaHide challenge.

Key Insights and Ideas

  • Line Graph Reconstruction as a Key: The paper's core insight is that recovering the private image assignments can be elegantly mapped to the problem of reconstructing a graph from its line graph. This connection allows them to leverage existing graph theory results and achieve a more efficient solution.
  • Recovering All Private Images: Unlike previous work that focused on recovering a single private image, this paper demonstrates how to recover all of them. This is a significant improvement for practical security analysis.
  • Near-Optimal Sample Complexity: The proposed algorithm achieves a sample complexity of $O(n_{\mathsf{priv}} \log n_{\mathsf{priv}})$, which is information-theoretically optimal for recovering all private images. This means they've found a way to do it with the absolute minimum number of samples required.
  • Computational Hardness for Worst-Case Security: The paper proves that a crucial sub-problem (l2-regression with hidden signs) is NP-hard. This implies that InstaHide is computationally secure in the worst-case scenario, meaning an attacker cannot efficiently break it even with significant computational resources.

Key Results

  • Sample Complexity Improvement: The algorithm recovers all private images using $O(n_{\mathsf{priv}} \log n_{\mathsf{priv}})$ samples, a significant improvement over the $O(n_{\mathsf{priv}}^{4/3})$ samples required by previous methods for recovering just one image when $k_{\mathsf{priv}}=2$.
  • Exact Recovery: The algorithm can recover all private images exactly, not just their absolute values.
  • Computational Hardness: The paper establishes an NP-hardness result for a key sub-problem, demonstrating that InstaHide is computationally secure in the worst case.
  • Unified Framework: The authors present a framework to compare their attack with existing ones, highlighting similarities and differences.

Limitations and Future Work

  • Generalization to More Private Images: The current work focuses on the case where $k_{\mathsf{priv}} = 2$ (mixing two private images). A natural future direction is to generalize the results to recover all private images when mixing more than two private images ($k_{\mathsf{priv}} > 2$).
  • Relaxing Gaussian Assumption: The analysis relies on the assumption that the dataset (images) follows a Gaussian distribution. Relaxing this assumption to handle more realistic data distributions is an important open question.
  • Multi-Task Phase Retrieval: The authors suggest extending their framework to analyze multi-task phase retrieval problems, which could have broader applications.
  • Real-World Data: While the theoretical contributions are significant, applying these attacks and defenses to real-world datasets and scenarios would be a valuable next step.

Summary updated

BibTeX
@misc{huang2020instahides,
  author = {Baihe Huang and Zhao Song and Runzhou Tao and Ruizhe Zhang and Danyang Zhuo},
  title = {{InstaHide’s Sample Complexity When Mixing Two Private Images}},
  year = {2020},
  eprint = {2011.11877},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.11877},
}
Figure