Multi-Task Label Embedding for Text Classification

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

Introduction

In traditional Natural Language Processing (NLP) workflows, classification labels are often treated as arbitrary indices or "one-hot" vectors. This approach ignores the inherent semantic meaning of labels like "Positive," "Negative," or "Electronics." Researchers from Shanghai Jiao Tong University proposed a novel framework called Multi-Task Label Embedding (MTLE) to address this. By treating labels as semantic vectors rather than meaningless placeholders, MTLE transforms text classification into a vector matching problem, enhancing multi-task learning and enabling zero-shot capabilities.

Problem Statement

Conventional Multi-Task Learning (MTL) architectures typically share bottom layers for general feature extraction but branch into task-specific output "heads." This design has several drawbacks:

  1. Label Blindness: The model cannot recognize that "positive" in a movie review task is semantically identical to "positive" in a product review task.
  2. Rigid Architecture: Adding a new task requires modifying the network structure and often retraining the entire system.
  3. No Zero-Shot Ability: Fixed output layers prevent the model from handling unannotated tasks.

Methodology

The MTLE architecture moves away from fixed output layers toward a flexible matching mechanism. It consists of three primary components:

  • Input Encoder: A Bi-directional Long Short-Term Memory (BiLSTM) network that encodes input text into a fixed-length vector $X$.
  • Label Encoder: Instead of indices, this encoder takes the actual words of a label (e.g., "very positive") and generates a semantic label vector $Y$ using word embeddings.
  • Matcher: A fully-connected layer that produces a matching score between the text vector $X$ and the label vector $Y$.
The MTLE architecture: text and label descriptions are encoded into a shared semantic space for matching.

This architecture allows the model to classify text by finding the label description that best matches the input representation. Furthermore, it supports three distinct update strategies for new tasks:

  • Cold Update: Retraining on both old and new tasks.
  • Hot Update: Fine-tuning existing parameters using only new task data.
  • Zero Update: Predicting labels for a new task based purely on semantic meaning, without any task-specific training.
The MTLE framework supports various update scenarios, including Zero Update for unannotated tasks.

Experimental Results

The authors evaluated MTLE across diverse datasets, including movie reviews (SST-1, SST-2, IMDB) and multi-domain product reviews (MDSD/BDEK). Key findings include:

  • Performance Gains: MTLE outperformed single-task BiLSTMs by an average of +3.4% across all benchmarks.
  • Semantic Transfer: In the "Zero Update" scenario, the model achieved 90.9% accuracy on IMDB after being trained only on SST datasets. This confirms that the model successfully learned the semantic concept of sentiment rather than just task-specific patterns.
  • Task Synergy: The model effectively leveraged correlations between similar domains (e.g., Books and DVDs) to improve overall accuracy.

Conclusion

By embedding labels as semantic data, MTLE provides a more scalable and flexible framework for multi-task text classification. It eliminates the need for task-specific output heads and enables powerful zero-shot transfer, representing a significant step toward more semantically aware machine learning models.

Summary updated

BibTeX
@inproceedings{zhang2018multi,
  author = {Honglun Zhang and Liqiang Xiao and Wenqing Chen and Yongkun Wang and Yaohui Jin},
  title = {{Multi-Task Label Embedding for Text Classification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
}
Figure