Exploring Connections Between Active Learning and Model Extraction

Varun Chandrasekaran, Kamalika Chaudhuri, Irene Giacomelli, Somesh Jha, Songbai Yan

TL;DR

This paper bridges the gap between active learning and model extraction attacks on Machine Learning-as-a-Service (MLaaS) platforms. By formalizing model extraction as a query synthesis active learning problem, the authors demonstrate how existing active learning techniques can be leveraged to perform powerful extraction attacks, and conversely, how active learning research can inform defense strategies.

What Problem Does This Paper Address?

The increasing reliance on MLaaS platforms for machine learning tasks presents new security challenges. One significant concern is "model extraction," where adversaries exploit the platform's query interface to steal a proprietary model. While previous work has shown the feasibility of such attacks, a formal understanding of their mechanisms and a systematic exploration of defenses have been lacking. This paper aims to address this by providing a formal framework for model extraction and drawing parallels with the well-established field of active learning, thereby enabling the application of active learning techniques to both attack and defense.

Methods

The core contribution of this paper is framing model extraction as a Query Synthesis (QS) active learning problem. In QS active learning, a learner adaptively chooses unlabeled data points to query for their labels from an oracle, aiming to minimize the number of queries needed to learn a target function. This mirrors model extraction, where an adversary (learner) queries a MLaaS server (oracle) to steal a model, aiming to minimize query costs.

The authors leverage this connection to:

  • Develop powerful extraction attacks: They adapt existing QS active learning algorithms to perform model extraction on various classifiers, including linear models, kernel SVMs, decision trees, and random forests.
  • Investigate defense strategies: By understanding model extraction through the lens of active learning, they explore potential defenses, particularly focusing on randomization techniques.

Datasets

The paper uses standard datasets for evaluation, including:

  • UCI Machine Learning Repository: Datasets like Adult Income, Breast Cancer, Digits, and Wine are used.
  • Synthetic datasets: Used for specific theoretical explorations and experimental setups.

The paper does not introduce new benchmarks but rather utilizes existing ones to validate its findings in the context of model extraction.

Key Insights and Ideas

  • Model Extraction as QS Active Learning: This is the central insight. By viewing model extraction through the QS active learning framework, the paper unlocks a wealth of existing research and techniques for both attack and defense.
  • No "Free Lunch" for Defense: Simple defense strategies like random label flipping are shown to be ineffective against sophisticated active learning-based attacks.
  • Data-Dependent Randomization is Key: Defenses that adapt their randomization based on the input query are more promising, but still face challenges against advanced active learning algorithms.
  • Active Learning Algorithms are Powerful Attack Tools: The paper demonstrates that algorithms designed for efficient learning in active learning settings can be directly repurposed to steal models with high efficiency.

Key Results

  • Efficient Extraction of Linear Models: QS active learning algorithms required a relatively low number of queries (e.g., ~900 queries for the digits dataset with d=64, costing ~$0.09) to extract linear halfspaces, even with data-independent noise.
  • Impact of Data-Independent Noise: Data-independent randomization (label flipping) moderately increases query complexity. For instance, extracting a halfspace with p=0.4 noise required ~36,546 queries (~$3.65).
  • Data-Dependent Randomization Challenges: State-of-the-art QS algorithms struggle against data-dependent randomization techniques, suggesting that passive learning algorithms might be more resilient in such scenarios.
  • Kernel SVM Extraction: The proposed Extended Adaptive Training (EAT) approach improved query complexity by 5x-224x compared to prior methods.
  • Decision Tree Extraction: The Importance Weighted Active Learning (IWAL) algorithm enabled decision tree extraction without auxiliary information, with a nominal increase in query complexity (14x).
  • Comparison to Baselines: The proposed QS active learning-based attacks generally outperformed or matched existing methods like Lowd and Meek's algorithm in terms of query complexity and extracted model accuracy.

Limitations and Future Work

  • Formalization of Continuous Case: The paper notes that generalizing Proposition 1 to the continuous case (regression problems) is not straightforward and requires further discussion.
  • Complex Models (DNNs): Analyzing the impact of active learning on complex models like Deep Neural Networks (DNNs) is identified as a very important and interesting direction for future work. The effect of queries on the hypothesis space for DNNs is complex.
  • Model Transferability: The paper briefly touches upon model transferability (where the oracle uses a different hypothesis class) as a potential defense, but its implications for query synthesis active learning are unclear and warrant further investigation.
  • Limitations from Active Learning Theory: Some active learning algorithms require a small amount of labeled data for bootstrapping, which might not always be available. Additionally, the geometric error used in some extraction attacks may not directly correlate with generalization error.
  • Defense Strategies: While data-dependent randomization is promising, its effectiveness against all active learning algorithms and its practical implementation remain open research questions. The paper suggests that designing effective defenses is an ongoing challenge.

Summary updated

BibTeX
@inproceedings{chandrasekaran2020exploring,
  author = {Varun Chandrasekaran and Kamalika Chaudhuri and Irene Giacomelli and Somesh Jha and Songbai Yan},
  title = {{Exploring Connections Between Active Learning and Model Extraction}},
  booktitle = {USENIX Security},
  year = {2020},
}
Figure