From Head to Tail: Efficient Black-box Model Inversion Attack via Long-tailed Learning

Ziang Li, Hongguang Zhang, Juan Wang, Meihui Chen, Hongxin Hu, Wenzhe Yi, Xiaoyang Xu, Mengda Yang, Chenjun Ma

This paper presents SMILE (Surrogate Model-based Inversion with Long-tailed Enhancement), a significant advancement in Model Inversion Attacks (MIAs) that makes them more practical and efficient in real-world, black-box scenarios. By framing surrogate model training as a long-tailed learning problem, the authors achieve state-of-the-art reconstruction results while requiring only a fraction of the queries used by previous methods.

The Challenge of Distribution Mismatch

The primary bottleneck in black-box MIAs is the quality of the surrogate model used to initialize the attack. Most attacks use a Generative Adversarial Network (GAN) to probe the target model. However, the authors identify a "blind sampling" trap: samples generated by the GAN do not uniformly represent all classes of the target model. Instead, they follow a severe long-tail distribution where a few "head" classes are over-represented, while the majority of "tail" classes receive few to no samples.

Distribution of data points across classes, showing the long-tail nature of GAN-probed samples.

This imbalance makes it nearly impossible for a standard surrogate model to learn the features of tail classes. Consequently, optimization-based attacks often start with poor "initial guesses," leading to local optima or requiring an impractical number of queries to converge.

The SMILE Methodology

To overcome these hurdles, the authors propose a two-step framework designed for high-quality initialization and query-efficient refinement.

The SMILE framework: Step 1 involves training a surrogate model with long-tailed enhancements, and Step 2 uses NGOpt for query-efficient refinement.

1. Long-tailed Surrogate Training

SMILE builds a high-quality local surrogate model using three specific techniques:

  • Ensemble Learning: It utilizes an ensemble of classifiers to capture a more diverse set of features.
  • Distribution-aware Diversity Loss: This forces ensemble members to make complementary decisions, ensuring that if one model misses a "tail" class feature, another might capture it.
  • Top-k Reweighting: Instead of blindly increasing sample size, SMILE implements a reweighting strategy based on how often a class appears in the target model's top-k predictions, giving more importance to sparsely sampled tail classes during training.

2. Gradient-free Black-box Optimization

Once the surrogate model provides a high-quality initial latent vector, SMILE refines it by querying the actual target model. Since gradients are unavailable in a black-box setting, the framework uses NGOpt (specifically the MetaModelOnePlusOne algorithm). This optimizer automatically selects the best gradient-free solver based on the problem's dimensionality and query budget. They also employ $\mathcal{P}$ space clipping to keep the latent vector search within the manifold of realistic images.

Experimental Results

The paper evaluates SMILE across several standard facial recognition benchmarks, including VGGFace, VGGFace2, and CASIA-WebFace. The results demonstrate a paradigm shift in black-box attack efficiency:

  • Massive Query Reduction: For a single target ID, previous state-of-the-art (SOTA) attacks like Mirror-b require approximately 120,000 queries. SMILE achieves better results with only 3,500 queries—a 95% reduction in overhead.
  • Superior Accuracy: On the VGGFace2 dataset (targeting a ResNet50 model), SMILE achieved an Acc@1 of 80.27%, significantly outperforming the previous black-box SOTA, RLBMI, which achieved 42.86%.
  • Cross-Architecture Success: The attack remains effective even when the surrogate model and target model use completely different architectures, such as using an InceptionV1 surrogate to attack a Swin Transformer.

Conclusion

SMILE demonstrates that the efficiency of black-box model inversion is fundamentally tied to the quality of the surrogate model's initialization. By addressing the long-tail distribution problem inherent in GAN-based probing, SMILE makes MIAs significantly more practical and harder to detect via traditional rate-limiting defenses. This work highlights the urgent need for more robust privacy-preserving techniques in machine learning as black-box vulnerabilities become increasingly exploitable.

Summary updated

BibTeX
@inproceedings{li2025from,
  author = {Ziang Li and Hongguang Zhang and Juan Wang and Meihui Chen and Hongxin Hu and Wenzhe Yi and Xiaoyang Xu and Mengda Yang and Chenjun Ma},
  title = {{From Head to Tail: Efficient Black-box Model Inversion Attack via Long-tailed Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02727},
}
Figure