Knowledge distillation is a critical technique to transfer knowledge between models, typically from a large model (the teacher) to a smaller one (the student). The objective function of knowledge distillation is typically the cross-entropy between the teacher and the student's output distributions. However, for structured prediction problems, the output space is exponential in size; therefore, the cross-entropy objective becomes intractable to compute and optimize directly. In this paper, we derive a factorized form of the knowledge distillation objective for structured prediction, which is tractable for many typical choices of the teacher and student models. In particular, we show the tractability and empirical effectiveness of structural knowledge distillation between sequence labeling and dependency parsing models under four different scenarios: 1) the teacher and student share the same factorization form of the output structure scoring function; 2) the student factorization produces smaller substructures than the teacher factorization; 3) the teacher factorization produces smaller substructures than the student factorization; 4) the factorization forms from the teacher and the student are incompatible.
翻译:知识蒸馏是各种模型之间转让知识的关键技术,典型地从一个大模型(教师)到一个较小的模型(学生),知识蒸馏的客观功能通常是教师和学生产出分布之间的交叉孔径,然而,对于结构化的预测问题,产出空间是指数性的;因此,交叉孔径滴目标变得难以直接计算和优化。在本文中,我们为结构化预测得出一种知识蒸馏目标的因子化形式,这种形式对于教师和学生模式的许多典型选择是可移植的。特别是,我们显示了结构化知识蒸馏在四种不同情景下序列标签和依赖性分配模式之间的结构化知识蒸馏的可容性和实证效力:(1)师生共有产出结构评分函数的同一因子化形式;(2)学生因子化产生比教师因子化小的次结构;(3)教师因子化产生比学生因子化小的次结构;(4)教师和学生的因子化形式不相容。