Understanding Model Extraction Games

Xun Xian, Mingyi Hong, Jie Ding

TL;DR

This paper introduces a unified mathematical framework to study the "cat-and-mouse" game of model extraction attacks and defenses. By proposing the Adversary-Benignity (AB) curve and a novel min-max bi-level optimization approach, the authors provide a way to quantify the fundamental tradeoffs between a model's usefulness to legitimate users and its vulnerability to being stolen by competitors.

What Problem Does This Paper Address?

In the world of Machine-Learning-as-a-Service (MLaaS), companies provide access to powerful models via APIs (e.g., pay-per-query). However, these models are valuable intellectual property. An attacker can perform a Model Extraction Attack by sending a series of queries to the API and using the responses to train a "knockoff" model that mimics the original's functionality.

Existing research usually focuses on either a specific new attack or a specific defense. This creates an "arms race" without a clear understanding of the underlying limits. The authors address this gap by asking: Is there an equilibrium between privacy and utility? How can we systematically find the best attack and defense strategies simultaneously?

Methods

The paper introduces two major conceptual tools:

  1. The Adversary-Benignity (AB) Curve: This is a metric that plots the utility of the model for a benign user (x-axis) against the utility for an adversary (y-axis). A "perfect" defense would keep the adversary's utility low while keeping benign utility high (placing the point in the bottom-right of the graph).
  2. Min-Max Bi-level Optimization: The authors formulate the interaction as a complex three-layered optimization problem:
  3. Outer Level (Attacker): Choose the best query points to maximize the stolen model's accuracy.
  4. Middle Level (Server): Choose the best defense strategy (e.g., perturbing the output) to minimize the attacker's success.
  5. Inner Level (Attacker): Train the local "knockoff" model based on the (potentially defended) responses received.

To solve this, they developed Algorithm 1, a stochastic gradient descent-ascent method that operates at three different "speeds" (time scales) to ensure the different levels of the optimization converge correctly.

Datasets

The authors evaluated their framework using several standard benchmarks:

  • Synthetic Data: A linear classification task used to visualize how query points move during an attack.
  • MNIST: The classic handwritten digit dataset (specifically focusing on distinguishing '2's and '8's).
  • Fashion-MNIST: A more complex dataset of clothing items used to test the robustness of the optimization.
  • Mushroom & Adult Datasets: Used specifically to compare their theoretical AB curve against the empirical results of existing defense methods like Boundary Differentially Private Layer (BDPL).

Key Insights and Ideas

  • The 45-Degree Equilibrium: The authors prove theoretically that under certain probabilistic defense conditions, the "fair" state is a 45-degree line on the AB curve, where the loss in utility for the server exactly matches the loss in utility for the attacker.
  • The Battlefield is the Boundary: Visualization of the optimized attacks shows that the most "informative" queries for an attacker are those that lie directly on the decision boundary of the model. Effective defenses must focus on protecting these specific points.
  • Information-Theoretic Guarantees: The paper provides a formal definition of "$\epsilon$-learnability" in the context of model stealing, showing that a server can strategically flip labels to make a model mathematically "unlearnable" for an adversary within a certain error margin.
  • Unified View: By treating attack and defense as a single optimization problem, the framework reveals that an adversary who is "aware" of a potential defense can craft much more potent queries than one who is not.

Key Results

  • Algorithm Convergence: The proposed "three-speed" algorithm successfully converges on both synthetic and real-world datasets (MNIST/Fashion-MNIST), proving that the complex bi-level problem is computationally solvable.
  • Breaking the 45-Degree Line: The experiments show that when an attacker uses the optimized querying strategy from this framework, they can often push the AB curve above the 45-degree line. This means the attacker gains more utility than the server loses, highlighting the inherent difficulty of defending against sophisticated, adaptive adversaries.
  • Validation of Theory: The theoretical AB curve closely matched empirical data from previous independent studies (like BDPL), suggesting the framework is a reliable model for real-world behavior.

Limitations and Future Work

  • Computational Complexity: The main bottleneck is the need to calculate or approximate the inverse of a Hessian matrix (a large matrix of second-order derivatives) during the update steps. While the authors use Neumann series to speed this up, it remains intensive for very large models.
  • Side Information: The current framework assumes the adversary knows the model architecture. Future work could explore how "black-box" scenarios (where the architecture is unknown) change the shape of the AB curve.
  • Diverse Loss Functions: The authors suggest extending the framework to handle a wider variety of loss functions beyond standard cross-entropy and 0-1 loss.

Summary updated

BibTeX
@inproceedings{xian2022understanding,
  author = {Xun Xian and Mingyi Hong and Jie Ding},
  title = {{Understanding Model Extraction Games}},
  booktitle = {TPS-ISA},
  year = {2022},
  url = {https://openreview.net/forum?id=VZcjqb3tpvN},
}
Figure