From Counterfactuals to Trees: Competitive Analysis of Model Extraction Attacks

Awa Khouna, Julien Ferry, Thibaut Vidal
2/7/2025
cs.LGcs.CR

No official code found. Best implementation: vidalt/Tree-Extractor (3 stars, MIT, last commit 2025-05-15).

Abstract

The advent of Machine Learning as a Service (MLaaS) has heightened the trade-off between model explainability and security. In particular, explainability techniques, such as counterfactual explanations, inadvertently increase the risk of model extraction attacks, enabling unauthorized replication of proprietary models. In this paper, we formalize and characterize the risks and inherent complexity of model reconstruction, focusing on the "oracle'' queries required for faithfully inferring the underlying prediction function. We present the first formal analysis of model extraction attacks through the lens of competitive analysis, establishing a foundational framework to evaluate their efficiency. Focusing on models based on additive decision trees (e.g., decision trees, gradient boosting, and random forests), we introduce novel reconstruction algorithms that achieve provably perfect fidelity while demonstrating strong anytime performance. Our framework provides theoretical bounds on the query complexity for extracting tree-based model, offering new insights into the security vulnerabilities of their deployment.

View on arXivView PDF

Code Implementations(1)

MIT

Source code associated with the paper "From Counterfactuals to Trees: Competitive Analysis of Model Extraction Attacks", authored by Awa Khouna, Julien Ferry, and Thibaut Vidal

30PythonFeb 7, 20251 years agoMIT

Similar Papers

Cite this paper

@article{khouna2025from,
  title  = {From Counterfactuals to Trees: Competitive Analysis of Model Extraction Attacks},
  author = {Awa Khouna and Julien Ferry and Thibaut Vidal},
  year   = {2025},
  eprint = {2502.05325},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.05325v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.05325.svg)](https://codeofpaper.com/paper/2502.05325)

Discussion