[Paper Review] Few Sample Knowledge Distillation for Efficient Network Compression
This paper proposes Few-Sample Knowledge Distillation (FSKD), a label-free, data-efficient method for compressing deep neural networks using only 1% of the training data. By adding and optimizing 1×1 convolution layers at block outputs to align student and teacher features via least-squares regression, FSKD recovers accuracy to fine-tuning levels in minutes without extra inference cost, outperforming existing distillation and fine-tuning methods in low-data regimes.
Deep neural network compression techniques such as pruning and weight tensor decomposition usually require fine-tuning to recover the prediction accuracy when the compression ratio is high. However, conventional fine-tuning suffers from the requirement of a large training set and the time-consuming training procedure. This paper proposes a novel solution for knowledge distillation from label-free few samples to realize both data efficiency and training/processing efficiency. We treat the original network as "teacher-net" and the compressed network as "student-net". A 1x1 convolution layer is added at the end of each layer block of the student-net, and we fit the block-level outputs of the student-net to the teacher-net by estimating the parameters of the added layers. We prove that the added layer can be merged without adding extra parameters and computation cost during inference. Experiments on multiple datasets and network architectures verify the method's effectiveness on student-nets obtained by various network pruning and weight decomposition methods. Our method can recover student-net's accuracy to the same level as conventional fine-tuning methods in minutes while using only 1% label-free data of the full training data.
Motivation & Objective
- Address the inefficiency of conventional fine-tuning in high-compression, low-data scenarios where labeled data is scarce or unavailable.
- Enable efficient accuracy recovery for pruned or decomposed student networks without requiring large labeled datasets.
- Develop a method that is both training-efficient and inference-efficient, minimizing computational and data overhead.
- Demonstrate applicability across diverse network architectures and compression techniques (pruning, decomposition).
- Enable on-device or privacy-preserving model compression where only unlabeled data can be shared.
Proposed method
- Compress the teacher network into a student network using existing pruning or weight decomposition methods, preserving matching block-level feature map dimensions.
- Add a learnable 1×1 convolution layer at the end of each block in the student network to align its block-level outputs with those of the teacher network.
- Optimize the parameters of the added 1×1 conv layers using least-squares regression on a small set of unlabeled data, avoiding backpropagation over the entire student network.
- Prove that the added 1×1 conv layers can be merged into the preceding convolutional layers without increasing parameters or FLOPs during inference.
- Use block-coordinate descent (BCD) to optimize the 1×1 conv weights, enabling faster convergence with fewer samples than standard SGD-based distillation.
- Apply the method to both automatically compressed student networks (via pruning/decomposition) and hand-designed ones with random initialization.
Experimental results
Research questions
- RQ1Can knowledge distillation recover accuracy in compressed networks using only 1% of the full training data, without requiring labels?
- RQ2Does the proposed method achieve performance comparable to full fine-tuning while being significantly faster and more data-efficient?
- RQ3Can the method be applied universally across different network architectures and compression techniques (e.g., pruning, decomposition)?
- RQ4How does FSKD compare to existing distillation methods like FitNet in low-data regimes?
- RQ5Can FSKD be effective even when the few samples are from a different class distribution than the training data?
Key findings
- FSKD recovers student network accuracy to the same level as conventional fine-tuning using only 1% of the labeled training data and no labels during distillation.
- On CIFAR-10 and CIFAR-100, FSKD achieves comparable accuracy recovery even when the few samples are from a different class distribution, proving label-free generalization.
- For hand-designed student networks with random initialization, FSKD outperforms SGD, [21], [27], and FitNet, achieving 97.8% accuracy on MNIST with 200 samples—surpassing FitNet’s 96.5%.
- The method converges faster and more accurately than SGD-based distillation due to the use of BCD on only a few parameters (the 1×1 conv layers).
- FSKD maintains inference efficiency by merging the added 1×1 conv layers into the previous layers, ensuring no runtime overhead.
- The method is robust across multiple datasets (CIFAR-10, CIFAR-100, MNIST) and network architectures, demonstrating broad applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.