利用先验知识提取云端模型
Extracting Cloud-based Model with Prior Knowledge
AI总结:
针对现有云端模型提取攻击依赖后验知识存在开销高或泛化差的问题,提出结合自监督先验知识与熵采样的高效提取攻击,在真实平台API上验证了高保真、低成本及强对抗样本迁移性。
摘要:
机器学习即服务(Machine Learning-as-a-Service)是一种按使用量付费的业务模式,已被第三方用户和开发者广泛接受。然而,开放的推理API可能被恶意用户用于实施模型提取攻击,即攻击者仅通过查询恶意样本就能复制云端黑盒模型。现有的模型提取攻击主要依赖来自预言机(Oracle)的后验知识(即查询样本的预测结果),因此要么需要高昂的查询开销来模拟决策边界,要么受限于查询预算,存在泛化误差和过拟合问题。为缓解这一问题,本研究首次提出了一种基于先验知识的高效模型提取攻击。其核心思路是,无标签代理数据集的先验知识有助于搜索决策边界(例如信息量大的样本)。具体而言,我们利用包括自编码器和对比学习在内的自监督学习,将代理数据集的先验知识预编译到替代模型的特征提取器中。随后我们采用熵来衡量并采样信息量最大的样本,以查询目标模型。我们的设计同时利用先验知识和后验知识进行模型提取,从而消除了泛化误差和过拟合问题。我们在真实平台Azure和Clarifai的交通识别(Traffic Recognition)、花卉识别(Flower Recognition)、内容审核识别(Moderation Recognition)、NSFW识别(NSFW Recognition)等开放API上开展了大量实验。实验结果证明了我们攻击方法的有效性和高效性。例如,在NSFW识别API上,我们的攻击仅用1.8K次查询(花费2.16美元)就达到了95.1%的保真度。此外,用我们的替代模型生成的对抗样本比其他方法生成的具有更好的迁移性,这表明我们的方案更有利于下游攻击。
英文摘要:
Machine Learning-as-a-Service, a pay-as-you-go business pattern, is widely accepted by third-party users and developers. However, the open inference APIs may be utilized by malicious customers to conduct model extraction attacks, i.e., attackers can replicate a cloud-based black-box model merely via querying malicious examples. Existing model extraction attacks mainly depend on the posterior knowledge (i.e., predictions of query samples) from Oracle. Thus, they either require high query overhead to simulate the decision boundary, or suffer from generalization errors and overfitting problems due to query budget limitations. To mitigate it, this work proposes an efficient model extraction attack based on prior knowledge for the first time. The insight is that prior knowledge of unlabeled proxy datasets is conducive to the search for the decision boundary (e.g., informative samples). Specifically, we leverage self-supervised learning including autoencoder and contrastive learning to pre-compile the prior knowledge of the proxy dataset into the feature extractor of the substitute model. Then we adopt entropy to measure and sample the most informative examples to query the target model. Our design leverages both prior and posterior knowledge to extract the model and thus eliminates generalizability errors and overfitting problems. We conduct extensive experiments on open APIs like Traffic Recognition, Flower Recognition, Moderation Recognition, and NSFW Recognition from real-world platforms, Azure and Clarifai. The experimental results demonstrate the effectiveness and efficiency of our attack. For example, our attack achieves 95.1% fidelity with merely 1.8K queries (cost 2.16$) on the NSFW Recognition API. Also, the adversarial examples generated with our substitute model have better transferability than others, which reveals that our scheme is more conducive to downstream attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。