不可否认:让一个讨厌的老师,CANNOT教学生
Undistillable: Making A Nasty Teacher That CANNOT teach students
摘要:
知识蒸馏(KD)是一种广泛使用的技术,用于将知识从预先训练的教师模型转移到(通常更轻量级的)学生模型。然而,在某些情况下,这种技术与其说是一种祝福,不如说是一种诅咒。例如,KD带来了暴露知识产权(IP)的潜在风险:即使经过训练的机器学习模型在“黑匣子”中发布(例如,作为没有开源代码的可执行软件或API),它仍然可以通过模仿输入输出行为被KD复制。为了防止KD的这种不必要的影响,本文引入并研究了一个称为Nasty Teacher的概念:一种经过特殊训练的教师网络,其性能与正常网络几乎相同,但通过模仿它会显着降低学生模型的性能。我们提出了一种简单而有效的算法来构建Nasty Teacher,称为自破坏知识蒸馏。具体来说,我们的目标是最大化讨厌的老师和正常的预先训练的网络之间的差异。在多个数据集上的大量实验表明,该方法对标准KD和无数据KD都是有效的,首次为模型所有者提供了理想的KD免疫性。我们希望我们的初步研究能引起更多人对这一具有社会和法律重要性的新的实际问题的认识和兴趣。
英文摘要:
Knowledge Distillation (KD) is a widely used technique to transfer knowledge from pre-trained teacher models to (usually more lightweight) student models. However, in certain situations, this technique is more of a curse than a blessing. For instance, KD poses a potential risk of exposing intellectual properties (IPs): even if a trained machine learning model is released in 'black boxes' (e.g., as executable software or APIs without open-sourcing code), it can still be replicated by KD through imitating input-output behaviors. To prevent this unwanted effect of KD, this paper introduces and investigates a concept called Nasty Teacher: a specially trained teacher network that yields nearly the same performance as a normal one, but would significantly degrade the performance of student models learned by imitating it. We propose a simple yet effective algorithm to build the nasty teacher, called self-undermining knowledge distillation. Specifically, we aim to maximize the difference between the output of the nasty teacher and a normal pre-trained network. Extensive experiments on several datasets demonstrate that our method is effective on both standard KD and data-free KD, providing the desirable KD-immunity to model owners for the first time. We hope our preliminary study can draw more awareness and interest in this new practical problem of both social and legal importance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。