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

Meta-Sparsity: Learning Optimal Sparse Structures in Multi-task Networks through Meta-learning

Richa Upadhyay, Ronald Phlypo, Rajkumar Saini, Marcus LiwickiarXiv 2025 · DOI

Abstract

Deep learning models often suffer from over-parameterization, leading to computational inefficiency. While sparsification techniques aim to prune redundant weights, finding the optimal sparsity budget typically requires manual tuning, a process further complicated in Multi-Task Learning (MTL) environments. This paper introduces Meta-Sparsity, a framework that leverages meta-learning to automatically discover optimal sparse structures. By treating sparsity as a learnable attribute, the proposed method achieves significant efficiency gains and improves generalization to unseen tasks.

Introduction: The Sparsity Challenge in Multi-Task Learning

Modern neural networks are characterized by extreme density, containing millions of parameters that are often redundant. Pruning these weights through sparsification can reduce model size and latency, but it introduces a sensitive hyperparameter: the sparsity budget ($\lambda$). In Multi-Task Learning (MTL), where a single backbone network is shared across diverse tasks (e.g., segmentation and depth estimation), a fixed global sparsity level often fails to meet the varying requirements of different task combinations. The central question addressed is whether the optimal sparsity pattern can be learned automatically during training.

Methods: The Meta-Sparsity Framework

The authors propose Meta-Sparsity, a bi-level optimization strategy built upon Model-Agnostic Meta-Learning (MAML). Unlike traditional pruning methods that follow a linear or iterative path, Meta-Sparsity integrates sparsification into the meta-learning loop.

Comparison of different sparsification paradigms, highlighting the unique bi-level optimization of Meta-Sparsity.

The framework operates through two nested loops:

  1. Inner Loop (Task Adaptation): The model is trained on task-specific episodes to quickly adapt its weights.
  2. Outer Loop (Meta-Update): The algorithm updates the meta-initialization of weights and simultaneously optimizes the sparsity hyperparameter ($\lambda$).

A key technical choice is the use of channel-wise structured sparsity rather than unstructured weight pruning. By "turning off" entire convolutional filters, the resulting model maintains standard matrix operations, ensuring compatibility with GPU hardware for real-world speedups.

Architecture of the sparse shared backbone ($\theta_b$) with task-specific layers ($\theta_i$), where green channels represent active, non-zero components.

Datasets and Evaluation

The framework was evaluated on two major multi-task benchmarks:

  • NYU-v2: An indoor scene dataset for pixel-level tasks such as semantic segmentation, depth estimation, surface normal estimation, and edge detection.
  • CelebAMask-HQ: A facial attribute dataset used for semantic segmentation and various binary classification tasks (e.g., gender, smile detection).

Key Insights and Results

The experimental results highlight several advantages of the Meta-Sparsity approach:

  • Efficiency and Performance: Meta-Sparsity automatically identified an optimal parameter sparsity of approximately 44% for the NYU-v2 dataset. This reduction led to a 1.6x speedup in tasks like depth estimation without compromising performance.
  • Stability: Unlike models with fixed hyperparameters that exhibit volatile sparsity levels during training, meta-learned patterns settle into a robust, consistent structure.
  • Generalization to Unseen Tasks: One of the most significant findings is that a meta-sparse backbone provides a superior foundation for new tasks. Models initialized with Meta-Sparsity adapted faster and more accurately to tasks not encountered during the meta-training phase compared to dense or fixed-sparse baselines.
  • Task Synergy: The study observed that tasks with overlapping feature requirements benefit most from shared sparse structures, suggesting that the model effectively learns task relatedness.

Conclusion and Future Directions

Meta-Sparsity demonstrates that sparsity can be treated as a learnable feature rather than a manual constraint. While the framework shows superior generalization and efficiency, the authors note that extreme task dissimilarity can still lead to "task interference" within the shared backbone. Future research will focus on mitigating this interference, extending the framework to Transformer architectures, and further optimizing hardware-specific implementations to maximize "wall-clock" time improvements on edge devices.

Summary updated

BibTeX
@misc{upadhyay2025meta,
  author = {Richa Upadhyay and Ronald Phlypo and Rajkumar Saini and Marcus Liwicki},
  title = {{Meta-Sparsity: Learning Optimal Sparse Structures in Multi-task Networks through Meta-learning}},
  year = {2025},
  eprint = {2501.12115},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.12115},
}
Figure