arXiv:1811.07598Computer ScienceNov 2018

Manuscript Offprint

arXiv:1811.07598

Self-Referenced Deep Learning

Xu Lan, Xiatian Zhu, S. Gong

Abstract

Knowledge distillation is an effective approach to transferring knowledge from a teacher neural network to a student target network for satisfying the low-memory and fast running requirements in practice use. Whilst being able to create stronger target networks compared to the vanilla non-teacher based learning strategy, this scheme needs to train additionally a large teacher model with expensive computational cost. In this work, we present a Self-Referenced Deep Learning (SRDL) strategy. Unlike both vanilla optimisation and existing knowledge distillation, SRDL distils the knowledge discovered by the in-training target model back to itself to regularise the subsequent learning procedure therefore eliminating the need for training a large teacher model. SRDL improves the model generalisation performance compared to vanilla learning and conventional knowledge distillation approaches with negligible extra computational cost. Extensive evaluations show that a variety of deep networks benefit from SRDL resulting in enhanced deployment performance on both coarse-grained object categorisation tasks (CIFAR10, CIFAR100, Tiny ImageNet, and ImageNet) and fine-grained person instance identification tasks (Market-1501).

1 Introduction

Deep neural networks have been shown to be effective for solving many computer vision tasks [22, 39, 42, 12, 24, 31]. However, they are often computationally expensive due to having very deep and/or wide architectures with millions of parameters [49, 12, 39]. This leads to slow execution and the need for large storage, reducing their deployability to situations with low memory and limited computing budget, e.g. mobile phones. This has given rise to efforts in developing more compact models, such as parameter binarisation [35], filter pruning [29], model compression [11], and knowledge distillation [15].

Among these existing techniques, knowledge distillation [15] is a generic approach suitable to a wide variety of networks and applications. It is based on the observation that compared to large networks, small networks often have similar representation capacities but are harder to define and train the parameters of a target function [1, 3]. As a solution to this challenge, knowledge distillation first trains a deeper and/or wider “teacher” network (or an ensemble model), then learns a smaller “student” network to imitate the teacher’s classification probabilities [15] and/or feature representations [1, 36] (Fig 1(b)). This imposes additional information beyond conventional supervised learning signals (Fig 1(a)), leading to a more discriminative student model than learning the target model without the teacher’s knowledge. However, this generalisation improvement comes with significant extra computational cost and model training time of the teacher model.

In contrast to knowledge distillation, fast model optimisation aims to reduce the cost of training a target model. While it is relatively fast to train a model on small datasets such as CIFAR10 [23] in a few hours, model training on larger datasets like the ILSVRC dataset [37] requires a few weeks. Hence, fast optimisation in deep model training has increasingly become an important problem to be addressed. There are several different approaches to fast optimisation, such as model initialisation [8, 34] and learning rate optimisation [20, 50, 7].

Figure 1: Illustration of three different deep network learning methods. (a) The vanilla training: Optimise the target model from the supervision of training label for MM epochs in one stage. (b) The Knowledge Distillation training: Firstly learn a teacher model in a computationally intensive manner; Then extract the learned knowledge from the teacher model; Lastly optimise the target model by leveraging both the label data and the teacher’s knowledge for MM epochs. (c) The proposed SRDL training: In the first stage, learn the target model by the label supervision for half (M/2M/2) epochs (similar to (a) but with a different learning rate strategy), and extract intermediate knowledge from the thus-far trained model (similar to (b) but without a heavy teacher model to train); In the second stage, continuously optimise the target model from the joint supervision of the labelled training data and the self-discovered knowledge for another half (M/2)(M/2) epochs.

In this work, we aim to jointly solve both knowledge distillation for model compression and fast optimisation in model learning using a unified deep learning strategy. To that end, we propose a Self-Referenced Deep Learning (SRDL) strategy that integrates the knowledge distillation concept into a vanilla network learning procedure (Fig 1(c)). Compared to knowledge distillation, SRDL exploits different and available knowledge without the need for additionally training an expensive teacher by self-discovering knowledge with the target model itself during training. Specifically, SRDL begins with training the target network by a conventional supervised learning objective as a vanilla strategy, then extracts self-discovered knowledge (inter-class correlations) during model training, and continuously trains the model until convergence by satisfying two losses concurrently: a conventional supervised learning loss, and an imitation loss that regulates the classification probability predicted by the current (thus-far) model with the self-discovered knowledge. By doing so, the network learns significantly better than learning from a conventional supervised learning objective alone, as we will show in the experiments.

Our contributions are: (I) We investigate for the first time the problems of knowledge distillation based model compression and fast optimisation in model training using a unified deep learning approach, an under-studied problem although both problems have been studied independently in the literature. (II) We present a stage-complete learning rate decay schedule in order to maximise the quality of intermediate self-discovered knowledge and therefore avoid the negative guidance to the subsequent second-stage model optimisation. (III) We further introduce a random model restart scheme for the second-stage training with the purpose of breaking the optimisation search space constraints tied to the self-referenced deep learning process.

Extensive comparative experiments are conducted on object categorisation tasks (CIFAR10/100 [23], Tiny ImageNet [27], and ImageNet [37]) and person instance identification tasks (Market-1501 [52]). These results show that the proposed SRDL offers a favourable trade-off between model generalisation and model capacity (complexity). It narrows down the model performance gap between the vanilla learning strategy and knowledge distillation with almost no extra computational cost. In some cases, SRDL even surpasses the performance of conventional knowledge distillation whilst maintaining the model learning efficiency advantage.

References (50)