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

Text Classification Using Label Names Only: A Language Model Self-Training Approach

Yu Meng, Jiaxin Huang, Chenyan Xiong, Heng Ji, Chao Zhang, Jiawei Han

Introduction

Traditional text classification is a "data hungry" task, typically requiring thousands of human-labeled examples to achieve high performance. While semi-supervised learning has reduced this burden, it still necessitates a small "seed" set of labeled data. LOTClass (Label-Name-Only Text Classification) addresses this gap by training high-performing classifiers using only the names of the categories (e.g., "Sports," "Business") and a pool of unlabeled data. By leveraging the latent knowledge within pre-trained language models like BERT, LOTClass achieves competitive accuracy without a single human-labeled training document.

Methods

The LOTClass framework operates in three distinct phases to bridge the gap between general linguistic knowledge and corpus-specific classification.

The LOTClass framework architecture illustrating the MLM and MCP phases.
  1. Category Vocabulary Construction: The model utilizes BERT’s Masked Language Model (MLM) head to identify words semantically interchangeable with the label name. For a label like "Sports," the model examines occurrences in the unlabeled corpus and identifies related terms BERT predicts in its place (e.g., "football," "soccer"). This creates a dataset-specific "category vocabulary."
  2. Masked Category Prediction (MCP): To transition from word-level to context-level understanding, the model identifies "category-indicative" words in the unlabeled text. These words are masked, and the model is trained to predict the implied category based solely on the surrounding context. This forces the model to learn that a sentence discussing "stadiums" implies the "Sports" category, even if the word "Sports" is absent.
  3. Self-Training: Finally, the model generalizes to the document level via iterative self-training. It generates "soft labels" for the entire unlabeled corpus and uses high-confidence predictions to refine its parameters, improving its ability to handle documents without explicit keywords.

Key Insights and Ideas

The core innovation of LOTClass is treating pre-trained Language Models (LMs) as both knowledge bases and flexible feature extractors. By masking keywords during the MCP phase, the model is prevented from simple rote memorization and is instead forced to understand the underlying semantics of the context.

Contextual Disambiguation

A significant challenge in label-based classification is polysemy. LOTClass handles this effectively through the MLM head. For instance, if the word "sports" appears in a mobile phone advertisement (e.g., "this phone sports a 1-inch screen"), the model recognizes that "features" or "includes" are better contextual fits than "baseball," thereby excluding that instance from the "Sports" category training data.

Contextual disambiguation of the word 'sports' using BERT's MLM head.

Results and Evaluation

The authors evaluated LOTClass on four major benchmark datasets: AG News (Topic), DBPedia (Wikipedia Topic), IMDB (Movie Sentiment), and Amazon (Product Sentiment).

  • High Accuracy: LOTClass achieved 86.4% on AG News, 91.1% on DBPedia, 86.5% on IMDB, and 91.6% on Amazon.
  • Comparative Performance: It significantly outperformed previous weakly-supervised methods like Dataless and WeSTClass by 10-15 percentage points.
  • Label Robustness: The method proved robust to label name choice; replacing "Business" with "Commerce" resulted in stable performance due to high overlap in the learned category vocabulary.
  • Efficiency: On AG News, LOTClass (0 labels) performed equivalently to a standard supervised BERT model trained on 48 human-labeled documents per class.

Limitations and Future Work

While powerful, LOTClass faces challenges with overly generic labels (e.g., "Person" or "Time"), where providing 2-3 additional seed words may be necessary. Furthermore, while the model excels at topic and basic sentiment, it may struggle with highly implicit text, such as heavy sarcasm or complex logical reasoning. Future research may explore extending LOTClass to Named Entity Recognition (NER) or integrating it with active learning.

Summary updated

BibTeX
@inproceedings{meng2020text,
  author = {Yu Meng and Yunyi Zhang and Jiaxin Huang and Chenyan Xiong and Heng Ji and Chao Zhang and Jiawei Han},
  title = {{Text Classification Using Label Names Only: A Language Model Self-Training Approach}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.724},
}
Figure