arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.10090cs.LGcs.AIstat.ML
收藏

宽神经网络中的知识蒸馏:风险界、数据效率与不完美教师

Knowledge Distillation in Wide Neural Networks: Risk Bound, Data Efficiency and Imperfect Teacher

Peking University(北京大学);School of Mathematical Sciences, Peking University(北京大学数学科学学院);Center for Data Science, Peking University(北京大学数据科学中心)

Guangda Ji, Zhanxing Zhu

AI总结:

本文基于神经切线核的线性化近似,对宽神经网络知识蒸馏开展理论分析,给出迁移风险界与数据低效性指标,揭示完美/不完美教师场景下软、硬标签的作用机制,为相关实践提供理论支撑。

摘要:

知识蒸馏是一种在教师网络的软输出指导下训练学生网络的策略,一直是模型压缩和知识迁移的有效方法。然而,目前知识蒸馏缺乏令人信服的理论理解。另一方面,近期关于神经切线核(neural tangent kernel)的研究成果使我们能够用网络随机特征的线性模型来近似宽神经网络。本文对宽神经网络的知识蒸馏进行了理论分析。首先,我们给出了该网络线性化模型的迁移风险界。随后,我们提出了一种衡量任务训练难度的指标,称为数据低效性(data inefficiency)。基于该指标我们证明,对于完美教师,高比例的教师软标签是有益的。最后,针对不完美教师的情况,我们发现硬标签可以纠正教师的错误预测,这解释了混合硬标签与软标签的实践做法。

英文摘要:

Knowledge distillation is a strategy of training a student network with guide of the soft output from a teacher network. It has been a successful method of model compression and knowledge transfer. However, currently knowledge distillation lacks a convincing theoretical understanding. On the other hand, recent finding on neural tangent kernel enables us to approximate a wide neural network with a linear model of the network's random features. In this paper, we theoretically analyze the knowledge distillation of a wide neural network. First we provide a transfer risk bound for the linearized model of the network. Then we propose a metric of the task's training difficulty, called data inefficiency. Based on this metric, we show that for a perfect teacher, a high ratio of teacher's soft labels can be beneficial. Finally, for the case of imperfect teacher, we find that hard labels can correct teacher's wrong prediction, which explains the practice of mixing hard and soft labels.

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

↑