Abstract
Deploying deep learning models to edge devices—such as smartphones, drones, or IoT sensors—requires balancing performance against strict resource constraints. Multi-task learning (MTL) models offer efficient generalization by sharing backbones across multiple tasks, yet their size often precludes deployment on resource-constrained hardware. Furthermore, specific applications may only require a subset of a model's pre-trained capabilities, leading to task redundancy. We present CUT (Compact mUlti-Task), a pruning framework that extracts task-specific, compact models from large pre-trained networks. By employing gradient-based sensitivity analysis and parameter fusion strategies, CUT achieves up to 90% sparsity with minimal performance degradation and significantly reduced fine-tuning requirements compared to traditional methods.
Introduction
Multi-task learning is powerful because it allows a single model to handle related tasks (like semantic segmentation and depth estimation) simultaneously, improving generalization. However, these models are typically massive. When moving these models to the "edge," two primary obstacles arise: resource constraints (limited memory and power) and task redundancy (keeping parameters for unneeded tasks).
Existing pruning methods often struggle to balance the importance of shared versus task-specific parameters and fail to effectively utilize the knowledge already baked into high-quality pre-trained models, leading to expensive retraining cycles. CUT addresses these challenges by carving out compact models tailored to specific task requirements.
Methodology
The CUT framework operates through a four-stage pipeline designed to preserve the knowledge embedded in pre-trained weights while maximizing sparsity.
- Task Selection: The user identifies which tasks from the pre-trained model are required for the target application.
- Gradient-Based Sensitivity Evaluation: Instead of magnitude-based pruning, CUT assesses parameter importance by measuring gradient sensitivity. An isomorphic mask model is used with frozen original weights to identify parameters whose gradients change most significantly under a small data sample. High gradient change indicates high importance.
- Parameter Fusion: To reconcile differing task requirements for shared parameters, CUT employs fusion strategies:
- Logical OR: A parameter is preserved if any selected task requires it.
- Majority Voting: A parameter is preserved only if the majority of tasks vote for its inclusion, which is useful for preventing model bloat in high-task-count scenarios.
- Knowledge-Preserving Fine-Tuning: The model undergoes a brief fine-tuning phase to "heal" the damage from pruning. Because it starts with high-quality pre-trained weights, this phase is highly efficient.
Experiments and Results
The researchers validated CUT on three widely used computer vision benchmarks: NYU-v2, Cityscapes, and Tiny Taskonomy.
Key insights from the experimental results include:
- Extreme Sparsity: On the Cityscapes dataset, CUT maintained high accuracy even at 90% sparsity.
- Efficiency: CUT requires significantly fewer computational resources. Compared to the original training of the multi-task model, CUT’s fine-tuning phase requires only 5% of the iterations, yet performance drops by an average of only 6.07%.
- Superiority over Baselines: CUT consistently outperformed established pruning methods like the Lottery Ticket Hypothesis (LTH), SNIP, and DiSparse, especially in scenarios where only a subset of tasks was selected.
- Mitigating Task Interference: The authors observed that pruning helps mitigate "negative interactions" between tasks by shedding parameters that might be useful for a discarded task but detrimental to the retained ones.
Conclusion
CUT provides a robust solution for deploying multi-task models on the edge by effectively managing task redundancy and resource constraints. By prioritizing gradient sensitivity over weight magnitude and utilizing clever parameter fusion, the framework enables the creation of highly sparse models with minimal fine-tuning effort. Future work may involve developing automated ways to balance fusion strategies or exploring applications in non-vision domains such as Natural Language Processing.
Summary updated