[Paper Review] Distilling with Performance Enhanced Students
This paper proposes a latency-aware distillation method that discovers performance-enhanced student networks by combining Fisher pruning with empirical hardware profiling to identify optimal layer widths. By leveraging staircase patterns in inference speedup, the method boosts top-1 ImageNet accuracy by over 10% compared to standard channel-pruned models at the same latency, achieving higher accuracy without increasing inference time.
The task of accelerating large neural networks on general purpose hardware has, in recent years, prompted the use of channel pruning to reduce network size. However, the efficacy of pruning based approaches has since been called into question. In this paper, we turn to distillation for model compression---specifically, attention transfer---and develop a simple method for discovering performance enhanced student networks. We combine channel saliency metrics with empirical observations of runtime performance to design more accurate networks for a given latency budget. We apply our methodology to residual and densely-connected networks, and show that we are able to find resource-efficient student networks on different hardware platforms while maintaining very high accuracy. These performance-enhanced student networks achieve up to 10% boosts in top-1 ImageNet accuracy over their channel-pruned counterparts for the same inference time.
Motivation & Objective
- To address the inefficacy of standard channel pruning, which often produces suboptimal models due to non-linear inference time scaling on general-purpose hardware.
- To overcome the limitation of using FLOPs as a proxy for inference time, which fails to capture hardware-specific performance bottlenecks.
- To develop a method that discovers high-accuracy, low-latency student networks by combining pruning with empirical hardware profiling.
- To improve model compression by identifying performance-enhanced architectures that maximize accuracy within a fixed latency budget.
- To demonstrate the effectiveness of the approach on ResNet, WideResNet, and DenseNet across multiple hardware platforms and datasets.
Proposed method
- Apply Fisher pruning to a pre-trained teacher network, removing one channel every 100 training steps until all prunable channels are removed.
- Use empirical inference time measurements on the target hardware to identify 'staircase' points where performance scales efficiently due to optimal utilization of device parallelism.
- Construct a latency-aware, performance-optimized student architecture by selecting layer widths at these optimal points, avoiding non-optimal FLOP-based approximations.
- Train the resulting student network using knowledge distillation with attention transfer, using the original teacher network to guide feature representation learning.
- Optimize the student with a distillation loss that includes a balance term β (set to 750 for ImageNet, 1000 for CIFAR) to weight attention loss relative to cross-entropy.
- Fine-tune the student using SGD with momentum 0.9, weight decay 0.0001, and a cosine decay schedule over 90 epochs for ImageNet.
Experimental results
Research questions
- RQ1Can we identify hardware-specific performance-optimal layer widths in neural networks that are not captured by FLOP-based metrics?
- RQ2Does combining empirical hardware profiling with distillation lead to higher-accuracy student networks than standard pruning at the same latency?
- RQ3To what extent can performance-enhanced students improve accuracy without increasing inference time on edge devices?
- RQ4How does the proposed method scale across different network architectures (e.g., ResNet, DenseNet, WideResNet) and datasets (e.g., CIFAR-10, ImageNet)?
- RQ5Can the staircase pattern in inference time be exploited to increase network capacity without sacrificing latency?
Key findings
- On ImageNet with a ResNet-34, the performance-enhanced student achieved a top-1 error of 32.29%, representing a 10%+ improvement over the Fisher-pruned model at 75% parameter compression.
- Despite a 20% increase in top-1 error for the pruned model (43.43%), the performance-enhanced student maintained the same inference time, demonstrating no latency penalty.
- The method successfully identified optimal layer widths on ARM Cortex-A57 hardware, where inference time exhibited a non-linear, staircase pattern due to hardware parallelism.
- The approach improved top-1 accuracy by over 10% compared to channel-pruned baselines while keeping inference time constant, proving the value of hardware-aware architecture search.
- The performance-enhanced student achieved higher MACs and parameter count than the pruned model, yet maintained identical inference speed by targeting optimal points on the latency profile.
- The technique generalizes across architectures and datasets, showing strong results on both CIFAR-10 and ImageNet with minimal architectural changes.
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.