On Dataless Hierarchical Text Classification

Yangqiu Song, Dan Roth

Abstract

This paper presents a novel framework for hierarchical text classification that operates without labeled training data. By leveraging Explicit Semantic Analysis (ESA) to map documents and category labels into a shared Wikipedia-based semantic space, the system achieves classification through semantic similarity. We further introduce a bootstrapping mechanism to refine performance using unlabeled data. Evaluation on 20Newsgroups and RCV1 datasets demonstrates that this "dataless" approach is competitive with supervised models and particularly robust for rare categories in complex hierarchies.

Introduction

Traditional text classification is a supervised task requiring extensive labeled training data, which creates a significant bottleneck for hierarchical classification where documents belong to nested category trees. This research addresses the challenge by proposing that category labels themselves contain sufficient semantic information for classification. Humans do not require thousands of examples to understand a "Politics" category; they rely on the inherent meaning of the label. This paper develops a system capable of multi-class, hierarchical classification by simply "reading" category names and descriptions, requiring zero labeled training documents.

Methodology

The proposed framework consists of two primary stages:

  1. Pure Dataless Initialization: Documents and category labels are mapped into a high-dimensional semantic space using Explicit Semantic Analysis (ESA), which represents text as a vector of related Wikipedia concepts. Classification is performed by calculating the similarity between a document's semantic vector and the vectors of potential labels. The authors explore both top-down (greedy sub-category selection) and bottom-up (leaf node propagation) strategies.
  2. Bootstrapping: To adapt general semantic knowledge to specific document collections, the initial dataless results identify high-confidence "pseudo-labeled" documents. These are used to train a standard supervised classifier (e.g., Logistic Regression), which iteratively improves accuracy by incorporating more unlabeled data.

Experimental Evaluation

The approach was evaluated on two standard benchmarks:

  • 20Newsgroups (20NG): A collection of ~20,000 messages across 20 categories, organized into 6 top-level super-classes.
  • RCV1: A large-scale dataset of over 800,000 Reuters news stories categorized into a hierarchy of 103 topics with a maximum depth of four.

Results and Discussion

Semantic Representation Performance

A key finding is the significant superiority of ESA over word embeddings and clustering methods. Mapping text to Wikipedia concepts provides a rich, concept-level knowledge base that outperforms simple word-level co-occurrence.

Comparison of different semantic representations across datasets and strategies. ESA consistently leads the pack.

The quality of dataless classification is also highly sensitive to label descriptions. Enriching labels with descriptive keywords (e.g., changing "politics" to "politics, guns, fbi, weapon") dramatically improves performance.

Comparison with Supervised Baselines

The dataless approach demonstrates a substantial advantage in Macro $F_1$ scores, especially on the complex RCV1 hierarchy. While supervised models struggle with rare categories due to data sparsity, the dataless model's performance is independent of category frequency.

Comparison of dataless vs. supervised baselines on the RCV1 dataset. Note how dataless performs exceptionally well on Macro F1, which weights all classes equally.

On the 20NG dataset, the bootstrapped dataless model achieved an $F_1$ score of 0.837, surpassing a supervised model trained on 1,000 labeled examples (0.825). For simpler hierarchies like 20NG, a bottom-up approach was slightly more effective, whereas the top-down approach was more stable for the complex RCV1 hierarchy.

Conclusion

Dataless hierarchical classification offers a powerful alternative to supervised learning, especially when labeled data is scarce or unavailable. By leveraging external knowledge bases like Wikipedia, models can achieve competitive performance through semantic understanding of labels. Future work includes extending this approach to open-ended ontologies and automating the enrichment of label descriptions.

Summary updated

BibTeX
@inproceedings{song2014dataless,
  author = {Yangqiu Song and Dan Roth},
  title = {{On Dataless Hierarchical Text Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2014},
  doi = {10.1609/aaai.v28i1.8938},
}
Figure