[Paper Review] AMD: Automatic Multi-step Distillation of Large-scale Vision Models
This paper proposes Automatic Multi-step Distillation (AMD), a novel framework for compressing large-scale vision models via an automated cascade of distillation steps. AMD uses structural pruning and joint optimization to generate intermediate teacher-assistant models, then selects the optimal one using a Negative Performance-Scale Derivative (NPSD) metric, achieving state-of-the-art accuracy gains of up to 15.91% on CIFAR-100 and 4.03% on ImageNet while reducing training time by 10× compared to prior multi-step methods.
Transformer-based architectures have become the de-facto standard models for diverse vision tasks owing to their superior performance. As the size of the models continues to scale up, model distillation becomes extremely important in various real applications, particularly on devices limited by computational resources. However, prevailing knowledge distillation methods exhibit diminished efficacy when confronted with a large capacity gap between the teacher and the student, e.g, 10x compression rate. In this paper, we present a novel approach named Automatic Multi-step Distillation (AMD) for large-scale vision model compression. In particular, our distillation process unfolds across multiple steps. Initially, the teacher undergoes distillation to form an intermediate teacher-assistant model, which is subsequently distilled further to the student. An efficient and effective optimization framework is introduced to automatically identify the optimal teacher-assistant that leads to the maximal student performance. We conduct extensive experiments on multiple image classification datasets, including CIFAR-10, CIFAR-100, and ImageNet. The findings consistently reveal that our approach outperforms several established baselines, paving a path for future knowledge distillation methods on large-scale vision models.
Motivation & Objective
- To address the performance degradation in knowledge distillation when compressing large vision models with high capacity gaps (e.g., 10× compression).
- To eliminate the need for costly trial-and-error hyperparameter search in multi-step distillation by automating the selection of optimal intermediate teacher-assistant models.
- To improve distillation efficiency and performance by modeling the scale-performance trade-off using a novel NPSD metric.
- To enable effective distillation across diverse architectures, including ViT and Swin transformers, and extend to CNNs with competitive results.
Proposed method
- Structural pruning is applied to the teacher model to generate a series of intermediate teacher-assistant architectures across varying model scales.
- A joint optimization framework trains all teacher-assistant candidates simultaneously, enabling efficient search across multiple scales in a single training run.
- The Negative Performance-Scale Derivative (NPSD) metric is introduced to quantify the performance-scale optimality of candidate teacher-assistants, guiding selection of the best-performing one.
- The method employs a multi-loss objective combining cross-entropy, logit-based, and feature-mimicking losses to preserve knowledge across distillation stages.
- The optimal teacher-assistant is selected based on NPSD to maximize downstream student model performance.
- The framework is extended to CNN-based models via standard distillation practices, showing competitive performance.
Experimental results
Research questions
- RQ1Can an automated, multi-step distillation pipeline outperform single-step and manual multi-step distillation in compressing large vision models with high capacity gaps?
- RQ2How can the scale-performance trade-off in intermediate teacher-assistant models be quantitatively modeled to guide optimal selection?
- RQ3Does joint optimization across multiple teacher-assistant candidates improve training efficiency and final student performance compared to sequential training?
- RQ4To what extent do different loss components (cross-entropy, logit, feature-mimicking) contribute to the final distillation performance?
- RQ5Can the proposed NPSD metric reliably predict the best teacher-assistant without exhaustive search?
Key findings
- AMD achieves a 15.91% accuracy gain over baseline methods on CIFAR-100 under a 10× compression rate, significantly outperforming existing single-step and multi-step distillation approaches.
- On ImageNet, AMD improves student accuracy by 4.03% compared to state-of-the-art baselines, demonstrating strong generalization across datasets.
- AMD reduces training time by up to 10× compared to other multi-step distillation methods, due to joint optimization across all candidate teacher-assistants.
- Ablation studies show that removing the feature-mimicking loss ($\mathcal{L}_{\text{feat}}$) causes the largest performance drop (from 80.19% to 75.24%), highlighting its critical role in knowledge transfer.
- The NPSD metric is highly effective: it correlates strongly with student performance and enables optimal teacher-assistant selection without exhaustive search.
- The inclusion of DKD loss improves performance marginally (80.19% → 80.22%) but introduces instability due to additional hyperparameters, so it is not used in the final model.
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.