Abstract
Machine learning as a Service (MLaaS) allows users to query machine learning models via APIs, providing access to high-performance models trained on valuable proprietary data. While this interface boosts the proliferation of AI applications, it also introduces a significant attack surface for model stealing. Existing model stealing attacks have relaxed their assumptions to the challenging data-free setting while maintaining effectiveness. However, these methods are often complex, consisting of multiple components that obscure the core mechanism of the attack. In this paper, we revisit the model stealing problem from a diversity perspective. We demonstrate that maintaining high label diversity across generated synthetic samples is the critical factor for improving attack performance. Based on this conjecture, we provide a simplified attack framework, DB-DFMS. Experimental results show that our approach achieves comparable or superior performance to state-of-the-art methods while offering significant advantages in attack efficiency and query budget.
Introduction
As Machine Learning as a Service (MLaaS) becomes a standard for monetizing proprietary AI, security risks like model stealing have come to the forefront. In a model stealing attack, an adversary queries a black-box API to "extract" the model's functionality into a local clone. The most restrictive and realistic scenario is the data-free setting, where the attacker has no access to the original training data or its distribution.
Prior data-free attacks often rely on complex Generative Adversarial Network (GAN) setups designed to find samples where the victim and clone models disagree. These "heavy" methods are computationally expensive and require massive query budgets. This research asks a fundamental question: What is the essential property that makes a synthetic dataset effective for stealing a model? The answer, it turns out, is label diversity.
The DB-DFMS Framework
The researchers propose DB-DFMS (Diversity-Based Data-Free Model Stealing), a simplified framework that prioritizes the diversity of synthetic samples over their realism or difficulty. The framework consists of two primary components trained collaboratively:
- The Generator ($\mathcal{G}$): A generative network trained to create synthetic images. Instead of aiming for visual realism, it is optimized using a Diversity Loss (negative entropy). The goal is to produce images that force the clone model to predict as many different classes as possible.
- The Clone ($\mathcal{C}$): A local student model trained to match the outputs of the victim model ($\mathcal{V}$) using the synthetic images. It employs an $L_1$ loss to minimize the discrepancy between its predictions and those of the victim.
By alternating training between the generator and the clone, the system iteratively improves. The generator learns to produce more diverse samples based on the clone's current state, while the clone uses these samples to better map the victim's decision boundaries.
The Power of Label Diversity
A key insight of this work is that Diversity > Realism. Experiments revealed that using a "realistic" but unrelated surrogate dataset (like CelebA) to steal a model trained on CIFAR-10 actually performed worse than using simple random noise. The critical predictor of success is the entropy (diversity) of the labels in the query set.
As shown in the experimental data, there is a clear positive correlation: as the entropy of the synthetic dataset's predictions increases, so does the final accuracy and agreement of the cloned model. This suggests that the fundamental requirement for a successful data-free attack is a query set that broadly covers the victim model's output space.
Experimental Results
The authors evaluated DB-DFMS on standard benchmarks including CIFAR-10, SVHN, and CelebA. The results highlight the framework's efficiency and effectiveness:
- High Accuracy: On CIFAR-10, DB-DFMS achieved 88.5% accuracy, outperforming the state-of-the-art DFME (86.9%) and rivaling the more complex DFMS-SL (89.6%).
- Superior Speed: DB-DFMS is significantly faster to train. For CIFAR-10, it required approximately 3,600 seconds, whereas DFMS-SL took over 10,000 seconds due to its heavy initialization phase.
- Query Efficiency: The attack remains highly effective even under a limited query budget (e.g., under 10 million queries), making it a practical threat to real-world MLaaS platforms where queries are metered and costly.
- Robustness: The attack is architecture-agnostic, succeeding even when the clone model (e.g., MobileNet) differs significantly from the victim (e.g., ResNet). It also performs well on unbalanced datasets without requiring prior knowledge of class distributions.
Conclusion
By demonstrating that "diversity is all you need," this paper simplifies the landscape of data-free model stealing. DB-DFMS removes redundant components like disagreement maximization, resulting in an attack that is both more efficient and easier to understand. While diversity is a critical factor, future work will explore other properties of synthetic data and extend these insights to non-image domains like text and tabular data.
Summary updated