On InstaHide, Phase Retrieval, and Sparse Matrix Factorization

Sitan Chen, Xiaoxiao Li, Zhao Song, Danyang Zhuo

Introduction

In the rapidly evolving field of distributed learning, multiple parties often seek to train a shared neural network model without exposing their local, private datasets. To address this, a lightweight scheme called InstaHide was recently proposed. InstaHide attempts to preserve privacy by generating "synthetic" training examples. It does this by taking a convex combination (a weighted average) of private images and public images (such as those from ImageNet), and then randomly flipping the sign of each pixel in the resulting mixed image.

The underlying intuition was that mixing images and stripping away sign information would effectively obfuscate the original private data. While prior attacks have successfully broken InstaHide for natural images by exploiting their inherent "smoothness," this paper investigates a more fundamental, complexity-theoretic question: Is InstaHide mathematically secure when the data lacks any exploitable structure? Specifically, if the data follows an isotropic Gaussian distribution, can an attacker still recover the private images? The authors demonstrate that InstaHide is mathematically insecure under these conditions, proving that synthetic images can be "unmixed" to recover the original private data.

The Vulnerability: Phase Retrieval and Matrix Factorization

The authors reveal that the security of InstaHide is closely tied to the average-case complexity of a multi-task, missing-data version of the classic Phase Retrieval problem. Removing the sign of a vector is mathematically equivalent to phase retrieval. Because InstaHide generates multiple synthetic images from the same underlying pool of private images, it inadvertently creates a "multi-task" scenario that is significantly easier for an attacker to solve.

A common misconception in data obfuscation is that flipping signs or adding noise destroys all usable information. However, the authors prove that the magnitudes of the mixed vectors leak almost all the necessary information about the underlying correlations between the original images.

The Attack Algorithm

To exploit this vulnerability, the authors formalize an attack algorithm, LEARNPRIVATEIMAGE, which leverages sparse matrix factorization and phase retrieval techniques. The attack proceeds in three primary steps:

  1. Learning Public Coordinates: Because the attacker has access to the public images used in the InstaHide mix, they can apply a modified version of Gaussian phase retrieval to determine which public images contributed to specific synthetic images.
  2. Recovering the Gram Matrix: This step forms the crux of the attack. The authors demonstrate that the covariance of the absolute values of the synthetic images (which follow a "folded Gaussian" distribution) is directly proportional to the inner products—or the Gram matrix—of the original private images. By estimating this covariance, the attacker can quantify the exact "overlap" between any two synthetic images in terms of their private components.
  3. Finding "Floral Submatrices": To bypass a computationally prohibitive brute-force search of all image combinations, the authors identify a combinatorial structure termed a Floral Submatrix. This specific pattern of overlaps in the Gram matrix uniquely anchors a small set of private images. Once a Floral Submatrix is identified, recovering the exact pixel values reduces to solving a straightforward system of linear equations.

Experimental Setup and Key Findings

The paper rigorously evaluates this attack using Synthetic Gaussian Data ($\mathcal{N}(0, I)$). Gaussian vectors represent the "hardest" case for an attacker because they lack the structural regularities of natural images. Proving insecurity on Gaussian data strongly implies that the scheme is fundamentally broken.

The theoretical and empirical results are striking:

  • Provable Recovery: The authors provide a formal proof demonstrating that an attacker can recover private vectors in polynomial time, given a sufficient number of synthetic images.
  • Logarithmic Scaling: The attack is highly efficient. The required number of pixels ($d$) only needs to grow logarithmically with the number of images, making the attack viable even for high-resolution datasets.
  • Empirical Success: In practical experiments, the algorithm successfully recovered an average of at least 90% of the support of the private vectors.
  • Utility vs. Security: The findings confirm that while InstaHide maintains enough utility to train a basic classifier, it completely fails to provide the rigorous security guarantees necessary for private distributed learning.

Limitations and Future Directions

The primary limitation of the formal proof is its reliance on the assumption that feature vectors are isotropic Gaussian. While this serves as a standard, rigorous stress test in learning theory, real-world data distributions are undeniably more complex.

Future research directions suggested by the authors include scaling the attack to scenarios where the number of mixed images is significantly larger, and investigating whether alternative mixing schemes—beyond simple convex combinations—might offer better resilience against phase-retrieval attacks. Ultimately, this work highlights the need for a more comprehensive theory of average-case security for privacy schemes based on data augmentation.

Summary updated

BibTeX
@inproceedings{chen2021instahide,
  author = {Sitan Chen and Xiaoxiao Li and Zhao Song and Danyang Zhuo},
  title = {{On InstaHide, Phase Retrieval, and Sparse Matrix Factorization}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=AhElGnhU2BV},
}
Figure