Ensemble Knowledge Guided Sub-network Search and Fine-Tuning for Filter Pruning

Seunghyun Lee, Byung Cheol SongECCV 2022

Introduction

Deep Neural Networks (DNNs) are computationally intensive, necessitating efficient compression techniques like filter pruning. Traditional pruning methods often frame the task as a Neural Architecture Search (NAS) problem, where an algorithm searches for the optimal sub-network. However, these methods frequently fall into the "Validation Proxy Trap," relying on validation accuracy as a reward signal, which often fails to predict final test performance accurately.

This paper introduces Ensemble Knowledge Guidance (EKG), a framework that shifts the focus from validation accuracy to the "smoothness" of a model's loss landscape. By leveraging an ensemble of interim sub-networks as a "memory bank" of teachers, EKG achieves state-of-the-art compression with minimal performance loss and significantly reduced computational overhead.

Comparison of search agents using validation accuracy versus loss landscape smoothness.

The Validation Proxy Trap and the Smoothness Hypothesis

The authors identify two primary flaws in current pruning approaches. First, validation performance is a poor predictor of a sub-network's ultimate potential, often leading to overfitting during the search phase. Second, the "Fine-tuning Gap" makes it difficult to restore performance; the gap between a large original model and a tiny pruned student is often too wide for effective Knowledge Distillation (KD).

To address this, the authors propose that the smoothness of the loss landscape is a superior metric for sub-network selection. A smoother landscape generally indicates better generalization and faster convergence. To quantify this, they utilize the Condition Number (CN)—the ratio of the minimum to maximum eigenvalues of the Hessian matrix. Their empirical analysis demonstrates that the CN correlates much more strongly with final test accuracy than validation loss does.

Correlation analysis showing that the condition number (smoothness) is a better predictor of potential loss than validation loss.

Methods: Ensemble Knowledge Guidance (EKG)

The EKG framework operates in two distinct phases:

  1. Search Phase: Instead of optimizing for accuracy, EKG searches for sub-networks with the smoothest loss landscapes. To avoid the high computational cost of calculating the Hessian directly, the search is guided by a reward signal derived from an ensemble of "interim" sub-networks generated during the search process.
  2. Fine-tuning Phase: These interim sub-networks are reused as "teacher assistants" stored in a memory bank. During fine-tuning, the pruned model learns from a mixture of these assistants. This creates a "curriculum" of targets that bridges the performance gap between the original heavy model and the lightweight pruned version.

Key Results and Insights

The EKG framework was evaluated on standard benchmarks including CIFAR-10/100 and ImageNet using ResNet and MobileNet architectures. Key findings include:

  • ResNet-50 (ImageNet): Achieved a 45.04% reduction in FLOPs with virtually no drop in Top-1 accuracy.
  • ResNet-56 (CIFAR-10): Reached 93.69% accuracy despite a 65.11% FLOPs reduction, outperforming established methods like Hrank and GAL.
  • Efficiency: The method is highly accessible, requiring only 315 GPU hours on a standard workstation (GTX 1080Ti) to prune a ResNet-50 model.

Conclusion

EKG demonstrates that the "by-products" of the search process—intermediate sub-networks—are valuable assets for both guiding the search and bridging the fine-tuning gap. By prioritizing loss landscape smoothness over immediate validation accuracy, EKG provides a more robust and efficient path toward high-performance model compression. Future work may extend this approach to non-convolutional architectures like Transformers and explore more advanced evolutionary search algorithms.

Summary updated

BibTeX
@inproceedings{lee2022ensemble,
  author = {Seunghyun Lee and Byung Cheol Song},
  title = {{Ensemble Knowledge Guided Sub-network Search and Fine-Tuning for Filter Pruning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=xC7EobvMptS},
}
Figure