Extreme Zero-Shot Learning for Extreme Text Classification

Yuanhao Xiong, Wei-Cheng Chang, Cho-Jui Hsieh, Hsiang-Fu Yu, Inderjit Dhillon
12/16/2021
cs.LGcs.CL
contrastive-ssl

Official code: amzn/pecos (559 stars, Python, Apache-2.0, last commit 2025-02-01).

Abstract

The eXtreme Multi-label text Classification (XMC) problem concerns finding most relevant labels for an input text instance from a large label set. However, the XMC setup faces two challenges: (1) it is not generalizable to predict unseen labels in dynamic environments, and (2) it requires a large amount of supervised (instance, label) pairs, which can be difficult to obtain for emerging domains.

Show full abstract

Recently, the generalized zero-shot XMC (GZ-XMC) setup has been studied and ZestXML is proposed accordingly to handle the unseen labels, which still requires a large number of annotated (instance, label) pairs. In this paper, we consider a more practical scenario called Extreme Zero-Shot XMC (EZ-XMC), in which no supervision is needed and merely raw text of instances and labels are accessible. Few-Shot XMC (FS-XMC), an extension to EZ-XMC with limited supervision is also investigated. To learn the semantic embeddings of instances and labels with raw text, we propose to pre-train Transformer-based encoders with self-supervised contrastive losses. Specifically, we develop a pre-training method MACLR, which thoroughly leverages the raw text with techniques including Multi-scale Adaptive Clustering, Label Regularization, and self-training with pseudo positive pairs. Experimental results on four public EZ-XMC datasets demonstrate that MACLR achieves superior performance compared to all other leading baseline methods, in particular with approximately 5-10% improvement in precision and recall on average. Moreover, we also show that our pre-trained encoder can be further improved on FS-XMC when there are a limited number of ground-truth positive pairs in training. By fine-tuning the encoder on such a few-shot subset, MACLR still outperforms other extreme classifiers significantly.

View on arXivView PDF

Code Implementations(1)

amzn/pecosOfficial100%
Apache-2.0

PECOS - Prediction for Enormous and Correlated Spaces

559113Python, C++Aug 12, 20201 years agoApache-2.0
approximate-nearest-neighbor-searchextreme-multi-label-classificationextreme-multi-label-rankingmachine-learning-algorithmstransformers

Similar Papers

Cite this paper

@article{xiong2021extreme,
  title  = {Extreme Zero-Shot Learning for Extreme Text Classification},
  author = {Yuanhao Xiong and Wei-Cheng Chang and Cho-Jui Hsieh and Hsiang-Fu Yu and Inderjit Dhillon},
  year   = {2021},
  eprint = {2112.08652},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.08652}
}

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/2112.08652.svg)](https://codeofpaper.com/paper/2112.08652)

Discussion