arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.11158cs.CVcs.LGcs.NE
收藏

Black-Box Ripper:使用生成进化算法来重构黑盒模型

Black-Box Ripper: Copying black-box models using generative evolutionary algorithms

University of Bucharest(布加勒斯特大学);University Politehnica of Bucharest(布加勒斯特理工大学)

Antonio Barbalau, Adrian Cosma, Radu Tudor Ionescu, Marius Popescu

摘要:

我们研究了复制黑盒神经模型功能的任务,对于黑盒神经模型,我们只知道为一组输入图像提供的输出类概率。我们假设通过黑盒模型的反向传播是不可能的,并且它的训练图像不可用,例如,模型只能通过API暴露。在这种情况下,我们提出了一个教师-学生的框架,可以提取的黑盒(教师)模型到一个学生模型,以最小的准确性损失。为了生成用于训练学生的有用数据样本,我们的框架(i)学习在代理数据集上生成图像(图像和类与用于训练黑盒的图像和类不同),以及(ii)应用进化策略以确保每个生成的数据样本在作为黑盒的输入时对特定类表现出高响应。我们的框架进行了比较与几个基线和国家的最先进的方法在三个基准数据集。经验证据表明,我们的模型优于所考虑的基线。虽然我们的方法没有通过黑盒网络反向传播,但它通常超过了将教师视为玻璃盒模型的最先进方法。我们的代码可在https://github.com/antoniobarbalau/black-box-ripper上获得。

英文摘要:

We study the task of replicating the functionality of black-box neural models, for which we only know the output class probabilities provided for a set of input images. We assume back-propagation through the black-box model is not possible and its training images are not available, e.g. the model could be exposed only through an API. In this context, we present a teacher-student framework that can distill the black-box (teacher) model into a student model with minimal accuracy loss. To generate useful data samples for training the student, our framework (i) learns to generate images on a proxy data set (with images and classes different from those used to train the black-box) and (ii) applies an evolutionary strategy to make sure that each generated data sample exhibits a high response for a specific class when given as input to the black box. Our framework is compared with several baseline and state-of-the-art methods on three benchmark data sets. The empirical evidence indicates that our model is superior to the considered baselines. Although our method does not back-propagate through the black-box network, it generally surpasses state-of-the-art methods that regard the teacher as a glass-box model. Our code is available at: https://github.com/antoniobarbalau/black-box-ripper.

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

↑