NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Structured Pruning for Multi-Task Deep Neural Networks

Siddhant Garg, Lijun Zhang, Hui Guan

Multi-task learning (MTL) is the "Swiss Army Knife" of deep learning. By training one model to handle multiple tasks—like a self-driving car identifying lanes, pedestrians, and traffic lights simultaneously—we save on memory and computation. But even these efficient models are often "over-parameterized." To make them run on edge devices like smartphones or wearables, we need to prune them.

A new paper from researchers at UMass Amherst, "Structured Pruning for Multi-Task Deep Neural Networks," dives deep into how we should trim these multi-task giants and uncovers a surprising truth about the "best" way to do it.

TL;DR

The researchers introduce CosPrune, a pruning method that removes filters causing the most conflict between different tasks. While this task-aware approach outperforms standard methods during iterative fine-tuning, the study reveals that if you re-train the pruned architecture from scratch with optimized hyperparameters, the specific pruning criterion matters much less than the final parameter count.

What Problem Does This Paper Address?

Pruning is the art of removing unnecessary parameters from a neural network. Structured pruning is particularly useful because it removes entire filters, leading to immediate speedups on standard hardware without needing specialized "sparse" libraries.

While pruning is well-understood for single-task models, multi-task models present a unique challenge: Task Conflict. A filter might be useless for Task A but vital for Task B. Most existing research either ignores this or tries to merge separate single-task models. This paper asks: Can we design a pruning criterion specifically for MTL, and does the choice of criterion actually dictate the final performance of the pruned model?

Methods

The authors compare two main approaches:

  1. Taylor Pruning (The Baseline): A popular single-task method that uses a first-order Taylor expansion to estimate how much the loss function would increase if a specific filter were removed.
  2. CosPrune (The Novel Approach): This method looks at the "gradient conflict" between tasks. If the gradients for Task A and Task B are pointing in opposite directions for a specific filter (low cosine similarity), that filter is causing friction. CosPrune identifies and removes these high-conflict filters.

The study looks at two workflows:

  • Iterative Pruning: Prune a little, fine-tune, repeat.
  • Re-training from Scratch: Take the final "skeleton" (architecture) produced by pruning, reset the weights to random values, and train it fully.

Datasets

The experiments were conducted on the NYUv2 dataset, a standard benchmark for indoor scene understanding. It involves three distinct tasks:

  • Semantic Segmentation (What is this object?)
  • Depth Estimation (How far away is it?)
  • Surface Normal Prediction (Which way is the surface facing?)

The models used a VGG-16 backbone with task-specific "heads" (ASPP).

Key Insights and Ideas

  • Conflict as a Pruning Signal: CosPrune effectively identifies filters that "confuse" the model by trying to satisfy disagreeing tasks. Removing these leads to more stable iterative pruning.
  • The "Iterative" Bottleneck: The authors found that at extreme pruning levels (e.g., 84% parameter reduction), iterative pruning often results in a massive performance collapse. This is likely because the model gets stuck in a "bad" local minimum inherited from previous iterations.
  • Architecture vs. Weights: The most significant finding is that the specific method used to find the pruned architecture is less important than the architecture itself. When models were re-trained from scratch with tuned learning rates, the performance gap between CosPrune and Taylor Pruning virtually disappeared.
  • Hyperparameter Sensitivity: Pruned models are not just smaller versions of the original; they are different architectures. They require their own hyperparameter tuning (especially learning rates) to reach their full potential.

Key Results

  • Iterative Success: In the standard "prune-and-fine-tune" setting, CosPrune was the clear winner. At 83% parameter reduction, it achieved 16.39% better Pixel Accuracy in segmentation than Taylor Pruning.
  • The Great Equalizer: After re-training from scratch, both methods achieved nearly identical results at similar parameter counts. For example, at ~14.4M parameters, both methods converged to roughly 44% Pixel Accuracy.
  • Recovery: Re-training from scratch successfully "recovered" models that had collapsed during iterative pruning, suggesting that the "skeleton" discovered by pruning is often quite robust, even if the fine-tuned weights are not.

Limitations and Future Work

  • Scope of Architectures: The study focused on VGG-16. Modern architectures like Transformers or ResNets might exhibit different behaviors under task-aware pruning.
  • Single Dataset: While NYUv2 is a standard MTL benchmark, testing on more diverse datasets (like autonomous driving datasets) would strengthen the "architecture-first" conclusion.
  • Automated Tuning: Since the paper highlights that hyperparameter tuning is crucial for pruned models, future work could explore automated ways to find the optimal learning rate for a specific pruned "skeleton."

In short: If you're pruning a multi-task model, don't sweat the "perfect" pruning algorithm too much—just make sure you give your final architecture a fair chance by training it properly from scratch!

Summary updated

BibTeX
@inproceedings{garg2024structured,
  author = {Siddhant Garg and Lijun Zhang and Hui Guan},
  title = {{Structured Pruning for Multi-Task Deep Neural Networks}},
  booktitle = {MIPR},
  year = {2024},
  doi = {10.1109/mipr62202.2024.00049},
}
Figure