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

LIT:用于模型压缩的分块中间表示训练

LIT: Block-wise Intermediate Representation Training for Model Compression

Animesh Koratana, Daniel Kang, Peter Bailis, Matei Zaharia

摘要:

知识蒸馏(KD)是一种用于减少深度网络推理的计算开销的流行方法,其中教师模型的输出用于训练更小,更快的学生模型。提示训练(即,FitNets)通过将学生模型的中间表示回归到教师模型的中间表示来扩展KD。在这项工作中,我们引入了bLock-wise Intermediate representation Training(LIT),这是一种新型的模型压缩技术,它扩展了深度网络压缩中中间表示的使用,性能优于KD和提示训练。LIT有两个关键思想:1)LIT通过直接比较中间表示来训练与教师相同宽度(但深度较浅)的学生,以及2)LIT在训练期间使用教师模型中前一个块的中间表示作为当前学生块的输入,避免学生网络中不稳定的中间表示。我们发现,LIT在不损失准确性的情况下大幅降低了网络深度-例如,LIT可以在CIFAR 10上将ResNeXt-110压缩为ResNeXt-20(5.5倍),在Amazon Reviews上将VDCNN-29压缩为VDCNN-9(3.2倍),而不会损失准确性,在给定的准确性下,在网络大小方面优于KD和提示训练。我们还表明,将LIT应用于相同的学生/教师架构可以提高学生模型的准确性,超过教师模型,优于最近提出的ResNet,ResNeXt和VDCNN上的重生网络程序。最后,我们证明了LIT可以有效地压缩GAN生成器,这在KD框架中不受支持,因为GANs输出像素而不是概率。

英文摘要:

Knowledge distillation (KD) is a popular method for reducing the computational overhead of deep network inference, in which the output of a teacher model is used to train a smaller, faster student model. Hint training (i.e., FitNets) extends KD by regressing a student model's intermediate representation to a teacher model's intermediate representation. In this work, we introduce bLock-wise Intermediate representation Training (LIT), a novel model compression technique that extends the use of intermediate representations in deep network compression, outperforming KD and hint training. LIT has two key ideas: 1) LIT trains a student of the same width (but shallower depth) as the teacher by directly comparing the intermediate representations, and 2) LIT uses the intermediate representation from the previous block in the teacher model as an input to the current student block during training, avoiding unstable intermediate representations in the student network. We show that LIT provides substantial reductions in network depth without loss in accuracy -- for example, LIT can compress a ResNeXt-110 to a ResNeXt-20 (5.5x) on CIFAR10 and a VDCNN-29 to a VDCNN-9 (3.2x) on Amazon Reviews without loss in accuracy, outperforming KD and hint training in network size for a given accuracy. We also show that applying LIT to identical student/teacher architectures increases the accuracy of the student model above the teacher model, outperforming the recently-proposed Born Again Networks procedure on ResNet, ResNeXt, and VDCNN. Finally, we show that LIT can effectively compress GAN generators, which are not supported in the KD framework because GANs output pixels as opposed to probabilities.

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

↑