Introduction
Deploying state-of-the-art convolutional neural networks (CNNs) like ResNet or VGG on mobile devices presents a significant challenge due to stringent hardware constraints. Developers must navigate the "AMS trade-off"—balancing Accuracy, Memory footprint, and Speed (latency). Traditional manual pruning or hand-designed architectures are often insufficient for optimizing all three metrics simultaneously, especially when a model only needs to perform well on a specific subset of data (e.g., identifying "vehicles" rather than all 1000 ImageNet classes).
This paper introduces Data-Driven Compression (DDC), an automated framework that leverages reinforcement learning (RL) to shrink large CNNs for specialized mobile deployment. DDC achieves up to 20x compression with minimal accuracy loss by optimizing for hardware-specific latency and utilizing "policy transfer" to accelerate the search process.
Methods: The DDC Framework
The DDC system treats model compression as an architecture search problem. It employs a Recurrent Policy Network (a Bi-directional LSTM) to analyze the layers of a "teacher" model. For each layer, the RL agent decides whether to keep or remove it, effectively searching for a streamlined "student" architecture.
Thresholded Reward Function
A core innovation of DDC is its multi-objective reward function. Instead of a simple accuracy metric, the authors use "shifted sigmoid" functions for accuracy, memory, and latency. This allows users to define specific performance thresholds.
As shown in the figure above, if a candidate model fails to meet the required thresholds (e.g., a minimum accuracy or maximum latency), the reward drops sharply. This mechanism ensures the RL agent stays within the desired "operating point" for mobile deployment.
Knowledge Distillation and Policy Transfer
To train the proposed student architectures, DDC uses Knowledge Distillation (KD), where the student mimics the teacher's behavior using both "soft targets" (KL divergence) and "hard targets" (true labels). To address scalability, the authors introduce Policy Transfer. A compression policy learned on a broad dataset (e.g., CIFAR-100) can be fine-tuned on a smaller subset, providing a "warm start" that significantly speeds up the search for specialized models.
Comparison with Prior Work
DDC distinguishes itself from existing methods like NAS, AMC, and MnasNet by providing a more comprehensive optimization suite.
As summarized in the table, DDC is the only framework among those compared that simultaneously addresses accuracy, memory, and latency optimization while utilizing threshold-based search and distillation from a teacher model.
Key Results
The researchers evaluated DDC on CIFAR-10/100 and various custom subsets (e.g., "Animals" or "Vehicles") to test specialized deployment scenarios.
- High Compression Ratios: For VGG11 on CIFAR-10, DDC achieved a 20.8x compression ratio, reducing inference time from 3.43s to 1.11s with only a 6% accuracy drop.
- Efficiency via Policy Transfer: Using policy transfer allowed the system to find optimal models 5x faster than starting the RL search from scratch.
- Hardware-Aware Optimization: By optimizing for actual inference time on hardware rather than theoretical proxies like FLOPs, DDC produces models that are truly "mobile-ready."
Conclusion and Future Work
DDC demonstrates that RL-based automated compression can effectively navigate the complex trade-offs of mobile deployment. While currently focused on layer removal, future iterations could expand the search space to include new layer types (e.g., depth-wise convolutions). Additionally, while policy transfer mitigates search costs, further research is needed to scale these RL methods to massive datasets like ImageNet efficiently across diverse hardware targets.
Summary updated