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

Learning What to Share: Leaky Multi-Task Network for Text Classification

Liqiang Xiao, Honglun Zhang, Wenqing Chen, Yongkun Wang, Yaohui Jin

Introduction

Multi-task learning (MTL) aims to improve the performance of individual tasks by training them in parallel, leveraging shared representations. In text classification, this is particularly valuable as it effectively increases the available training data and acts as a regularizer. However, standard MTL architectures often suffer from negative transfer. This occurs when features relevant to one task are irrelevant or even harmful to another, leading to "interference" that degrades overall performance.

The LK-MTL Architecture

To address the problem of blind feature sharing, the authors introduce the Leaky Multi-Task Network (LK-MTL). Instead of a single shared backbone, LK-MTL employs a split architecture where each task possesses its own private Convolutional Neural Network (CNN) subnet. Information is shared between these subnets through specialized modules called Leaky Units (LU).

The overall architecture of the LK-MTL model, showing task-specific subnets connected by Leaky Units (LU).

As shown in the architecture diagram, the LUs are placed between convolutional and pooling layers, allowing for dynamic feature exchange throughout the network's depth. This design ensures that each task maintains a private space while still benefiting from cross-task knowledge.

The Leaky Unit: Selective Feature Filtering

The Leaky Unit is the core innovation of this work. Inspired by the gating mechanisms in Gated Recurrent Units (GRUs), the LU acts as a "smart valve" to control the flow of information between tasks.

The internal structure of the Leaky Unit, featuring Leaky and Update gates to control feature flow.

The unit employs two primary learned gates:

  1. Leaky Gate ($r_{mn}$): This gate determines which specific features from a neighboring task (Task $n$) are beneficial for the current task (Task $m$) and should be "leaked" through.
  2. Update Gate ($z_{mn}$): This gate controls the balance between the current task's original features and the newly filtered features from the other task.

Because these gates are fully differentiable, the network learns the optimal sharing strategy automatically during training via backpropagation, without requiring manual tuning of what to share.

Key Results and Insights

The LK-MTL model was evaluated on five standard text classification datasets: SST-1, SST-2, IMDB, SUBJ, and QC.

  • State-of-the-Art Performance: LK-MTL achieved state-of-the-art results on four out of five datasets (SST-1, SST-2, SUBJ, and QC), significantly outperforming single-task baselines and traditional MTL models that use proportional sharing.
  • Visualizing Feature Selection: A key insight came from visualizing the gates. For instance, in a sentiment analysis task, the model learned to block features associated with subjectivity (like the word "tough") when they were misleading for sentiment prediction, while allowing helpful features (like "fantastic") to pass through.
  • Robustness: The model proved that selective sharing is superior to blind addition. By filtering out noise, the network maintains a cleaner feature space for each task, mitigating the risk of negative transfer.

Conclusion

The Leaky Multi-Task Network provides a robust solution to the interference problem in MTL. By adapting RNN-style gating to CNN architectures, the model learns "what to share," effectively setting new benchmarks in text classification. Future work may involve applying the Leaky Unit to other architectures like MLPs or exploring more complex gating strategies to further purify feature flows.

Summary updated

BibTeX
@inproceedings{xiao2018learning,
  author = {Liqiang Xiao and Honglun Zhang and Wenqing Chen and Yongkun Wang and Yaohui Jin},
  title = {{Learning What to Share: Leaky Multi-Task Network for Text Classification}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2018},
}
Figure