论文标题
摆动蒸馏:保存隐私的知识蒸馏框架
Swing Distillation: A Privacy-Preserving Knowledge Distillation Framework
论文作者
论文摘要
知识蒸馏(KD)已被广泛用于模型压缩和知识转移。通常,一个大型教师模型对足够的数据进行培训,将知识传输到小型学生模型。但是,尽管KD取得了成功,但几乎没有努力研究KD是否泄漏了教师模型的培训数据。在本文中,我们通过实验表明,KD患有隐私泄漏的风险。为了减轻这个问题,我们提出了一种新颖的知识蒸馏方法,即摇摆蒸馏,可以有效地保护教师模型的私人信息,以免流向学生模型。在我们的框架中,根据数据中包含的私人信息的程度,对温度系数进行了动态和自适应的调整,而不是预定义的常数高参数。它根据位置中的令牌包含私人信息的可能性为令牌分配了不同的温度。此外,我们将噪声注入提供给学生模型的软目标,以避免不遮盖的知识转移。在多个数据集和任务上进行的实验表明,与具有竞争力或更好的性能的KD相比,提议的挥杆蒸馏可以显着降低隐私泄漏的风险。此外,摆动蒸馏对增加的隐私预算是可靠的。
Knowledge distillation (KD) has been widely used for model compression and knowledge transfer. Typically, a big teacher model trained on sufficient data transfers knowledge to a small student model. However, despite the success of KD, little effort has been made to study whether KD leaks the training data of the teacher model. In this paper, we experimentally reveal that KD suffers from the risk of privacy leakage. To alleviate this issue, we propose a novel knowledge distillation method, swing distillation, which can effectively protect the private information of the teacher model from flowing to the student model. In our framework, the temperature coefficient is dynamically and adaptively adjusted according to the degree of private information contained in the data, rather than a predefined constant hyperparameter. It assigns different temperatures to tokens according to the likelihood that a token in a position contains private information. In addition, we inject noise into soft targets provided to the student model, in order to avoid unshielded knowledge transfer. Experiments on multiple datasets and tasks demonstrate that the proposed swing distillation can significantly reduce (by over 80% in terms of canary exposure) the risk of privacy leakage in comparison to KD with competitive or better performance. Furthermore, swing distillation is robust against the increasing privacy budget.