Skip to main content
QUICK REVIEW

[Paper Review] Moonshine: Distilling with Cheap Convolutions

Elliot J. Crowley, Gavin Gray|arXiv (Cornell University)|Nov 7, 2017
Industrial Vision Systems and Defect DetectionEngineering38 references49 citations
TL;DR

This paper proposes a novel model distillation method called 'Moonshine' that replaces standard convolutional blocks in deep networks with cheaper, grouped convolutional blocks (e.g., G(N) blocks) while preserving the original architecture. By using attention transfer during distillation, the method achieves substantial memory compression—up to 75% parameter reduction—while maintaining high accuracy, outperforming directly trained smaller models on CIFAR-10, CIFAR-100, ImageNet, and Cityscapes.

ABSTRACT

Many engineers wish to deploy modern neural networks in memory-limited settings; but the development of flexible methods for reducing memory use is in its infancy, and there is little knowledge of the resulting cost-benefit. We propose structural model distillation for memory reduction using a strategy that produces a student architecture that is a simple transformation of the teacher architecture: no redesign is needed, and the same hyperparameters can be used. Using attention transfer, we provide Pareto curves/tables for distillation of residual networks with four benchmark datasets, indicating the memory versus accuracy payoff. We show that substantial memory savings are possible with very little loss of accuracy, and confirm that distillation provides student network performance that is better than training that student architecture directly on data.

Motivation & Objective

  • Address the challenge of deploying large, memory-intensive neural networks on resource-constrained devices such as wearables and embedded systems.
  • Explore whether architectural compression through block replacement is more effective than traditional architectural shrinking (e.g., thinner or shallower networks).
  • Develop a plug-and-play distillation method that requires no redesign of the student network and reuses the same hyperparameters as the teacher.
  • Demonstrate that replacing standard convolutional blocks with cheaper grouped or depthwise separable blocks improves compression efficiency without sacrificing performance.

Proposed method

  • Replace standard residual blocks in ResNet and ERFNet with cheaper grouped convolutional blocks (G(N) blocks), which use grouped convolutions with or without bottleneck structures.
  • Apply knowledge distillation using attention transfer: the student network is trained to mimic the attention maps of the teacher network at intermediate layers.
  • Use the same optimizer, learning rate schedule, and data augmentation as the original teacher training, ensuring minimal reconfiguration.
  • Introduce a weighted loss term combining cross-entropy and attention transfer loss, with hyperparameters β tuned per layer to balance the two objectives.
  • Train the student network end-to-end using the combined loss, enabling it to learn both classification and feature-level knowledge from the teacher.
  • Preserve the original architecture and depth of the teacher network, focusing solely on replacing the convolutional block structure to reduce parameter count.

Experimental results

Research questions

  • RQ1Can replacing standard convolutional blocks with cheaper, grouped convolutional blocks lead to better model compression than architectural shrinking?
  • RQ2Does distillation using attention transfer significantly improve the performance of a compressed student network compared to training it from scratch?
  • RQ3To what extent can parameter count be reduced while maintaining high accuracy on image classification and semantic segmentation tasks?
  • RQ4Is the distillation process effective when applied to both classification and dense prediction tasks (e.g., semantic segmentation) with minimal hyperparameter tuning?
  • RQ5Can a student network with cheaper blocks and the same training setup as the teacher outperform a smaller, directly trained student network?

Key findings

  • On CIFAR-100, the Res34-G(4) student model with 8.1M parameters achieved 26.61% top-5 accuracy, outperforming the smaller Res18-0.5 (3.2M params, 37.20% top-5) despite having fewer parameters.
  • On ImageNet, the Res34-G(N) student model reduced parameters from 21.8M to 3.1M (85.8% reduction) while maintaining 32.98% top-5 accuracy, compared to 30.16% for a smaller Res34-G(N) with direct training.
  • For semantic segmentation on Cityscapes, the ERFNet-G(N) student reduced parameters from 2.06M to 0.49M (76.3% reduction), achieving 68.11% IoU with distillation, compared to 65.29% when trained from scratch.
  • The distillation process enabled the student network to achieve higher performance than training a smaller architecture directly on the data, demonstrating the benefit of knowledge transfer.
  • The method achieved significant memory savings with minimal accuracy drop: on CIFAR-10, a 75% parameter reduction (from 21.8M to 5.4M) resulted in only a 1.5% drop in top-1 accuracy.
  • The approach is highly efficient in design and training: it requires no hyperparameter tuning or architectural redesign, reusing the same training protocol as the teacher model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.