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

Meta Multi-Task Learning for Sequence Modeling

Jun-Kun Chen, Xipeng Qiu, Pengfei Liu, Xuanjing Huang

Introduction

Sequence modeling in Natural Language Processing (NLP) typically relies on semantic composition functions, such as Long Short-Term Memory (LSTM) networks, to integrate word meanings into coherent representations. However, standard LSTMs suffer from two primary limitations. First, they utilize static weights, applying the same transformation regardless of the specific linguistic context (e.g., an adjective modifying a noun versus a verb interacting with an object). Second, traditional Multi-Task Learning (MTL) approaches often employ feature-level sharing, where tasks share a common hidden representation space but maintain independent processing logic. This fails to capture the underlying "meta-knowledge" of linguistic structure that is consistent across domains.

This paper introduces a novel "function-level" sharing scheme. By utilizing a shared Meta-LSTM to dynamically generate weights for task-specific Basic-LSTMs, the model adapts its composition logic based on context and shares that logic across multiple tasks.

Methodology: From Feature-Level to Function-Level Sharing

The core innovation of this work is the transition from sharing features to sharing the functional logic of the model itself.

Comparison between (a) feature-level and (b) function-level sharing schemes.

In traditional feature-level sharing (Figure 4a), tasks share a hidden layer $\hat{\mathbf{h}}_t$ but use fixed parameters $\theta$ for their specific output layers. In the proposed function-level sharing (Figure 4b), the shared component $\hat{\mathbf{h}}_t$ (the Meta-LSTM) dynamically determines the parameters $\theta$ for the task-specific function $\mathbf{h}_t$ (the Basic-LSTM) at every time step $t$. This allows the model to reconfigure its internal logic based on the input token and the current state.

Architecture

The Meta-MTL architecture consists of two nested recurrent networks:

  1. Shared Meta-LSTM: This network is common to all tasks. At each time step $t$, it processes the current input $x_t$ and its previous state to produce a "meta-vector" $z_t$. This vector encapsulates the meta-knowledge required to process the current token.
  2. Task-Specific Basic-LSTM: Each task maintains its own Basic-LSTM. Crucially, its weight matrices ($W$) and biases ($b$) are not learned constants; they are dynamically generated from the Meta-LSTM's output $z_t$.
The unrolled architecture of the Meta-MTL model across multiple tasks, showing how the shared Meta-LSTM generates weights for task-specific layers.

To ensure computational efficiency and prevent overfitting, the authors employ low-rank factorization (similar to Singular Value Decomposition) to generate these dynamic weights. This technique allows the model to achieve higher performance with significantly fewer parameters than a standard LSTM (e.g., 42k vs. 80k in specific configurations).

Experimental Results

The model was evaluated across two major NLP domains:

  • Text Classification: On 16 datasets (including Amazon product reviews and movie reviews), the Meta-MTL model outperformed single-task LSTMs by an average of 5.1% and surpassed state-of-the-art multi-task baselines by 2.2%.
  • Sequence Tagging: The model achieved superior F1 scores on classic benchmarks for Part-of-Speech (POS) tagging (WSJ), text chunking (CoNLL 2000), and Named Entity Recognition (CoNLL 2003).

Beyond quantitative metrics, visualizations of weight changes revealed that the Meta-LSTM adjusts the Basic-LSTM's logic most significantly when encountering highly emotional words (e.g., "friendly") or logical operators (e.g., "not"), confirming its ability to perform context-aware composition.

Conclusion

Meta Multi-Task Learning represents a shift toward more flexible and parameter-efficient sequence models. By sharing the "how" (composition logic) rather than just the "what" (features), the Meta-LSTM acts as a repository for general linguistic rules that can be transferred to new, unseen tasks. While currently implemented for RNNs, the principle of functional sharing offers a promising direction for future research in other neural architectures.

Summary updated

BibTeX
@inproceedings{chen2018meta,
  author = {Jun-Kun Chen and Xipeng Qiu and Pengfei Liu and Xuanjing Huang},
  title = {{Meta Multi-Task Learning for Sequence Modeling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12007},
}
Figure