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

SGM: Sequence Generation Model for Multi-label Classification

Pengcheng Yang, Xu Sun, Wei Li, Shuming Ma, Wei Wu, Houfeng Wang

Abstract: Pengcheng Yang, Xu Sun, Wei Li, Shuming Ma, Wei Wu, Houfeng Wang. Proceedings of the 27th International Conference on Computational Linguistics.

2018.

Introduction

Multi-label classification (MLC) is a fundamental task in Natural Language Processing (NLP), involving the assignment of multiple relevant tags to a single text instance. Applications range from news categorization to automated tag recommendation. Traditional approaches to MLC often struggle with two primary challenges:

  1. Label Correlation: Labels are rarely independent. For instance, a document tagged with "Tennis" is statistically likely to also carry the "Sports" label. Early methods like Binary Relevance treat labels as independent, missing these crucial dependencies.
  2. Textual Contribution: Different segments of a text provide evidence for different labels. A single, static document representation often fails to capture the specific nuances required to distinguish between multiple overlapping categories.

To address these issues, the authors propose the Sequence Generation Model (SGM), which reframes MLC as a sequence generation problem, leveraging the strengths of Sequence-to-Sequence (Seq2Seq) architectures to model label dependencies dynamically.

Methods

The SGM architecture consists of three core components designed to capture both textual context and label correlations:

  • Encoder: A bidirectional LSTM (Bi-LSTM) processes the input text to create a rich, context-aware representation of each word.
  • Attention-based Decoder: An LSTM decoder generates labels sequentially. At each time step, an attention mechanism identifies the specific words in the source text that are most informative for the current label being predicted.
  • Global Embedding (GE): This is the model's primary innovation. Standard Seq2Seq models suffer from exposure bias, where a single error can propagate through the sequence. The GE mechanism uses a "transform gate" to combine the embedding of the most likely label with a weighted average of all possible labels based on the predicted distribution. This "soft" approach enriches the information passed between steps and makes the model more robust to prediction errors.
The SGM architecture featuring a Bi-LSTM encoder, attention mechanism, and a decoder with Global Embedding (GE).

To facilitate sequential generation, labels are sorted by frequency in the training set (high-frequency labels first). Additionally, a masked softmax is employed to prevent the model from predicting duplicate labels for the same instance.

Datasets

The model was evaluated on two large-scale benchmarks:

  • RCV1-V2: A standard dataset containing over 800,000 Reuters newswire stories categorized into 103 topics.
  • AAPD (Arxiv Academic Paper Dataset): A new dataset introduced by the authors, consisting of 55,840 computer science paper abstracts with 54 possible subject labels. This provides a modern, challenging benchmark for the MLC community.

Key Results

SGM+GE significantly outperformed traditional baselines and modern deep learning models like CNN-RNN across both datasets.

Comparison of SGM+GE against baselines on RCV1-V2 (left) and AAPD (right) datasets.

On the RCV1-V2 dataset, SGM+GE achieved a Micro-F1 score of 0.878, surpassing Binary Relevance (0.858) and CNN-RNN (0.856). It also achieved a 12.79% reduction in Hamming Loss compared to the strongest baseline. On the AAPD dataset, SGM+GE reached a Micro-F1 of 0.710, a substantial improvement over the CNN baseline (0.664). Ablation studies confirmed that both the label sorting strategy and the masked softmax were critical to these performance gains.

Conclusion

By treating multi-label classification as a sequence generation task, SGM naturally captures complex label correlations and dynamically attends to relevant textual features. The introduction of the Global Embedding mechanism further stabilizes the generation process. While the model excels at capturing dependencies, future work remains to address the challenges of extremely large label sets and to determine the optimal generation order beyond simple frequency-based sorting.

Summary updated

BibTeX
@inproceedings{yang2018sgm,
  author = {Pengcheng Yang and Xu Sun and Wei Li and Shuming Ma and Wei Wu and Houfeng Wang},
  title = {{SGM: Sequence Generation Model for Multi-label Classification}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=Hq--CGe2M9},
}
Figure