Skip to main content
QUICK REVIEW

[Paper Review] Increasing the Cost of Model Extraction with Calibrated Proof of Work

Adam Dziedzic, Muhammad Ahmad Kaleem|arXiv (Cornell University)|Jan 23, 2022
Adversarial Robustness in Machine LearningComputer Science7 citations
TL;DR

This paper proposes a proactive defense against machine learning model extraction attacks by enforcing a calibrated proof-of-work (PoW) mechanism that increases computational cost for attackers while imposing minimal overhead on legitimate users. By using differential privacy budgets to measure information leakage per query, the method dynamically adjusts PoW difficulty, reducing model theft risk without degrading model accuracy or utility for honest users.

ABSTRACT

In model extraction attacks, adversaries can steal a machine learning model exposed via a public API by repeatedly querying it and adjusting their own model based on obtained predictions. To prevent model stealing, existing defenses focus on detecting malicious queries, truncating, or distorting outputs, thus necessarily introducing a tradeoff between robustness and model utility for legitimate users. Instead, we propose to impede model extraction by requiring users to complete a proof-of-work before they can read the model's predictions. This deters attackers by greatly increasing (even up to 100x) the computational effort needed to leverage query access for model extraction. Since we calibrate the effort required to complete the proof-of-work to each query, this only introduces a slight overhead for regular users (up to 2x). To achieve this, our calibration applies tools from differential privacy to measure the information revealed by a query. Our method requires no modification of the victim model and can be applied by machine learning practitioners to guard their publicly exposed models against being easily stolen.

Motivation & Objective

  • To address the growing threat of model extraction attacks that compromise intellectual property and enable adversarial attacks.
  • To develop a proactive defense that prevents model stealing before it occurs, unlike reactive approaches such as watermarking or proof of learning.
  • To maintain model accuracy and utility for legitimate users while significantly increasing computational cost for attackers.
  • To calibrate proof-of-work difficulty based on information leakage per query, using differential privacy metrics.
  • To provide a practical, model-agnostic defense that requires no modification to the victim model.

Proposed method

  • The defense wraps model predictions in a proof-of-work (PoW) puzzle, requiring clients to solve it before receiving responses.
  • The difficulty of each PoW is calibrated to the estimated information leakage per query using differential privacy budgets.
  • Information leakage is measured via the sensitivity of model predictions to input queries, leveraging tools from differential privacy.
  • The PoW server maintains a running total of query cost per user and adjusts puzzle difficulty accordingly.
  • The system uses a client-server architecture where clients submit solutions to the PoW, and only verified solutions trigger model inference.
  • The method is applied post-inference, requiring no changes to the victim model’s architecture or training process.

Experimental results

Research questions

  • RQ1Can a proof-of-work mechanism be calibrated to the information leakage of each query to deter model extraction without degrading model utility?
  • RQ2How can differential privacy metrics be used to estimate the privacy cost of individual queries in a way that is both accurate and efficient?
  • RQ3To what extent does the calibrated PoW defense increase computational cost for attackers while maintaining low overhead for legitimate users?
  • RQ4Can this defense be applied universally across different model architectures and datasets without requiring model-specific tuning?
  • RQ5How does the calibrated PoW compare to existing active and reactive defenses in terms of robustness and practicality?

Key findings

  • The calibrated PoW defense increases the computational cost of model extraction by up to 100x for attackers, significantly deterring large-scale query-based attacks.
  • Legitimate users experience only a minimal performance overhead, with query cost increased by at most 2x, preserving usability.
  • The method maintains the original model’s accuracy and prediction quality, as no output perturbations or truncations are applied.
  • The defense is effective across four diverse datasets and eight different model extraction attack variants, demonstrating broad applicability.
  • Using differential privacy-based cost estimation enables a data- and architecture-agnostic approach that is both practical and theoretically grounded.
  • The defense is proactive, preventing theft before it occurs, unlike reactive defenses such as watermarking or proof of learning that require post-theft detection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.