arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.08349cs.LGcs.AIcs.CLcs.CR
收藏

摆动蒸馏:一个隐私保护的知识蒸馏框架

Swing Distillation: A Privacy-Preserving Knowledge Distillation Framework

Tianjin University(天津大学);ByteDance Lark AI(字节跳动飞书人工智能)

Junzhuo Li, Xinwei Wu, Weilong Dong, Shuangzhi Wu, Chao Bian, Deyi Xiong

摘要:

知识蒸馏(KD)被广泛用于模型压缩和知识转移。通常情况下,在足够的数据上训练的大型教师模型将知识转移到小型学生模型。然而,尽管KD取得了成功,但很少有人研究KD是否泄漏了教师模型的训练数据。在本文中,我们实验表明,KD遭受隐私泄漏的风险。为了缓解这个问题,我们提出了一种新的知识蒸馏方法-摆动蒸馏,它可以有效地保护教师模型的私有信息不流向学生模型。在我们的框架中,温度系数是动态的,自适应地调整,而不是一个预定义的常数超参数,根据数据中包含的私人信息的程度。它根据位置中的令牌包含隐私信息的可能性为令牌分配不同的温度。此外,我们将噪声注入到提供给学生模型的软目标中,以避免未屏蔽的知识转移。在多个数据集和任务上的实验表明,与KD相比,所提出的摆动蒸馏可以显着降低隐私泄露的风险(在金丝雀暴露方面超过80%),具有竞争力或更好的性能。此外,摆动蒸馏对不断增加的隐私预算具有鲁棒性。

英文摘要:

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.

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

↑