Model Extraction and Adversarial Transferability, Your BERT is Vulnerable!

Xuanli He, Lingjuan Lyu, Qiongkai Xu, Lichao Sun
3/18/2021
cs.CL

Official code: xlhex/extract_and_transfer (10 stars, Python, last commit 2021-06-05).

Abstract

Natural language processing (NLP) tasks, ranging from text classification to text generation, have been revolutionised by the pre-trained language models, such as BERT. This allows corporations to easily build powerful APIs by encapsulating fine-tuned BERT models for downstream tasks.

Show full abstract

However, when a fine-tuned BERT model is deployed as a service, it may suffer from different attacks launched by malicious users. In this work, we first present how an adversary can steal a BERT-based API service (the victim/target model) on multiple benchmark datasets with limited prior knowledge and queries. We further show that the extracted model can lead to highly transferable adversarial attacks against the victim model. Our studies indicate that the potential vulnerabilities of BERT-based API services still hold, even when there is an architectural mismatch between the victim model and the attack model. Finally, we investigate two defence strategies to protect the victim model and find that unless the performance of the victim model is sacrificed, both model ex-traction and adversarial transferability can effectively compromise the target models

View on arXivView PDF

Code Implementations(1)

100Python, ShellMar 17, 20215 years ago

Similar Papers

Cite this paper

@article{he2021model,
  title  = {Model Extraction and Adversarial Transferability, Your BERT is Vulnerable!},
  author = {Xuanli He and Lingjuan Lyu and Qiongkai Xu and Lichao Sun},
  year   = {2021},
  eprint = {2103.10013},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.10013}
}

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/2103.10013.svg)](https://codeofpaper.com/paper/2103.10013)

Discussion