TL;DR
The Multi-Level Feature Distillation (MLFD) framework improves model generalization by fusing knowledge from multiple teachers trained on completely different datasets into a single "joint teacher." This collective knowledge is then distilled back into dataset-specific student models, yielding substantial performance gains across image classification and action recognition tasks without adding any computational overhead during inference.
What Problem Does This Paper Address?
Deep learning models are notoriously sensitive to dataset bias. A model trained entirely on one dataset (e.g., ImageNet) often struggles to generalize to out-of-domain data because no single dataset can capture the full variability of the visual world.
While training a single model on multiple datasets seems like an obvious fix, it introduces a major technical challenge: different datasets typically have entirely different label spaces and classification tasks. Standard workarounds, like multi-head networks (a shared backbone with separate prediction heads), often suffer from optimization conflicts and underperform compared to networks trained on a single dataset. The authors tackle this problem by asking: How can we effectively transfer complementary knowledge from multiple distinct datasets into a specialized model without increasing its inference cost?
Methods
The authors introduce Multi-Level Feature Distillation (MLFD), a three-stage training paradigm:
- Stage 1: Train Individual Teachers. Separate teacher models are trained from scratch on their respective datasets. These architectures do not need to be identical.
- Stage 2: Train a Joint Teacher ($T^*$). The individual teachers are frozen to save memory and compute. Their intermediate feature maps at a specific representation layer ($l_1$) are passed through small "adaptor blocks" to align their spatial dimensions, concatenated, and fed into a set of new, trainable downstream layers. This combined "joint teacher" is trained on all datasets simultaneously.
- Stage 3: Multi-Level Student Distillation. Dataset-specific student models (matching the architecture of the original individual teachers) are trained from scratch. They learn from a joint loss function that combines standard cross-entropy with ground-truth labels, logit distillation, and Mean Squared Error (MSE) losses that force the student's intermediate features to match the joint teacher's features across multiple layers ($L_k$).
Datasets
The framework was rigorously evaluated across a wide variety of benchmarks:
- Image Classification: CIFAR-100, TinyImageNet, ImageNet-Sketch, Caltech-101, Flowers-102, CUB-200-2011, and Oxford Pets.
- Action Recognition: ActivityNet, HMDB-51, and UCF-101.
Key Insights and Ideas
- Later Layers Hold the Key: Through ablation studies, the authors found that fusing teacher networks at layers closer to the output ($L_1$ or $L_2$) works significantly better than fusing early layers ($L_3$ or $L_4$). Early layers capture generic, low-level features (edges, textures) that are already similar across datasets, whereas later layers capture the high-level, complementary semantic information that makes multi-dataset learning valuable.
- Students Can Surpass Their Teachers: In an interesting twist common to robust distillation setups, the student models frequently outperformed the joint teachers they learned from (by about 1% on average). The distillation process acts as a regularizer, filtering out noise from the joint teacher's fused feature space.
- Data Diversity Beats Model Depth: The authors demonstrated that distilling knowledge from a mixture of lighter teachers trained on diverse datasets yields better student performance than distilling from a single, much deeper teacher trained on only one dataset.
Key Results
The MLFD framework consistently outperformed all baselines across all datasets:
- Vs. Single-Dataset Baselines: Student models achieved a top-1 accuracy boost ranging from 2% to 12%. On average, using a single level of feature distillation ($L_1$) improved performance by 3.4%, while two-level distillation ($L_2$) pushed the average gain to 6.1%.
- Vs. Multi-Dataset Baselines: MLFD soundly defeated standard multi-head and joint-head multi-dataset training configurations by margins between 5% and 27%.
- Action Recognition Gaps: The performance jumps were particularly massive in video action recognition. For instance, on ActivityNet, the baseline model's mean Average Precision (mAP) of 42.83% plummeted upwards to 82.89% when trained as an MLFD student.
Limitations and Future Work
- Wall-Clock Training Time: Because the joint teacher and the individual student models must be trained sequentially, the overall training pipeline takes longer than training a standard single-dataset model. However, the authors note that the individual teachers can be trained in parallel (or replaced with off-the-shelf pre-trained models), and the joint teacher converges roughly 5x faster than a standard model.
- Storage Overhead: Caching the intermediate embeddings from multiple frozen teacher models during Stage 2 requires substantial disk space.
- Future Directions: The authors plan to extend MLFD beyond classification and action recognition to more complex visual tasks like object detection and image segmentation, as well as exploring applications in Natural Language Processing (NLP).
Summary updated