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

Learning Sparse Sharing Architectures for Multiple Tasks

Tianxiang Sun, Yunfan Shao, Xiaonan Li, Pengfei Liu, Hang Yan, Xipeng Qiu, Xuanjing Huang

Introduction

Multi-task learning (MTL) aims to improve model performance by training on related tasks simultaneously, facilitating knowledge sharing. However, traditional architectures face significant challenges. Hard Sharing forces all tasks into the same hidden layers, often leading to "negative transfer" where unrelated tasks interfere with each other. Soft Sharing provides separate parameters for each task with cross-talk, but scales poorly in terms of parameter efficiency. Hierarchical Sharing manually places tasks at different layers, requiring extensive expert knowledge.

Comparison of different multi-task sharing mechanisms: (a) Hard sharing, (b) Soft sharing, (c) Hierarchical sharing, and (d) the proposed Sparse sharing.

To address these issues, this paper introduces Sparse Sharing, a framework that automatically discovers task-specific subnetworks within a single over-parameterized "Base Network." This approach is designed to be parameter-efficient, automatically structured, and robust against negative transfer.

Methodology: Subnetwork Discovery

The core of Sparse Sharing is treating MTL as a subnetwork discovery problem, utilizing techniques inspired by the "Lottery Ticket Hypothesis."

  1. Base Network Initialization: The process begins with a large, over-parameterized model, such as a CNN-BiLSTM.
  2. Multi-Task Warmup (MTW): The network undergoes a brief joint training phase on all tasks to stabilize weights before pruning.
  3. Iterative Magnitude Pruning (IMP): For each task, a sparse subnetwork is identified independently. This involves training on a specific task, pruning weights with the lowest magnitudes, and resetting remaining weights to their warmup state. This cycle repeats until a target sparsity is reached.
  4. Sparse Sharing Construction: The final architecture is the union of these task-specific masks. During joint training, each task updates only the weights within its designated subnetwork. Overlapping masks represent shared parameters, while non-overlapping regions remain private.
  5. Parallel Training: Tasks are trained in parallel using proportional sampling based on dataset size.

Experimental Setup

The framework was evaluated on sequence labeling tasks including Part-of-Speech (POS) tagging, Named Entity Recognition (NER), and Chunking across several benchmarks:

  • CoNLL-2003: Standard benchmark with triple annotations.
  • OntoNotes 5.0: Large-scale multi-domain dataset.
  • Heterogeneous Data: A combination of PTB, CoNLL-2000, and CoNLL-2003 to test cross-dataset robustness.
  • Synthetic Negative Transfer Test: Pairing NER with a synthetic "Position Prediction" task to measure resilience to interference.

Key Insights and Results

Automatic Relatedness Discovery

Sparse Sharing does not require manual task grouping. The pruning process naturally results in higher mask overlap for related tasks (e.g., NER and Chunking) and lower overlap for unrelated ones. The authors proposed an Overlap Ratio (OR) metric to quantify this similarity, providing a novel interpretability tool for how models perceive task relationships.

Mitigating Negative Transfer

In synthetic experiments, traditional Hard Sharing caused NER performance to drop by over 9 points due to interference from the unrelated task. In contrast, Sparse Sharing avoided this degradation, even improving NER performance by 0.4 points.

Performance and Efficiency

Sparse Sharing consistently outperformed single-task models and standard MTL baselines (Hard, Soft, and Hierarchical). Notably, it achieved state-of-the-art results on the Exp3 benchmark, surpassing specialized architectures like Meta-MTL. Furthermore, it proved highly parameter-efficient; in one experiment, it achieved top results with only 396k parameters, compared to 534k for Hard Sharing and 1602k for a single-task setup.

Conclusion and Future Work

While Sparse Sharing offers significant advantages in automation and efficiency, it introduces computational overhead during the iterative pruning phase. Future research may explore more efficient mask-learning methods, such as variational dropout or $l_0$ regularization, and investigate the application of this framework to different base architectures like Transformers.

Summary updated

BibTeX
@inproceedings{sun2020learning,
  author = {Tianxiang Sun and Yunfan Shao and Xiaonan Li and Pengfei Liu and Hang Yan and Xipeng Qiu and Xuanjing Huang},
  title = {{Learning Sparse Sharing Architectures for Multiple Tasks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6424},
}
Figure