Beyond Labeling Oracles: What does it mean to steal ML models?
Avital Shafran, Ilia Shumailov, Murat A. Erdogdu, Nicolas Papernot
TL;DR
This work challenges the standard assumption that model extraction is cost-efficient by showing that an attacker’s success is largely driven by access to in-distribution data rather than the querying strategy. By formalizing the attacker as $(\,\mathcal{D}_{IND}, \,\mathcal{D}_{OOD}, \,\Pi)$ and decomposing ML costs into data collection, labeling, and training, the authors demonstrate that prior knowledge about the victim’s distribution often dominates ME performance. They introduce an instrumentation framework that modulates OOD informativeness using a hybrid victim model $\,\mathcal{V}_h$ with a safe fake component $\,\mathcal{V}_f$ controlled by a threshold $ au$ and a temperature $T$, enabling controlled ablations of OOD leakage. Across vision and language benchmarks, experiments reveal that ME can be effective but is typically constrained by IND data availability; using OOD data to reduce data costs only helps when OOD responses reveal IND structure, and attempting to minimize both data costs and queries simultaneously is usually infeasible. The practical takeaway is a call to redefine adversarial goals for ME attacks, recognizing that a victim model often serves mainly as a labeling oracle and that robust defenses should focus on limiting IND leakage rather than relying on random data or purely query-only strategies.
Abstract
Model extraction attacks are designed to steal trained models with only query access, as is often provided through APIs that ML-as-a-Service providers offer. Machine Learning (ML) models are expensive to train, in part because data is hard to obtain, and a primary incentive for model extraction is to acquire a model while incurring less cost than training from scratch. Literature on model extraction commonly claims or presumes that the attacker is able to save on both data acquisition and labeling costs. We thoroughly evaluate this assumption and find that the attacker often does not. This is because current attacks implicitly rely on the adversary being able to sample from the victim model's data distribution. We thoroughly research factors influencing the success of model extraction. We discover that prior knowledge of the attacker, i.e., access to in-distribution data, dominates other factors like the attack policy the adversary follows to choose which queries to make to the victim model API. Our findings urge the community to redefine the adversarial goals of ME attacks as current evaluation methods misinterpret the ME performance.
