Abstract
Knowledge Distillation (KD) typically transfers "abstract" label-level knowledge from a teacher model to a student. This paper introduces FEED (FEature-level Ensemble for knowledge Distillation), a framework that shifts distillation to the feature map level, allowing a single student to learn from an ensemble of multiple teachers simultaneously. By utilizing dedicated nonlinear transformation layers (NTLs) during training, FEED significantly boosts student performance on benchmarks like CIFAR-100 and ImageNet without adding any computational overhead at inference time.
Introduction
Deep learning models often face the challenge of overfitting, which is frequently mitigated through model ensembles. However, ensembles are computationally expensive for real-world deployment. Knowledge Distillation (KD) addresses this by training a compact "student" network to mimic the outputs of a high-capacity "teacher" ensemble.
Traditional ensemble-based KD methods primarily focus on the final output (soft labels). While internal feature maps contain richer, more detailed information, leveraging them in an ensemble setting is difficult. It is challenging to force a student's single internal state to align with the diverse internal states of multiple different teachers simultaneously. FEED tackles this alignment problem to unlock the potential of feature-level ensembles.
Methods
The authors propose two primary algorithms under the FEED framework: Parallel FEED (pFEED) and Sequential FEED (sFEED).
Parallel FEED (pFEED)
This is the core contribution of the work. To distill knowledge from $N$ teachers, the student employs $N$ separate Nonlinear Transformation Layers (NTLs). During training, the student's final feature map is passed through each NTL, which is specifically trained to map the student's features to a corresponding teacher's feature map. This architecture allows the student to flexibly merge detailed knowledge from various teachers without being constrained to a single, potentially suboptimal, feature representation.
Sequential FEED (sFEED)
Inspired by "Born-Again Networks," this method trains a student and then uses that student as a teacher for a subsequent student of the same architecture. This process is repeated recursively using feature-level distillation to refine the model's internal representations.
Implementation Details
The NTLs consist of three $3 \times 3$ convolution layers. Crucially, these layers are only utilized during the training phase. At test time, they are discarded, ensuring the student network maintains its original, compact architecture and inference speed.
Experimental Results
The researchers evaluated FEED on standard image classification benchmarks, including CIFAR-100 and ImageNet (ILSVRC 2012), using various CNN architectures such as ResNet, WideResNet (WRN), and ResNext.
Key Performance Gains
pFEED consistently outperformed standard KD and other feature-based methods like Attention Transfer (AT):
- CIFAR-100 (WideResNet 28-10): The baseline error of 19.09% was reduced to 16.86% using pFEED, a significant improvement over standard KD (18.30%).
- ImageNet (ResNet-34): pFEED achieved a Top-1 error of 25.27%, an improvement of approximately 1.2% over the scratch baseline (26.45%).
Efficiency and Complexity
Because the NTLs are removed after training, the pFEED student has the exact same inference speed and parameter count as a model trained from scratch. Complexity analysis using an autoencoder-based "paraphraser" suggested that FEED students learn more sophisticated internal representations, as evidenced by higher reconstruction errors compared to standard models.
Discussion and Future Work
While FEED provides substantial accuracy gains, it introduces increased training overhead due to the simultaneous processing of multiple teachers and NTLs. Future research may explore optimizing NTL architectures through Neural Architecture Search (NAS) or extending the feature-level ensemble approach to other domains like object detection and semantic segmentation, where feature richness is paramount.
Summary updated