Label-Wise Document Pre-training for Multi-label Text Classification

Han Liu, Caixia Yuan, Xiaojie Wang

TL;DR

This paper introduces Label-Wise Pre-Training (LW-PT), a novel method for multi-label text classification (MLTC) that learns document representations tailored to specific labels. By training encoders to distinguish between documents sharing a label versus those that do not, the model captures label-specific nuances and correlations, significantly outperforming state-of-the-art models on both short and long document datasets.

The Challenge of Multi-Label Classification

Multi-label text classification (MLTC) involves assigning multiple labels to a single document—for example, tagging a music review with both "Rock" and "Metal." This task presents two primary challenges:

  1. Label Difference: Different labels often depend on distinct parts of a document. A "Metal" tag might be triggered by specific instrument descriptions, while a "Lyrics" tag might focus on text structure.
  2. Label Correlation: Labels are rarely independent. If a song is categorized as "Metal," it is highly likely to also be categorized as "Rock."

Traditional approaches often treat labels as independent binary problems, ignoring these correlations. While sequence-to-sequence models attempt to capture relationships, they often struggle with fixed decoders that cannot dynamically model the interplay between arbitrary labels.

Proposed Method: Label-Wise Pre-Training

The authors propose a two-stage approach: Label-Wise Pre-Training (LW-PT) followed by Fine-Tuning (Task-MLTC).

Overview of the Label-Wise Pre-Training (a) and Task-MLTC (b) architectures.

1. Label-Wise Pre-Training (LW-PT)

Instead of standard language modeling (like BERT), the authors design a task specifically for MLTC. Given a target document $T$ and one of its labels $k$, the model must distinguish a "positive" document (another document sharing label $k$) from several "negative" documents (which do not have label $k$).

The authors introduce two architectures:

  • LW-LSTM: Uses a BiLSTM with a label-specific self-attention mechanism for short documents.
  • HLW-LSTM: A hierarchical version applying attention at both word and sentence levels for longer documents.

2. Multi-Label Classification (Fine-Tuning)

After pre-training, the encoders generate a representation for every possible label in the dataset. These label-wise representations are concatenated and passed through a Multi-Layer Perceptron (MLP) for final classification. The encoders are fine-tuned during this stage to further sharpen accuracy.

Key Results

The proposed LW-PT method achieved significant gains over previous state-of-the-art models like SGM and HAN+LG across two distinct datasets: RMSC-V2 (long Chinese music reviews) and AAPD (short English academic abstracts).

Performance comparison of LW-LSTM and HLW-LSTM against state-of-the-art models on RMSC-V2 and AAPD datasets.
  • On RMSC-V2 (Long Docs): The HLW-LSTM with pre-training and fine-tuning (+FT) achieved a Macro F1 of 69.41, a substantial jump from the 55.20 achieved by the previous best model (HAN+LG).
  • On AAPD (Short Docs): The LW-LSTM version reached a Macro F1 of 59.18, outperforming the previous state-of-the-art (set-RNN at 54.8).
  • Ablation Studies: Results showed that while the label-wise architecture is strong, the pre-training step is the primary driver for high Macro F1 scores, validating the effectiveness of the contrastive label-matching task.

Insights and Future Work

  • Label-Specific Attention: The model recognizes that word importance changes depending on the target label. By using different attention weights for different labels, the model views the document through multiple lenses simultaneously.
  • Implicit Correlation Learning: By grouping documents by labels during pre-training, the model naturally learns semantic similarities between correlated labels like "Rock" and "Alternative."
  • Boosting Rare Labels: The method significantly improves performance on "tail" labels (those with few examples) by leveraging information from frequent, related labels.

Limitations: The model's computational complexity scales with the number of labels, which may be challenging for Extreme Multi-Label Classification. Future work may explore unsupervised or transfer learning versions of label-wise pre-training to reduce supervision requirements.

Summary updated

BibTeX
@inproceedings{liu2020label,
  author = {Han Liu and Caixia Yuan and Xiaojie Wang},
  title = {{Label-Wise Document Pre-training for Multi-label Text Classification}},
  booktitle = {NLPCC},
  year = {2020},
  doi = {10.1007/978-3-030-60450-9\_51},
}
Figure