一句话:提出 PEEP 框架,在仅黑盒查询条件下实用且高效地抽取情感分析 API 模型。
MLaaS 让用户通过 API 按查询付费使用已训练模型,但这类服务正面临模型抽取攻击的威胁。已有针对文本分析 API 的抽取研究往往假设攻击者掌握受害者模型的架构与参数等强知识,这在现实中很难成立;同时攻击者与受害者的训练数据分布可能差异很大,使高效抽取变得困难。本文提出 PEEP 框架,仅需查询访问即可抽取情感分析 API:它采用基于学习的方案,利用域外公开语料与一种新的查询策略构造代理训练数据,并引入贪心搜索算法为抽取模型选择合适的架构。作者在两个受害者模型、三个数据集和两个真实商用情感分析 API 上进行了大量实验,结果表明 PEEP 在效果与效率上均稳定优于当前最优基线。
Despite their stunning performance, developing deep learning models from scratch is a formidable task. Therefore, it popularizes Machine-Learning-as-a-Service (MLaaS), where general users can access the trained models of MLaaS providers via Application Programming Interfaces (APIs) on a pay-per-query basis. Unfortunately, the success of MLaaS is under threat from model extraction attacks, where attackers intend to extract a local model of equivalent functionality to the target MLaaS model. However, existing studies on model extraction of text analytics APIs frequently assume adversaries have strong knowledge about the victim model, like its architecture and parameters, which hardly holds in practice. Besides, since the attacker's and the victim's training data can be considerably discrepant, it is non-trivial to perform efficient model extraction. In this paper, to advance the understanding of such attacks, we propose a framework, PEEP, for practical and efficient model extraction of sentiment analysis APIs with only query access. Specifically, PEEP features a learning-based scheme, which employs out-of-domain public corpora and a novel query strategy to construct proxy training data for model extraction. Besides, PEEP introduces a greedy search algorithm to settle an appropriate architecture for the extracted model. We conducted extensive experiments with two victim models across three datasets and two real-life commercial sentiment analysis APIs. Experimental results corroborate that PEEP can consistently outperform the state-of-the-art baselines in terms of effectiveness and efficiency.
@inproceedings{WuZWCZKL23,
title = {Practical and Efficient Model Extraction of Sentiment Analysis APIs},
author = {Weibin Wu and Jianping Zhang and Victor Junqiu Wei and Xixian Chen and Zibin Zheng and Irwin King and Michael R. Lyu},
booktitle = {ICSE},
year = {2023},
doi = {10.1109/icse48619.2023.00054}
}