Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text Classification

Yu Zhang, Zhihong Shen, Chieh-Han Wu, Boya Xie, Junheng Hao +3 more
2/11/2022
cs.CLcs.LG
contrastive-ssl

Official code: yuz9yuz/MICoL (32 stars, Python, Apache-2.0, last commit 2025-06-21).

Abstract

Large-scale multi-label text classification (LMTC) aims to associate a document with its relevant labels from a large candidate set. Most existing LMTC approaches rely on massive human-annotated training data, which are often costly to obtain and suffer from a long-tailed label distribution (i.e., many labels occur only a few times in the training set).

Show full abstract

In this paper, we study LMTC under the zero-shot setting, which does not require any annotated documents with labels and only relies on label surface names and descriptions. To train a classifier that calculates the similarity score between a document and a label, we propose a novel metadata-induced contrastive learning (MICoL) method. Different from previous text-based contrastive learning techniques, MICoL exploits document metadata (e.g., authors, venues, and references of research papers), which are widely available on the Web, to derive similar document-document pairs. Experimental results on two large-scale datasets show that: (1) MICoL significantly outperforms strong zero-shot text classification and contrastive learning baselines; (2) MICoL is on par with the state-of-the-art supervised metadata-aware LMTC method trained on 10K-200K labeled documents; and (3) MICoL tends to predict more infrequent labels than supervised methods, thus alleviates the deteriorated performance on long-tailed labels.

View on arXivView PDF

Code Implementations(1)

yuz9yuz/MICoLOfficial100%
Apache-2.0

Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text Classification (WWW'22)

324Python, ShellAug 8, 20211 years agoApache-2.0
metadatascientific-text-miningtext-classificationweakly-supervised-learningzero-shot-learning

Similar Papers

Cite this paper

@article{zhang2022metadatainduced,
  title  = {Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text Classification},
  author = {Yu Zhang and Zhihong Shen and Chieh-Han Wu and Boya Xie and Junheng Hao and Ye-Yi Wang and Kuansan Wang and Jiawei Han},
  year   = {2022},
  eprint = {2202.05932},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.05932}
}

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

Discussion