Thieves on Sesame Street! Model Extraction of BERT-based APIs
Not on the map. Why?
Cited by 22 in LLM safety and security, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
We study the problem of model extraction in natural language processing, in which an adversary with only query access to a victim model attempts to reconstruct a local copy of that model. Assuming that both the adversary and victim model fine-tune a large pretrained language model such as BERT (Devlin et al. 2019), we show that the adversary does not need any real training data to successfully mount the attack. In fact, the attacker need not even use grammatical or semantically meaningful queries: we show that random sequences of words coupled with task-specific heuristics form effective queries for model extraction on a diverse set of NLP tasks, including natural language inference and question answering. Our work thus highlights an exploit only made feasible by the shift towards transfer learning methods within the NLP community: for a query budget of a few hundred dollars, an attacker can extract a model that performs only slightly worse than the victim model. Finally, we study two defense strategies against model extraction---membership classification and API watermarking---which while successful against naive adversaries, are ineffective against more sophisticated ones.
Key facts. Cited by 136 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Oct 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 26; 2022: 25; 2023: 27; 2024: 25; 2025: 16; 2026: 17.
136 papers.
Sort:
By area:
- 2024Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothingcited by 341
- 2023The False Promise of Imitating Proprietary LLMscited by 254
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 194
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2022Membership Inference Attacks by Exploiting Loss Trajectorycited by 93
- 2023Protecting Language Generation Models via Invisible Watermarkingcited by 81
- 2021ML-Doctor: Holistic Risk Assessment of Inference Attacks Against Machine Learning Modelscited by 79
- 2021Protecting Intellectual Property of Language Generation APIs with Lexical Watermarkcited by 78
- 2022I Know What You Trained Last Summer: A Survey on Stealing Machine Learning Models and Defencescited by 75
- 2023Unleashing the potential of prompt engineering for large language modelscited by 72
- 2022Black-box Prompt Learning for Pre-trained Language Modelscited by 70
- 2021SoK: How Robust is Image Classification Deep Neural Network Watermarking? (Extended Version)cited by 67
38 more
- 2023Language Model Inversioncited by 66
- 2024Instructional Fingerprinting of Large Language Modelscited by 64
- 2021Mitigating Membership Inference Attacks by Self-Distillation Through a Novel Ensemble Architecturecited by 63
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2023Are You Copying My Model? Protecting the Copyright of Large Language Models for EaaS via Backdoor Watermarkcited by 61
- 2022Towards Data-Free Model Stealing in a Hard Label Settingcited by 57
- 2021Model Extraction and Adversarial Transferability, Your BERT is Vulnerable!cited by 51
- 2021Model Stealing Attacks Against Inductive Graph Neural Networkscited by 50
- 2022BITE: Textual Backdoor Attacks with Iterative Trigger Injectioncited by 47
- 2021BERT & Family Eat Word Salad: Experiments with Text Understandingcited by 44
- 2021Survey: Leakage and Privacy at Inference Timecited by 44
- 2022SSLGuard: A Watermarking Scheme for Self-supervised Learning Pre-trained Encoderscited by 43
- 2021Knowledge Inheritance for Pre-trained Language Modelscited by 38
- 2021Dynamic Knowledge Distillation for Pre-trained Language Modelscited by 38
- 2024Logits of API-Protected LLMs Leak Proprietary Informationcited by 38
- 2022Order-Disorder: Imitation Adversarial Attacks for Black-box Neural Ranking Modelscited by 37
- 2021Quantifying and Mitigating Privacy Risks of Contrastive Learningcited by 35
- 2021Inspect, Understand, Overcome: A Survey of Practical Methods for AI Safetycited by 35
- 2021Black-Box Attacks on Sequential Recommenders via Data-Free Model Extractioncited by 34
- 2023A Survey on ChatGPT: AI-Generated Contents, Challenges, and Solutionscited by 34
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenizationcited by 32
- 2022DualCF: Efficient Model Extraction Attack from Counterfactual Explanationscited by 31
- 2022Can't Steal? Cont-Steal! Contrastive Stealing Attacks Against Image Encoderscited by 30
- 2022Bilateral Dependency Optimization: Defending Against Model-inversion Attackscited by 30
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2022Distillation-Resistant Watermarking for Model Protection in NLPcited by 29
- 2024Large Model Based Agents: State-of-the-Art, Cooperation Paradigms, Security and Privacy, and Future Trendscited by 26
- 2024Transferable Embedding Inversion Attack: Uncovering Privacy Risks in Text Embeddings without Model Queriescited by 25
- 2023Model Leeching: An Extraction Attack Targeting LLMscited by 22
- 2022StolenEncoder: Stealing Pre-trained Encoders in Self-supervised Learningcited by 21
- 2022Increasing the Cost of Model Extraction with Calibrated Proof of Workcited by 21
- 2022How to Steer Your Adversary: Targeted and Efficient Model Stealing Defenses with Gradient Redirectioncited by 21
- 2023Model Extraction Attacks Revisitedcited by 21
- 2021Do Question Answering Modeling Improvements Hold Across Benchmarks?cited by 20
- 2023Stealing the Decoding Algorithms of Language Modelscited by 19
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Modelscited by 18
- 2023False Claims against Model Ownership Resolutioncited by 17
- 2023Recyclable Tuning for Continual Pre-trainingcited by 17
50 most cited of 136 All 136 (JSON)
- 2026JudgeStealer: Extracting LLM Judging Capabilities across Evaluation Protocols27 Aug 2026
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skills4 Aug 2026
- 2026Caliber: Cross-Architecture Extraction-Cost Control for Score-Returning APIs2 Aug 2026
- 2026SentAttack: A Sentence-Level Black-Box Adversarial Attack Method for Dense Retrieval Models3 Jul 2026
- 2026A Red Teaming Framework for Large Language Models: A Case Study on Faithfulness Evaluation24 Jun 2026
- 2026Let Them Steal: Trapping Large Language Model Extraction Attacks with Knowledge Honeypot14 Jun 2026
- 2026SoK: Colluding Adversaries in Machine Learning Pipelines8 Jun 2026
- 2026An Embarrassingly Simple Detector for Model Extraction Attacks in Large Language Model API Traffic4 Jun 2026
- 2026Unextractable Protocol Models: Collaborative Training and Inference without Weight Materialization22 May 2026
- 2026Robust LLM Watermarking with Minimal Semantic Distortion for IP Protection22 May 2026
- 2026Lossless Anti-Distillation Sampling12 May 2026
- 2026COPYCOP: Ownership Verification for Graph Neural Networks6 May 2026
38 more
- 2026Geometry-Aware Localized Watermarking for Copyright Protection in Embedding-as-a-Service13 Apr 2026
- 2026AI Security in the Foundation Model Era: A Comprehensive Survey from a Unified Perspective25 Mar 2026
- 2026DistillGuard: Evaluating Defenses Against LLM Knowledge Distillation8 Mar 2026
- 2026Real Money, Fake Models: Deceptive Model Claims in Shadow APIs2 Mar 2026
- 2026LoMime: Query-Efficient Membership Inference using Model Extraction in Label-Only Settings21 Feb 2026
- 2025DivQAT: Enhancing Robustness of Quantized Convolutional Neural Networks against Model Extraction Attacks30 Dec 2025
- 2025From Essence to Defense: Adaptive Semantic-aware Watermarking for Embedding-as-a-Service Copyright Protection18 Dec 2025
- 2025Black-Box Behavioral Distillation Breaks Safety Alignment in Medical LLMs10 Dec 2025
- 2025AttackPilot: Autonomous Inference Attacks Against ML Services With LLM-Based Agents24 Nov 2025
- 2025RegionMarker: A Region-Triggered Semantic Watermarking Framework for Embedding-as-a-Service Copyright Protection17 Nov 2025
- 2025Leave It to the Experts: Detecting Knowledge Distillation via MoE Expert Signatures19 Oct 2025
- 2025An Investigation of Memorization Risk in Healthcare Foundation Models14 Oct 2025
- 2025I Stolenly Swear That I Am Up to (No) Good: Design and Evaluation of Model Stealing Attacks29 Aug 2025
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Models26 Jun 2025
- 2025Stealix: Model Stealing via Prompt Evolution6 Jun 2025
- 2025Attack and defense techniques in large language models: A survey and new perspectives2 May 2025
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challenges27 Mar 2025
- 2025Attackers Can Do Better: Over- and Understated Factors of Model Stealing Attacks8 Mar 2025
- 2025Examining the Threat Landscape: Foundation Models and Model Stealing25 Feb 2025
- 2025Medical Multimodal Model Stealing Attacks via Adversarial Domain Alignment4 Feb 2025
- 2025HateBench: Benchmarking Hate Speech Detectors on LLM-Generated Content and Hate Campaigns28 Jan 2025
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents14 Nov 2024
- 2024Your Semantic-Independent Watermark is Fragile: A Semantic Perturbation Attack against EaaS Watermark14 Nov 2024
- 2024Trustworthy Text-to-Image Diffusion Models: A Timely and Focused Survey26 Sep 2024
- 2024Large Model Based Agents: State-of-the-Art, Cooperation Paradigms, Security and Privacy, and Future Trends22 Sep 2024
- 2024Protecting Copyright of Medical Pre-trained Language Models: Training-Free Backdoor Model Watermarking14 Sep 2024
- 2024"Yes, My LoRD." Guiding Language Model Extraction with Locality Reinforced Distillation4 Sep 2024
- 2024WET: Overcoming Paraphrasing Vulnerabilities in Embeddings-as-a-Service with Linear Transformation Watermarks29 Aug 2024
- 2024Is Efficient PAC Learning Possible with an Oracle That Responds 'Yes' or 'No'?17 Jun 2024
- 2024Transferable Embedding Inversion Attack: Uncovering Privacy Risks in Text Embeddings without Model Queries12 Jun 2024
- 2024Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothing12 Jun 2024
- 2024Inference Attacks: A Taxonomy, Survey, and Promising Directions4 Jun 2024
- 2024AI Risk Management Should Incorporate Both Safety and Security29 May 2024
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenization27 May 2024
- 2024Efficient Model-Stealing Attacks Against Inductive Graph Neural Networks20 May 2024
- 2024Reliable Model Watermarking: Defending Against Theft without Compromising on Evasion21 Apr 2024
- 2024Knowledge Distillation-Based Model Extraction Attack using GAN-based Private Counterfactual Explanations4 Apr 2024
- 2024Logits of API-Protected LLMs Leak Proprietary Information14 Mar 2024
50 newest of 136 All 136 (JSON)
- 2022Membership Inference Attacks by Exploiting Loss Trajectorycited by 93
- 2023Protecting Language Generation Models via Invisible Watermarkingcited by 81
- 2021ML-Doctor: Holistic Risk Assessment of Inference Attacks Against Machine Learning Modelscited by 79
- 2021Protecting Intellectual Property of Language Generation APIs with Lexical Watermarkcited by 78
- 2021Mitigating Membership Inference Attacks by Self-Distillation Through a Novel Ensemble Architecturecited by 63
- 2023Are You Copying My Model? Protecting the Copyright of Large Language Models for EaaS via Backdoor Watermarkcited by 61
- 2022BITE: Textual Backdoor Attacks with Iterative Trigger Injectioncited by 47
- 2021Quantifying and Mitigating Privacy Risks of Contrastive Learningcited by 35
- 2022Distillation-Resistant Watermarking for Model Protection in NLPcited by 29
- 2024MEA-Defender: A Robust Watermark against Model Extraction Attackcited by 16
- 2024Reliable Model Watermarking: Defending Against Theft without Compromising on Evasioncited by 9
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systemscited by 6
12 most cited of 20 All 20 (JSON)
- 2026A Red Teaming Framework for Large Language Models: A Case Study on Faithfulness Evaluation24 Jun 2026
- 2026Robust LLM Watermarking with Minimal Semantic Distortion for IP Protection22 May 2026
- 2026AI Security in the Foundation Model Era: A Comprehensive Survey from a Unified Perspective25 Mar 2026
- 2026DistillGuard: Evaluating Defenses Against LLM Knowledge Distillation8 Mar 2026
- 2026LoMime: Query-Efficient Membership Inference using Model Extraction in Label-Only Settings21 Feb 2026
- 2024Protecting Copyright of Medical Pre-trained Language Models: Training-Free Backdoor Model Watermarking14 Sep 2024
- 2024Reliable Model Watermarking: Defending Against Theft without Compromising on Evasion21 Apr 2024
- 2024RobWE: Robust Watermark Embedding for Personalized Federated Learning Model Ownership Protection29 Feb 2024
- 2024MEA-Defender: A Robust Watermark against Model Extraction Attack26 Jan 2024
- 2023Beyond Boundaries: A Comprehensive Survey of Transferable Attacks on AI Systems20 Nov 2023
- 2023SecurityNet: Assessing Machine Learning Vulnerabilities on Public Models19 Oct 2023
- 2023Are You Copying My Model? Protecting the Copyright of Large Language Models for EaaS via Backdoor Watermark17 May 2023
12 newest of 20 All 20 (JSON)
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 194
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2025AttackPilot: Autonomous Inference Attacks Against ML Services With LLM-Based Agentscited by 2
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skillscited by 2
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skills4 Aug 2026
- 2025AttackPilot: Autonomous Inference Attacks Against ML Services With LLM-Based Agents24 Nov 2025
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challenges27 Mar 2025
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents14 Nov 2024
- 2023The False Promise of Imitating Proprietary LLMscited by 254
- 2023The False Promise of Imitating Proprietary LLMs25 May 2023
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2022I Know What You Trained Last Summer: A Survey on Stealing Machine Learning Models and Defencescited by 75
- 2023Unleashing the potential of prompt engineering for large language modelscited by 72
- 2022Black-box Prompt Learning for Pre-trained Language Modelscited by 70
- 2021SoK: How Robust is Image Classification Deep Neural Network Watermarking? (Extended Version)cited by 67
- 2023Language Model Inversioncited by 66
- 2024Instructional Fingerprinting of Large Language Modelscited by 64
- 2022Towards Data-Free Model Stealing in a Hard Label Settingcited by 57
- 2021Model Extraction and Adversarial Transferability, Your BERT is Vulnerable!cited by 51
- 2021Model Stealing Attacks Against Inductive Graph Neural Networkscited by 50
- 2021BERT & Family Eat Word Salad: Experiments with Text Understandingcited by 44
- 2021Survey: Leakage and Privacy at Inference Timecited by 44
12 most cited of 105 All 105 (JSON)
- 2026JudgeStealer: Extracting LLM Judging Capabilities across Evaluation Protocols27 Aug 2026
- 2026Caliber: Cross-Architecture Extraction-Cost Control for Score-Returning APIs2 Aug 2026
- 2026Let Them Steal: Trapping Large Language Model Extraction Attacks with Knowledge Honeypot14 Jun 2026
- 2026SoK: Colluding Adversaries in Machine Learning Pipelines8 Jun 2026
- 2026An Embarrassingly Simple Detector for Model Extraction Attacks in Large Language Model API Traffic4 Jun 2026
- 2026Unextractable Protocol Models: Collaborative Training and Inference without Weight Materialization22 May 2026
- 2026Lossless Anti-Distillation Sampling12 May 2026
- 2026COPYCOP: Ownership Verification for Graph Neural Networks6 May 2026
- 2026Geometry-Aware Localized Watermarking for Copyright Protection in Embedding-as-a-Service13 Apr 2026
- 2026Real Money, Fake Models: Deceptive Model Claims in Shadow APIs2 Mar 2026
- 2025DivQAT: Enhancing Robustness of Quantized Convolutional Neural Networks against Model Extraction Attacks30 Dec 2025
- 2025From Essence to Defense: Adaptive Semantic-aware Watermarking for Embedding-as-a-Service Copyright Protection18 Dec 2025
12 newest of 105 All 105 (JSON)