Abstract
Deep Neural Networks (DNNs) are computationally intensive, hindering deployment on edge devices. We present Hierarchical Knowledge Squeezed Adversarial Network Compression (HK-SANC), a framework that compresses networks by "squeezing" teacher knowledge into task-relevant formats. By integrating hierarchical attention with adversarial training, HK-SANC enables small student networks to learn effectively from large teachers, outperforming existing distillation methods on ImageNet and CIFAR benchmarks.
Introduction
The deployment of powerful Deep Neural Networks (DNNs) on mobile and IoT hardware is limited by their significant computational demands. Knowledge Distillation (KD) addresses this by transferring knowledge from a large "teacher" model to a compact "student" model. However, existing KD methods often suffer from the capacity gap, where students are overwhelmed by high-dimensional teacher features, and the semantic gap, where intermediate layers are supervised in isolation.
Methods: The HK-SANC Architecture
HK-SANC addresses these gaps through three integrated components:
1. Task-Driven Knowledge Squeeze
Rather than transferring raw 3D feature maps, HK-SANC utilizes an attention mechanism to "squeeze" intermediate knowledge into compact vectors. This ensures the student receives only the most critical, task-relevant information, mitigating the capacity gap.
2. Hierarchical Connection Structure
To bridge the semantic gap, the framework implements a top-down flow where "squeezed" knowledge from deeper layers supervises shallower layers. This hierarchical supervision ensures that early layers are informed by the high-level semantic concepts captured at the network's end.
3. Adversarial Training
The system employs a GAN-based framework where a discriminator minimizes the distribution discrepancy between teacher and student outputs. A category-level regularizer is included to stabilize training and maintain high classification accuracy.
Experimental Results
The researchers evaluated HK-SANC on CIFAR-10, CIFAR-100, and ImageNet (ILSVRC 2012).
Performance Benchmarks
HK-SANC consistently outperformed state-of-the-art methods:
- CIFAR-10: Achieved a test error of 7.29%, beating other GAN-based methods like TSCAN (7.93%).
- CIFAR-100: Achieved an error of 31.35%, significantly lower than standard KD (33.34%).
- ImageNet: Compressing a ResNet-152 teacher into a ResNet-18 student resulted in a Top-1 error of 31.34%, outperforming TSCAN by 1.38%.
Convergence and Stability
The method demonstrates superior convergence stability. As shown in the training curves, the integration of intermediate supervision ($L_{is}$) and adversarial loss ($L_{adv}$) leads to lower and more stable error rates compared to backbone loss alone.
Discussion
The core insight of HK-SANC is that providing less information—through squeezed knowledge—can lead to better student performance by removing redundancy. The hierarchical connections further enhance this by providing top-down semantic guidance. While currently optimized for CNNs, future research will explore adapting the squeeze mechanism for Transformer architectures and streamlining the balancing of the multi-component loss function.
Summary updated