arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.10909cs.CRcs.CLcs.LG
收藏

一石二鸟:基于BERT API的模型提取和属性推断攻击

Killing One Bird with Two Stones: Model Extraction and Attribute Inference Attacks against BERT-based APIs

Zhejiang University(浙江大学);Monash University(蒙纳士大学);Sony AI(索尼人工智能);Microsoft Research Asia(微软亚洲研究院)

Chen Chen, Xuanli He, Lingjuan Lyu, Fangzhao Wu

摘要:

大数据的收集和可用性,以及预先训练模型的进步(例如,BERT、XLNET等)已经彻底改变了从文本分类到文本生成的现代自然语言处理任务的预测性能。这允许企业通过将微调的基于BERT的模型封装为API来提供机器学习即服务(MLaaS)。然而,基于BERT的API存在一系列安全和隐私漏洞。例如,先前的工作已经通过提取模型制作的对抗性示例利用了基于BERT的API的安全问题。然而,基于BERT的API通过提取的模型的隐私泄漏问题还没有得到很好的研究。另一方面,由于基于BERT的API的高容量,微调后的模型很容易被过度学习,但从提取的模型中可能泄露什么样的信息仍然是未知的。在这项工作中,我们首先提出了一个有效的模型窃取攻击,其中对手几乎可以窃取基于BERT的API(目标/受害者模型),只查询有限数量的查询,以弥补这一差距。我们进一步开发了一种有效的属性推断攻击,可以推断出基于BERT的API所使用的训练数据的敏感属性。我们在各种现实设置下对基准数据集进行了广泛的实验,验证了基于BERT的API的潜在漏洞。此外,我们证明了两种有前途的防御方法对我们的攻击变得无效,这需要更有效的防御方法。

英文摘要:

The collection and availability of big data, combined with advances in pre-trained models (e.g., BERT, XLNET, etc), have revolutionized the predictive performance of modern natural language processing tasks, ranging from text classification to text generation. This allows corporations to provide machine learning as a service (MLaaS) by encapsulating fine-tuned BERT-based models as APIs. However, BERT-based APIs have exhibited a series of security and privacy vulnerabilities. For example, prior work has exploited the security issues of the BERT-based APIs through the adversarial examples crafted by the extracted model. However, the privacy leakage problems of the BERT-based APIs through the extracted model have not been well studied. On the other hand, due to the high capacity of BERT-based APIs, the fine-tuned model is easy to be overlearned, but what kind of information can be leaked from the extracted model remains unknown. In this work, we bridge this gap by first presenting an effective model extraction attack, where the adversary can practically steal a BERT-based API (the target/victim model) by only querying a limited number of queries. We further develop an effective attribute inference attack which can infer the sensitive attribute of the training data used by the BERT-based APIs. Our extensive experiments on benchmark datasets under various realistic settings validate the potential vulnerabilities of BERT-based APIs. Moreover, we demonstrate that two promising defense methods become ineffective against our attacks, which calls for more effective defense methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑