Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Distillation from Few Samples

Tianhong Li, Jianguo Li|arXiv (Cornell University)|Sep 27, 2018
Advanced Neural Network ApplicationsComputer Science11 citations
TL;DR

This paper proposes a novel knowledge distillation method that enables efficient knowledge transfer from a teacher to a student network using only a few training samples. By adding learnable 1x1 convolutional layers at each block of the student network and optimizing them with limited data, the method aligns feature maps between teacher and student, which can be merged back into the original layers without increasing computational cost, achieving strong performance with minimal data.

ABSTRACT

Current knowledge distillation methods require full training data to distill knowledge from a large teacher network to a compact student network by matching certain statistics between teacher and student such as softmax outputs and feature responses. This is not only time-consuming but also inconsistent with human cognition in which children can learn knowledge from adults with few examples. This paper proposes a novel and simple method for knowledge distillation from few samples. Taking the assumption that both teacher and student have the same feature map sizes at each corresponding block, we add a 1x1 conv-layer at the end of each block in the student-net, and align the block-level outputs between teacher and student by estimating the parameters of the added layer with limited samples. We prove that the added layer can be absorbed/merged into the previous conv-layer to formulate a new conv-layer with the same size of parameters and computation cost as the previous one. Experiments verify that the proposed method is very efficient and effective to distill knowledge from teacher-net to student-net constructing in different ways on various datasets.

Motivation & Objective

  • To address the inefficiency of existing knowledge distillation methods that require full training data.
  • To enable knowledge transfer from teacher to student networks using only a small number of training samples, mimicking human-like few-shot learning.
  • To develop a method that maintains the same model size and computational cost as the original student network after distillation.
  • To prove that the added 1x1 layers can be merged into existing conv layers without increasing parameters or FLOPs.
  • To validate the method across diverse architectures and datasets with minimal data.

Proposed method

  • Introduce a 1x1 convolutional layer at the end of each block in the student network to align feature maps with corresponding blocks in the teacher network.
  • Optimize the parameters of these 1x1 layers using only a few labeled samples from the training set.
  • Use a loss function that minimizes the difference between the output feature maps of the teacher and student networks at each block.
  • Prove mathematically that the added 1x1 layers can be absorbed into the preceding convolutional layers, preserving model size and computation cost.
  • Train the student network end-to-end with the added 1x1 layers, then merge them into the previous layers for inference.
  • Ensure that the distillation process maintains the same parameter count and FLOPs as the original student network.

Experimental results

Research questions

  • RQ1Can knowledge distillation be effectively performed using only a few training samples, rather than the full dataset?
  • RQ2How can feature map alignment between teacher and student networks be achieved efficiently with limited data?
  • RQ3Is it possible to add and later merge 1x1 convolutional layers into existing student network layers without increasing model complexity?
  • RQ4Does the proposed method generalize across different network architectures and datasets with minimal data?
  • RQ5Can the distillation process preserve model efficiency while achieving high accuracy?

Key findings

  • The proposed method achieves strong knowledge distillation performance using only a small number of training samples, significantly reducing data dependency.
  • The added 1x1 convolutional layers can be mathematically merged into the preceding convolutional layers, preserving the original model's parameter count and FLOPs.
  • The method is effective across various student and teacher network architectures on multiple datasets.
  • Experiments show that the distillation process leads to improved student network accuracy even with limited data.
  • The approach enables efficient, low-data knowledge transfer that better aligns with human-like few-shot learning.

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.