Skip to main content
QUICK REVIEW

[Paper Review] LIT: Block-wise Intermediate Representation Training for Model Compression

Animesh Koratana, Daniel Kang|arXiv (Cornell University)|Oct 2, 2018
Advanced Neural Network ApplicationsComputer Science25 references13 citations
TL;DR

LIT is a novel model compression technique that trains a narrower student network by matching intermediate representations (IRs) block-wise to a wider, deeper teacher network. By using the teacher’s IRs as input to each student block, LIT stabilizes training and enables compression of modern architectures like ResNeXt and VDCNN by up to 5.5× with no accuracy loss, outperforming knowledge distillation and hint training, and extending to GAN generators for the first time.

ABSTRACT

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.

Motivation & Objective

  • Address the instability of intermediate representations (IRs) in deep student networks during knowledge distillation.
  • Enable effective compression of modern, highly structured deep networks (e.g., ResNeXt, VDCNN) that are not well-compressed by standard hint training or KD.
  • Extend student/teacher training to GAN generators, which are incompatible with standard KD due to pixel-level outputs.
  • Achieve high-accuracy, compact student models by directly copying parts of the teacher network and using teacher IRs as input to student blocks.
  • Demonstrate that LIT can outperform the teacher model in accuracy when student and teacher have identical architectures.

Proposed method

  • Train a student network with the same width as the teacher but reduced depth, using block-wise intermediate representation (IR) matching.
  • Use the teacher’s IR from the previous block as input to the current student block during training, stabilizing internal representations.
  • Combine knowledge distillation (KD) loss with IR matching loss via a weighted interpolation factor β to balance logits and IR supervision.
  • Apply IR loss between corresponding blocks of student and teacher networks, ensuring width and feature map compatibility.
  • Allow selective compression by copying intact blocks from the teacher to the student, enabling modular model compression.
  • Support GAN generator compression by matching IRs in residual blocks, bypassing the incompatibility of KD with pixel outputs.

Experimental results

Research questions

  • RQ1Can intermediate representation matching be effectively extended to modern, very deep networks like ResNeXt and VDCNN, where standard hint training fails due to unstable IRs?
  • RQ2Does block-wise IR training with teacher-provided IRs as input improve student model accuracy and generalization compared to standard KD and hint training?
  • RQ3Can LIT compress GAN generators, which are not compatible with standard knowledge distillation due to their pixel-level output?
  • RQ4Does LIT enable student models to surpass the accuracy of the teacher model when both have identical architectures?
  • RQ5How sensitive is LIT’s performance to hyperparameters like β (IR loss weight) and α (KD loss weight), and what optimal settings emerge?

Key findings

  • LIT compresses ResNeXt-110 to ResNeXt-20 (5.5× compression) on CIFAR10 with no accuracy loss, outperforming KD and hint training.
  • LIT compresses VDCNN-29 to VDCNN-9 (3.2× compression) on Amazon Reviews with no accuracy degradation, demonstrating effectiveness on NLP tasks.
  • When compressing identical architectures, LIT improves student accuracy beyond the teacher model on ResNet, ResNeXt, and VDCNN, surpassing Born Again Networks.
  • LIT enables GAN generator compression by matching IRs in residual blocks, making it the first student/teacher method applicable to GANs.
  • Smoothed L1 loss for IR matching degrades accuracy compared to L1 and L2, with L1 and L2 showing no significant difference in performance.
  • Mixed-precision training has minimal impact on LIT performance, with only 0.06% accuracy drop on ResNeXt, confirming compatibility with modern training practices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.