Abstract
Natural language processing (NLP) tasks, ranging from text classification to text generation, have been revolutionised by the pretrained language models, such as BERT. This allows corporations to easily build powerful APIs by encapsulating fine-tuned BERT models for downstream tasks. However, when a fine-tuned BERT model is deployed as a service, it may suffer from different attacks launched by the 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 extraction and adversarial transferability can effectively compromise the target models.
| Original language | English |
|---|---|
| Title of host publication | Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics |
| Subtitle of host publication | Human Language Technologies |
| Place of Publication | Stroudsburg, PA |
| Publisher | The Association for Computational Linguistics |
| Pages | 2006-2012 |
| Number of pages | 7 |
| ISBN (Electronic) | 9781954085466 |
| DOIs | |
| Publication status | Published - 2021 |
| Externally published | Yes |
| Event | 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies - Online Duration: 6 Jun 2021 → 11 Jun 2021 |
Conference
| Conference | 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies |
|---|---|
| City | Online |
| Period | 6/06/21 → 11/06/21 |
Fingerprint
Dive into the research topics of 'Model extraction and adversarial transferability, your BERT is vulnerable!'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver