Introduction
Deep Neural Networks (DNNs) are notoriously power-hungry and memory-intensive, making them difficult to deploy on "edge" hardware like microcontrollers, IoT devices, and smartphones. To fit these models into tight hardware constraints, researchers typically use three tools: pruning (removing "unimportant" weights), quantization (reducing weight precision), and knowledge distillation (KD) (training a small "student" model to mimic a large "teacher").
However, traditional KD requires a large, pre-trained teacher model, adding complexity and computational overhead. The PQK framework addresses this bottleneck by performing distillation without an external teacher, repurposing the "unimportant" weights discarded during pruning to build an internal teacher.
Methodology
PQK introduces a two-phase training strategy that integrates all three compression pillars into a single workflow.
Phase 1: Pruning & Quantization-Aware Training (QAT)
The model is trained from scratch using iterative pruning, where the pruning ratio gradually increases. Simultaneously, it uses Quantization-Aware Training with a learnable step-size ($S_w$). This phase identifies which weights are "important" (kept) and "unimportant" (pruned).
Phase 2: Self-Distillation via the "Full Net"
Instead of discarding the unimportant weights, the authors combine them with the pruned model to create a "Full Net." In this setup, the Pruned Net (important weights only) acts as the Student, and the Full Net (important + unimportant weights) acts as the Teacher.
During mutual training, the student learns to match the teacher's output (logits). Crucially, during teacher updates, the "important" weights shared with the student are fixed, and only the "unimportant" weights are updated. This allows the teacher to provide a richer training signal to the student without requiring a separate model.
Experimental Setup
The authors evaluated PQK on two distinct tasks to prove its versatility:
- Keyword Spotting (KWS): Using Google’s Speech Commands Dataset v1 with ResNet-8 and a "narrow" version of ResNet-8.
- Image Recognition: Using the CIFAR-100 dataset with a ResNet-32 architecture.
Results and Discussion
The results demonstrate that Phase 2 (the distillation phase) is critical for recovering performance lost during initial compression.
Key insights from the evaluation include:
- Accuracy Recovery: On the ResNet-8-narrow model (4-bit quantization, 90% pruned), Phase 1 resulted in 74.1% accuracy. After Phase 2 distillation, accuracy jumped to 83.1%—a massive 9% improvement.
- Outperforming Vanilla: On CIFAR-100, a ResNet-32 model compressed to 8-bit precision with PQK achieved 69.8% accuracy, slightly outperforming the original 32-bit uncompressed "vanilla" model (69.7%).
- The "Unimportant" Weight Paradox: Weights deemed "unimportant" by magnitude-based pruning still contain residual information. By keeping them active in a "teacher" path, they help the "important" weights generalize better.
Conclusion
PQK provides a hardware-friendly compression method that eliminates the need for a massive, pre-trained teacher model. While Phase 2 requires additional computational cost during training (two forward passes), the resulting compact models achieve state-of-the-art accuracy recovery. Future work may explore scaling this method to larger datasets like ImageNet and further optimizing distillation hyperparameters.
Summary updated