Model Compression for ResNet via Layer Erasure and Re-training

Yasutoshi Ida, Yasuhiro FujiwaraTransactions 2020

Abstract: Residual Networks (ResNets) are foundational in modern machine learning, but their computational depth often limits deployment on resource-constrained hardware. We propose Network Implosion, a method that strategically erases redundant layers from ResNets without degrading accuracy. By introducing a learnable priority term to identify layer importance and employing an aggressive re-training schedule, our method reduces layer counts by 24.00% to 42.86% across CIFAR-10/100 and ImageNet benchmarks with zero loss in accuracy.

The Challenge of Depth

While stacking layers in ResNets improves feature extraction, it significantly increases Multiply-Accumulate operations (MACs) and memory footprints. Previous compression techniques often focused on channel pruning or dynamic layer skipping. However, channel pruning frequently fails to translate theoretical FLOP reductions into actual wall-clock speedups on standard hardware.

Layer pruning offers a more direct relationship between FLOP reduction and actual processing time savings compared to channel pruning.

As shown in the figure above, layer-level pruning provides a much more efficient reduction in processing time relative to FLOP reduction than channel-level pruning. This motivates a static approach to removing entire structural blocks.

Methodology: Network Implosion

Network Implosion operates through a three-step iterative cycle designed to minimize the structural shock of removing entire layers:

  1. Importance Identification: A learnable scalar $w_l$ is assigned to each Residual Unit. During training, the network learns to weight the contribution of each layer. Layers with $w_l$ values near zero are flagged as redundant.
  2. Layer Erasure: The least important layers are physically removed from the architecture. This differs from weight pruning as it simplifies the network's topology, reducing both memory and latency.
  3. Aggressive Re-training: Removing a layer is a significant perturbation. To compensate, the authors use a high learning rate—matching the initial training phase—to allow the remaining layers to reorganize their internal representations.

Experimental Results

The researchers evaluated Network Implosion against standard ResNet baselines and teacher-student distillation methods across three major datasets: CIFAR-10, CIFAR-100, and ImageNet.

Accuracy vs. number of layers for (a) CIFAR-10, (b) CIFAR-100, and (c) ImageNet. Network Implosion consistently maintains higher accuracy than baselines as depth decreases.

Key Findings:

  • CIFAR-10: A 56-layer ResNet was compressed to 32 layers while maintaining an accuracy of ~93%, outperforming both the original smaller ResNet and distillation-based models.
  • ImageNet: A 50-layer ResNet was reduced to 38 layers (a 24% reduction) with no loss in accuracy, demonstrating scalability to large-scale visual recognition tasks.
  • Efficiency: For a 32-layer CIFAR-10 model, GPU inference time improved by approximately 40%.

Insights and Discussion

The success of Network Implosion suggests that standard ResNets contain significant structural redundancy, particularly in the early stages of the network. Furthermore, the necessity of high learning rates during re-training highlights that layer erasure is a "macro" change that requires the network to fundamentally re-learn how to process features, rather than just fine-tuning existing weights.

While currently optimized for ResNet architectures due to their identity shortcut structure, future work could explore extending this "implosion" logic to other modern architectures like Vision Transformers (ViTs) or automating the layer-selection schedule for production environments.

Summary updated

BibTeX
@article{ida2020model,
  author = {Yasutoshi Ida and Yasuhiro Fujiwara},
  title = {{Model Compression for ResNet via Layer Erasure and Re-training}},
  journal = {Transactions},
  year = {2020},
  doi = {10.1527/tjsai.c-ja3},
}
Figure