Data-Free Hard-Label Robustness Stealing Attack

Xiaojian Yuan, Kejiang Chen, Wen Huang, Jie Zhang, Weiming Zhang, Nenghai Yu

Introduction

Machine Learning as a Service (MLaaS) platforms provide access to powerful, pre-trained models via APIs. While these services are convenient, they are vulnerable to Model Stealing Attacks (MSA), where an adversary queries the API to train a "clone" model that replicates the target's intellectual property. Historically, these attacks focused on stealing classification accuracy. However, in security-critical domains, models are often trained to be adversarially robust—a process that is computationally expensive and requires specialized datasets. Stealing this robustness represents a significant new threat.

Most existing robustness-stealing methods rely on unrealistic assumptions: that the attacker has access to soft probability scores (logits) or proxy datasets similar to the target's proprietary data. This paper introduces DFHL-RS (Data-Free Hard-Label Robustness Stealing), the first framework capable of stealing both accuracy and robustness in a strictly black-box environment where only hard labels are available and no original data is accessible.

Methodology: The DFHL-RS Framework

The authors propose a two-stage alternating framework designed to overcome the lack of data and the limited information provided by hard labels.

  1. Substitute Data Generation: Since no real data is available, the attacker trains a generative model ($G$) to synthesize images. Because the target model ($M_T$) only provides hard labels, which cannot be used for direct gradient-based training of the generator, the framework uses the evolving clone model ($M_C$) as a surrogate to guide the generation process. Synthetic samples are stored in a memory bank to maintain diversity and prevent catastrophic forgetting.
  2. Clone Model Training via High-Entropy Examples (HEE): To effectively steal robustness, the clone model must learn the precise geometry of the target model's decision boundaries. The framework optimizes synthetic images to maximize prediction entropy, creating High-Entropy Examples (HEEs). These examples are pushed toward the classification boundaries of the clone model. By querying the target API with these boundary-hugging samples, the attacker gains critical information about the target's robust landscape.
The DFHL-RS framework consists of alternating stages for substitute data generation and clone model training using High-Entropy Examples.

Key Innovation: High-Entropy Examples (HEE)

A core contribution of this work is the use of HEEs over traditional "Uncertain Examples" (UEs). While UEs typically cluster at the junctions where multiple class boundaries meet, HEEs are designed to spread out and trace the entire "wall" of the decision boundary between classes. This comprehensive mapping allows the clone model to replicate the target's robust properties much more accurately than previous methods.

Experimental Results

The attack was evaluated on the CIFAR-10 and CIFAR-100 datasets. Despite the data-free and hard-label constraints, DFHL-RS achieved performance remarkably close to the target models and significantly outperformed existing baselines.

Quantitative comparison of DFHL-RS against various baselines on CIFAR-10 and CIFAR-100 datasets.

As shown in the results, on CIFAR-10, DFHL-RS achieved 77.86% clean accuracy and 39.51% robust accuracy (against the rigorous AutoAttack benchmark). Notably, DFHL-RS outperformed the "BEST" baseline, even though that baseline requires a proxy dataset of real images. This demonstrates that boundary-hugging synthetic samples are sufficient to replicate complex defensive properties.

Conclusion and Limitations

DFHL-RS exposes a severe vulnerability in MLaaS platforms, proving that adversarial robustness can be stolen without any access to the original training distribution. However, the attack requires a significant query budget (e.g., 38 million queries for CIFAR-10), which may be detectable by providers using rate-limiting or anomaly detection. This research highlights the need for new defensive mechanisms that can identify boundary-mapping queries without degrading service for legitimate users.

Summary updated

BibTeX
@inproceedings{yuan2024data,
  author = {Xiaojian Yuan and Kejiang Chen and Wen Huang and Jie Zhang and Weiming Zhang and Nenghai Yu},
  title = {{Data-Free Hard-Label Robustness Stealing Attack}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i7.28510},
}
Figure