Open-world Multi-label Text Classification with Extremely Weak Supervision

Xintong Li, Jinya Jiang, Ria Dharmani, Jayanth Srinivasa, Gaowen Liu, Jingbo Shang

Abstract

Multi-label text classification (MLTC) typically relies on a predefined label space and extensive labeled data. However, real-world scenarios like e-commerce and news streams often involve emerging categories and lack ground-truth labels. We present X-MLClass, a framework designed for open-world MLTC under extremely weak supervision. X-MLClass iteratively discovers labels and classifies documents by leveraging Large Language Models (LLMs) to identify dominant topics and niche, long-tail categories. Our evaluation across five diverse datasets demonstrates that X-MLClass significantly outperforms traditional topic modeling and keyword extraction baselines, achieving up to a 40% increase in label space coverage and superior zero-shot classification precision.

Introduction

Traditional multi-label text classification assumes a "closed-world" setting where a fixed list of categories and corresponding training data are available. In reality, dynamic fields like news aggregation or e-commerce see new categories emerge constantly, making it impossible to provide a comprehensive label list beforehand.

X-MLClass addresses the challenge of Open-world MLTC under Extremely Weak Supervision (XWS). In this setting, the user provides only a brief description of the classification objective (e.g., "categorize these news articles by topic") without any predefined labels or ground-truth data. X-MLClass bridges this gap by discovering the taxonomy and the classifier simultaneously.

The X-MLClass Framework

The core of X-MLClass is an iterative pipeline designed to build a high-quality label space from scratch:

  1. Chunking & Keyphrase Generation: Documents are split into 50-token chunks to ensure each likely contains only one topic. An LLM (Llama-2-13b-chat) extracts dominant keyphrases based on the user's objective.
  2. Clustering & Label Synthesis: Keyphrases are embedded and clustered via GMM. The LLM then "summarizes" each cluster into a single, clean label name. Redundant labels are pruned using Sentence-Transformers and GPT-4.
  3. Zero-shot Entailment Classifier: The system uses a pre-trained Natural Language Inference (NLI) model (e.g., DeBERTa-v3) to treat classification as an entailment task: Does this document entail the hypothesis "This example is about [Label]?"
  4. Iterative Long-tail Discovery: This novel step identifies documents where the classifier has low confidence (low max entailment scores). It assumes these documents contain "long-tail" (rare) labels not yet in the label space and revisits them to extract new keyphrases, expanding the label set iteratively.
The X-MLClass pipeline: from document chunking to iterative label discovery and zero-shot classification.

Experimental Evaluation

The authors evaluated X-MLClass on five diverse benchmark datasets, ranging from computer science abstracts to product reviews:

  • AAPD: 54 classes.
  • Reuters-21578: 90 classes.
  • RCV1-V2: 103 classes.
  • DBPedia-298: 298 classes.
  • Amazon-531: 531 classes.

Key Insights and Results

The researchers observed the Dominant Class Hypothesis: over 90% of documents have one "dominant" class covering the majority of the content. Crucially, even rare, "long-tail" labels appear as the dominant class in at least one document, justifying the chunking strategy.

X-MLClass significantly outperformed baselines like LDA, BERTopic, and TopicGPT. On the AAPD dataset, it improved ground-truth label coverage by 40% over standard keyword extraction methods. Furthermore, in zero-shot tests, X-MLClass achieved the highest P@1 and P@3 scores across almost all datasets. For instance, on DBPedia-298, it reached a P@1 of 0.6890, significantly higher than the "Vanilla" zero-shot baseline.

Comparison of X-MLClass against various baselines across five datasets. X-MLClass consistently achieves the highest performance in label discovery and classification.

Efficiency and Limitations

Despite using LLMs, the process remains efficient. X-MLClass uses LLMs to build the "map" (the label space) and then hands the heavy lifting of classification to smaller, faster NLI models. Prompting for 18,000 chunks takes less than 4 hours on a single A100 GPU.

However, the method struggles with extremely rare labels (appearing in less than 0.0001% of the corpus) and currently produces a flat taxonomy. Future work could explore hierarchical label discovery to better organize complex category structures.

Conclusion

X-MLClass provides a robust solution for open-world classification tasks where labels are unknown. By combining the generative power of LLMs with the efficiency of NLI models, it bridges the gap between unsupervised discovery and high-precision multi-label classification.

Summary updated

BibTeX
@inproceedings{li2024open,
  author = {Xintong Li and Jinya Jiang and Ria Dharmani and Jayanth Srinivasa and Gaowen Liu and Jingbo Shang},
  title = {{Open-world Multi-label Text Classification with Extremely Weak Supervision}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.841},
}
Figure