Abstract
ADMP (Adversarial Double Masks based Pruning) is a novel framework designed to compress neural networks for IoT devices where target data is unlabeled and exhibits domain shift. By employing a "double mask" adversarial strategy within a knowledge distillation framework, it prunes 60% of model channels with less than 0.3% accuracy loss, significantly outperforming previous state-of-the-art methods.
Introduction
Deploying deep learning on Internet of Things (IoT) devices typically follows a "cloud-to-end" pipeline: models are trained on powerful cloud servers and then pruned to fit the limited memory and processing power of end devices. However, two major hurdles exist: domain shift and the lack of labels on target devices. Data collected by sensors often differs from cloud training sets due to environmental factors, and labeling this data is often impractical. While Unsupervised Domain Adaptation (UDA) handles unlabeled data, simply stacking UDA and pruning leads to significant performance degradation. ADMP integrates these processes into a single, cohesive adversarial framework.
The ADMP Framework
The core of ADMP is a Knowledge Distillation (KD) framework where a full-sized "teacher" model guides a smaller "student" model. The innovation lies in the use of Adversarial Double Masks:
- The Hard Mask ($m_h$): A binary mask used during the Channel Search stage to identify sub-structures that produce the most divergent outputs compared to the teacher on target data. It essentially "hunts" for the parts of the model most susceptible to domain shift.
- The Soft Mask ($m_s$): A continuous-value mask used during the Adversarial Update stage. The soft mask and network weights are optimized to minimize the difference between the student and teacher outputs.
This "min-max" game pushes the model to learn features robust across both cloud and end-device domains. To handle the discrete constraints of binary masks, the authors utilize the Alternating Direction Method of Multipliers (ADMM) optimization algorithm, allowing for smooth training despite discrete constraints.
Experimental Evaluation
The framework was evaluated on two benchmarks: Office31 (Amazon, Webcam, and DSLR domains) and ImageCLEF-DA (ImageNet, Caltech-256, and Pascal VOC). ADMP uses the output difference between teacher and student as a "pruning-aware" divergence metric. Furthermore, by adding a "clustering loss," the model ensures semantic alignment, mapping similar categories across domains near each other in the feature space.
Key Results
ADMP sets a new benchmark for cross-domain compression. On both Office31 and ImageCLEF-DA, it pruned 60% of channels with only 0.2% and 0.3% average accuracy loss, respectively. Compared to the previous state-of-the-art (TCP), ADMP achieved 1.63× more parameter reduction with a 4.1% to 5.1% improvement in accuracy.
The framework demonstrated particular robustness in difficult transfer scenarios, such as DSLR to Amazon, where traditional methods often fail significantly. This proves its ability to find robust classification boundaries even under high sparsity.
Conclusion
ADMP provides a robust solution for deploying efficient models in real-world IoT environments. While currently focused on structured channel pruning, future work could extend this adversarial mask approach to unstructured pruning and other areas of model optimization. Privacy remains a consideration, as highly tuned models might inadvertently leak information about target domain data if the model itself is compromised.
Summary updated