OTSeq2Set: An Optimal Transport Enhanced Sequence-to-Set Model for Extreme Multi-label Text Classification

Jie Cao, Yin Zhang
10/26/2022
cs.CLcs.AIcs.LG

Official code: caojie54/OTSeq2Set (11 stars, Python, last commit 2022-12-31).

Abstract

Extreme multi-label text classification (XMTC) is the task of finding the most relevant subset labels from an extremely large-scale label collection. Recently, some deep learning models have achieved state-of-the-art results in XMTC tasks.

Show full abstract

These models commonly predict scores for all labels by a fully connected layer as the last layer of the model. However, such models can't predict a relatively complete and variable-length label subset for each document, because they select positive labels relevant to the document by a fixed threshold or take top k labels in descending order of scores. A less popular type of deep learning models called sequence-to-sequence (Seq2Seq) focus on predicting variable-length positive labels in sequence style. However, the labels in XMTC tasks are essentially an unordered set rather than an ordered sequence, the default order of labels restrains Seq2Seq models in training. To address this limitation in Seq2Seq, we propose an autoregressive sequence-to-set model for XMTC tasks named OTSeq2Set. Our model generates predictions in student-forcing scheme and is trained by a loss function based on bipartite matching which enables permutation-invariance. Meanwhile, we use the optimal transport distance as a measurement to force the model to focus on the closest labels in semantic label space. Experiments show that OTSeq2Set outperforms other competitive baselines on 4 benchmark datasets. Especially, on the Wikipedia dataset with 31k labels, it outperforms the state-of-the-art Seq2Seq method by 16.34% in micro-F1 score. The code is available at https://github.com/caojie54/OTSeq2Set.

View on arXivView PDF

Code Implementations(1)

caojie54/OTSeq2SetOfficial100%

OTSeq2Set, XMTC

110Python, Jupyter NotebookJul 4, 20223 years ago
nlpxmtc

Similar Papers

Cite this paper

@article{cao2022otseqset,
  title  = {OTSeq2Set: An Optimal Transport Enhanced Sequence-to-Set Model for Extreme Multi-label Text Classification},
  author = {Jie Cao and Yin Zhang},
  year   = {2022},
  eprint = {2210.14523},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.14523}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.14523.svg)](https://codeofpaper.com/paper/2210.14523)

Discussion