Skip to main content
QUICK REVIEW

[Paper Review] Progressive Network Grafting for Few-Shot Knowledge Distillation

Chengchao Shen, Xinchao Wang|arXiv (Cornell University)|Dec 9, 2020
Advanced Neural Network ApplicationsComputer Science9 citations
TL;DR

This paper proposes a dual-stage progressive network grafting method for few-shot knowledge distillation, where student network blocks are incrementally grafted onto a pre-trained teacher network and jointly optimized to enable efficient knowledge transfer with minimal labeled data. The approach achieves performance on par with full-dataset knowledge distillation on CIFAR-10 and CIFAR-100 using only 1–10 samples per class.

ABSTRACT

Knowledge distillation has demonstrated encouraging performances in deep model compression. Most existing approaches, however, require massive labeled data to accomplish the knowledge transfer, making the model compression a cumbersome and costly process. In this paper, we investigate the practical few-shot knowledge distillation scenario, where we assume only a few samples without human annotations are available for each category. To this end, we introduce a principled dual-stage distillation scheme tailored for few-shot data. In the first step, we graft the student blocks one by one onto the teacher, and learn the parameters of the grafted block intertwined with those of the other teacher blocks. In the second step, the trained student blocks are progressively connected and then together grafted onto the teacher network, allowing the learned student blocks to adapt themselves to each other and eventually replace the teacher network. Experiments demonstrate that our approach, with only a few unlabeled samples, achieves gratifying results on CIFAR10, CIFAR100, and ILSVRC-2012. On CIFAR10 and CIFAR100, our performances are even on par with those of knowledge distillation schemes that utilize the full datasets. The source code is available at https://github.com/zju-vipa/NetGraft.

Motivation & Objective

  • To address the data hunger problem in knowledge distillation, where existing methods require large amounts of labeled data for effective student network training.
  • To develop a robust, principled distillation framework that reduces dependency on fragile pre/post-processing techniques like network pruning.
  • To enable effective knowledge transfer from a teacher network to a student network using only a few unlabeled samples per class.
  • To improve training efficiency and reduce overfitting risk in low-data regimes through block-wise parameter optimization.

Proposed method

  • The method employs a two-stage progressive grafting process: first, individual student blocks are grafted onto corresponding positions in the teacher network and jointly optimized with fixed teacher weights.
  • In the second stage, the already-trained student blocks are incrementally connected and grafted onto the teacher network, allowing them to adapt to one another.
  • Knowledge distillation is performed using a distillation loss that aligns student activations with those of the teacher network during both stages.
  • The approach leverages the well-trained parameters of the teacher network to significantly reduce the student's effective parameter search space.
  • The student blocks are initialized as lightweight modules and progressively replaced into the teacher architecture, enabling efficient fine-tuning with minimal data.
  • The method supports partial network grafting, allowing replacement of heavy blocks in a teacher network with lighter counterparts from a smaller network.

Experimental results

Research questions

  • RQ1Can knowledge distillation be effectively performed with only a few unlabeled samples per class, without relying on large-scale labeled datasets?
  • RQ2How can the parameter search space of a student network be reduced to improve generalization and reduce overfitting in low-data regimes?
  • RQ3Can progressive grafting of student blocks onto a teacher network improve training efficiency and performance compared to end-to-end training?
  • RQ4To what extent can a student network trained via block-wise grafting achieve performance comparable to full-dataset distillation?

Key findings

  • On CIFAR-10 and CIFAR-100, the proposed method achieves test accuracy comparable to full-dataset knowledge distillation, even with only 1 sample per class.
  • With 10 samples per class, the method achieves 93.4% top-1 accuracy on CIFAR-10 and 71.8% on CIFAR-100, matching or exceeding baseline methods.
  • The block-wise grafting strategy reduces overfitting, as evidenced by a smaller gap between training and test accuracy compared to end-to-end training.
  • On ILSVRC-2012, replacing ResNet34 blocks 3 and 4 with those from ResNet18 reduced parameters by 69.2% while incurring only a 1.65% accuracy drop with 10 samples per class.
  • The method converges faster and achieves better generalization than training the entire student network at once, especially in low-shot settings.
  • Partial network grafting demonstrates significant model compression potential, reducing model size by up to 69.2% with minimal performance degradation.

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.