Skip to main content
QUICK REVIEW

[Paper Review] Model extraction from counterfactual explanations

Ulrich Aïvodji, Alexandre Bolot|arXiv (Cornell University)|Sep 3, 2020
Adversarial Robustness in Machine LearningComputer Science89 references20 citations
TL;DR

This paper demonstrates that counterfactual explanations—commonly used to improve model transparency—can be exploited by adversaries to perform high-fidelity, high-accuracy model extraction attacks with minimal query budgets. By leveraging perturbed input instances that alter model predictions, attackers can reconstruct surrogate models that closely mimic the target black-box model, revealing a critical privacy risk in explainable AI systems.

ABSTRACT

Post-hoc explanation techniques refer to a posteriori methods that can be used to explain how black-box machine learning models produce their outcomes. Among post-hoc explanation techniques, counterfactual explanations are becoming one of the most popular methods to achieve this objective. In particular, in addition to highlighting the most important features used by the black-box model, they provide users with actionable explanations in the form of data instances that would have received a different outcome. Nonetheless, by doing so, they also leak non-trivial information about the model itself, which raises privacy issues. In this work, we demonstrate how an adversary can leverage the information provided by counterfactual explanations to build high-fidelity and high-accuracy model extraction attacks. More precisely, our attack enables the adversary to build a faithful copy of a target model by accessing its counterfactual explanations. The empirical evaluation of the proposed attack on black-box models trained on real-world datasets demonstrates that they can achieve high-fidelity and high-accuracy extraction even under low query budgets.

Motivation & Objective

  • To investigate whether counterfactual explanations, intended for model transparency, can inadvertently leak sensitive model information.
  • To analyze the feasibility of model extraction attacks using only counterfactual explanations as a query interface.
  • To evaluate the performance of such attacks under varying adversary assumptions, including knowledge of training data and model architecture.
  • To explore the trade-off between explanation realism (diversity, robustness) and model privacy in post-hoc explanation systems.
  • To assess the implications for privacy-preserving machine learning and the limitations of existing defense mechanisms like query rate monitoring and watermarking.

Proposed method

  • The adversary queries a black-box model to obtain counterfactual explanations—perturbed inputs that change the model’s prediction.
  • The adversary uses these counterfactuals as training data to train a surrogate model via supervised learning, aiming to replicate the target model’s behavior.
  • Multiple adversary models are defined based on varying levels of prior knowledge: access to training data distribution, model architecture, and use of training data in explanation generation.
  • The attack is evaluated under low query budgets to simulate realistic, stealthy threat scenarios.
  • Performance is measured in terms of surrogate model accuracy and fidelity (e.g., similarity in predictions to the target model).
  • The method is tested on real-world datasets using black-box models such as random forests and neural networks.

Experimental results

Research questions

  • RQ1Can counterfactual explanations be leveraged to perform high-fidelity model extraction attacks on black-box models?
  • RQ2How does the adversary’s prior knowledge (e.g., training data distribution, model architecture) affect the success of model extraction?
  • RQ3Does the diversity of counterfactual explanations improve the quality of the extracted surrogate model?
  • RQ4Can model extraction be achieved with a low query budget, making the attack stealthy and hard to detect?
  • RQ5What is the tension between realistic, trustworthy explanations and the risk of model privacy leakage?

Key findings

  • The proposed model extraction attack achieves high accuracy and fidelity even with a low query budget, demonstrating the feasibility of stealthy attacks.
  • The attack is effective across different black-box models, including random forests and neural networks, on real-world datasets.
  • When counterfactual explanations are required to be diverse for trustworthiness, the attack performance improves, indicating a direct link between explanation quality and attack success.
  • The adversary can reconstruct a surrogate model that closely mimics the target model’s behavior, even without prior knowledge of the training data or architecture.
  • Existing defenses such as query rate monitoring and watermarking are ineffective against this attack due to its low query volume and non-adaptive nature.
  • The results reveal a fundamental tension between transparency (via realistic explanations) and privacy, as more faithful and diverse explanations increase the risk of model extraction.

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.