Label-Only Model Inversion Attacks via Boundary Repulsion

Mostafa Kahla, Si Chen, Hoang Anh Just, Ruoxi Jia

TL;DR

BREP-MI is a novel model inversion attack that reconstructs private training data using only a model's predicted hard labels, bypassing the need for confidence scores or internal parameters. By iteratively "repelling" a synthesized image away from decision boundaries in a GAN’s latent space, it achieves results comparable to whitebox attacks and significantly outperforms existing blackbox methods.

What Problem Does This Paper Address?

Model Inversion (MI) attacks aim to recreate sensitive training data (like faces or medical records) by abusing access to a trained machine learning model. Traditionally, these attacks fall into two categories:

  1. Whitebox: The attacker has full access to the model's weights and architecture.
  2. Blackbox: The attacker can query the model and receive "soft labels" (confidence scores/probabilities).

However, real-world APIs often only return the final predicted class—a label-only setting. This is much harder for attackers because they lack the gradient information (from whitebox access) or the fine-grained probability shifts (from blackbox access) needed to guide the reconstruction process. This paper introduces BREP-MI (Boundary-Repelling Model Inversion) to bridge this gap, proving that even the most restrictive access can lead to significant privacy leaks.

Methods

The core challenge in a label-only setting is estimating which direction to move in the data space to reach the "center" of a target class without having a gradient. BREP-MI solves this using three key components:

  1. GAN-Based Latent Space: Instead of optimizing raw pixels, the attack optimizes a latent vector $z$ within a Generative Adversarial Network (GAN) trained on a related public dataset. This ensures the reconstructed images remain semantically meaningful (i.e., they look like actual faces).
  2. Boundary Repulsion via Sphere Sampling: To find the direction toward the class centroid, the algorithm samples $N$ points on a sphere around the current latent vector. It queries the target model for the labels of these points. Points that fall outside the target class indicate the direction of the decision boundary. By averaging these "bad" directions and moving in the opposite direction, the algorithm "repels" the image away from the boundary.
  3. Iterative Radius Expansion: As the synthesized image moves deeper into the target class region, the algorithm increases the sampling radius $R$. This allows it to explore larger regions and find the most representative "centroid" of the class.
Figure 1. Intuitive explanation of BREP-MI. (A) Query the labels over a sphere and estimate the direction on the sphere that can po- tentially lead to the target label class. (B) Update the synthesized image according to the estimated direction. Alternate between the estimation and update until the sphere fits into the target class. (C) Increase the radius of the sphere. (D) Repeat the steps above until the attack hits some query budget.

Datasets

The authors evaluated the attack on three standard face recognition benchmarks:

  • CelebA: A large-scale face attributes dataset.
  • Facescrub: A dataset of prominent people's faces.
  • Pubfig83: A dataset containing 83 individuals.
  • FFHQ: Used as a public dataset to train the GAN to test the impact of distributional shifts between the attacker's prior knowledge and the private target data.

Key Insights and Ideas

  • The Centroid is the Key: The authors hypothesize that the most representative training data for a class lies far from the decision boundaries. By maximizing the distance to the boundary (repulsion), they naturally converge on high-likelihood samples.
  • Label-Only > Blackbox? Surprisingly, BREP-MI (label-only) outperformed LB-MI (blackbox). The authors suggest this is because existing blackbox methods rely on training an "inversion model" that may not distill knowledge as effectively as the iterative GAN optimization used here.
  • The "Sweet Spot" for Radius: Theoretical analysis shows that increasing the sampling radius $R$ helps align the estimated direction with the true gradient. However, there is a limit; if $R$ becomes too large, the linear approximation of the boundary fails, and accuracy drops.
  • Model Agnostic: The attack requires zero knowledge of the target model's architecture, making it highly versatile against various deep learning structures (FaceNet, ResNet, VGG).

Key Results

BREP-MI demonstrates that label-only access is nearly as dangerous as whitebox access:

  • Accuracy: On the CelebA dataset, BREP-MI achieved 75.67% attack accuracy, vastly outperforming the blackbox LB-MI (1.67%) and even the whitebox GMI (32.00%). It was nearly as effective as the state-of-the-art whitebox KED-MI (82.00%).
  • Query Efficiency: Successful reconstructions typically required between 10k and 16k queries. While higher than some attacks, this is well within the limits of many commercial cloud APIs.
  • Robustness: The attack remained effective even when there was a significant distributional shift (e.g., training the GAN on FFHQ and attacking a model trained on CelebA).
Figure 2. Attack accuracy of BREP-MI under different query bud- gets. (a) compares different datasets. (b), (c), and (d) compare different sampling strategies for CelebA, pubfig, and Facescrub respectively. Query Budget is shown in a base-2 log for conve- nience.

Limitations and Future Work

  • Stopping Criterion: In a real attack, the attacker doesn't have ground truth images to know when they've reached the "best" reconstruction. The current stopping criterion is empirical, and finding a more robust way to halt the algorithm is an open challenge.
  • Query Budget: While 10k queries is reasonable, it may still trigger rate-limiting or anomaly detection in highly secured systems. Improving query efficiency is a suggested area for future work.
  • Whitebox Potential: The fact that this label-only attack beats some whitebox methods suggests that current whitebox attacks are not yet fully exploiting the information available to them.

Summary updated

BibTeX
@misc{kahla2022label,
  author = {Mostafa Kahla and Si Chen and Hoang Anh Just and Ruoxi Jia},
  title = {{Label-Only Model Inversion Attacks via Boundary Repulsion}},
  year = {2022},
  eprint = {2203.01925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.01925},
}
Figure