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

TELEClass: Taxonomy Enrichment and LLM-Enhanced Hierarchical Text Classification with Minimal Supervision

Yunyi Zhang, Ruozhen Yang, Xueqiang Xu, Rui Li, Jinfeng Xiao, Jiaming Shen, Jiawei Han

Introduction

Hierarchical Text Classification (HTC) involves assigning documents to categories within a structured taxonomy, such as labeling a product review as Beauty → Hair Care → Shampoo. While standard classification handles flat labels, HTC often involves hundreds or thousands of labels arranged in complex trees or graphs.

Current HTC approaches face two primary challenges:

  1. Data Scarcity: Traditional supervised models require extensive human-labeled data, which is prohibitively expensive for large, complex hierarchies.
  2. LLM Inefficiency: While Large Language Models (LLMs) like GPT-4 excel at zero-shot classification, they struggle with massive label spaces. Fitting hundreds of class descriptions into a single prompt is costly and often leads to decreased performance.

TELEClass (Taxonomy Enrichment and LLM-Enhanced Classifier) addresses these issues by using only class names as supervision, combining the general reasoning of LLMs with task-specific features mined from unlabeled text.

Methodology

The TELEClass framework follows a four-step pipeline designed to generate high-quality pseudo-labels for training a lightweight classifier.

Overview of the TELEClass pipeline, showing the four main stages: annotation, enrichment, refinement, and augmentation.

1. LLM-Enhanced Core Class Annotation

To manage large taxonomies, TELEClass employs a "top-down tree search." Instead of a single massive prompt, it asks the LLM to generate keywords for classes and navigates the taxonomy level-by-level to identify the most likely "core classes" for a given document.

2. Corpus-Based Taxonomy Enrichment

The model analyzes unlabeled data to identify terms that are prevalent within a specific class but rare in its "sibling" classes. This step bridges the gap between general LLM knowledge and domain-specific terminology.

The Taxonomy Enrichment process combines LLM-generated keywords with terms mined from an unlabeled text corpus.

3. Core Class Refinement

Using the enriched terms, the model refines its initial annotations. By calculating similarity gaps between document and class embeddings, it ensures that only the most confident labels are used as "core" training data.

4. Path-Based Data Augmentation

To address the "long-tail" problem where niche classes lack sufficient real-world examples, TELEClass uses an LLM to generate synthetic documents. By providing the full taxonomic path (e.g., Health → Medical Supplies → Bathroom Aids), the system ensures the generated text is contextually accurate and representative of the specific category.

Finally, these pseudo-labels and synthetic documents are used to train a lightweight BERT-based multi-label text classifier.

Evaluation

The researchers evaluated TELEClass on two major benchmarks:

  • Amazon-531: Product reviews categorized into a three-layer taxonomy with 531 leaf nodes.
  • DBPedia-298: Wikipedia article snippets categorized into a three-layer taxonomy with 298 classes.

Key Results

  • Performance: TELEClass significantly outperformed previous weakly-supervised baselines. On the DBPedia dataset, it achieved an Example-F1 of 0.86, notably surpassing zero-shot GPT-4 (0.60).
  • Efficiency: TELEClass offers a massive reduction in operational costs. While GPT-4 cost approximately $800 and took 400 minutes to classify the Amazon test set, TELEClass cost less than $1 and required only 3 minutes of inference time post-training.
  • Ablation Studies: Results indicated that both LLM and corpus enrichment were vital. LLM enrichment was particularly effective for common product categories (Amazon), while corpus enrichment was crucial for more subtle Wikipedia categories (DBPedia).

Discussion and Insights

TELEClass demonstrates the power of combining "general world knowledge" from LLMs with "task-specific knowledge" from unlabeled corpora. By using LLMs for targeted annotation and keyword generation rather than end-to-end classification, the framework exploits their local reasoning strengths while avoiding the pitfalls of global reasoning over large label spaces. Furthermore, the path-based augmentation ensures that the final classifier remains robust even for niche, fine-grained categories that are rarely mentioned in the original dataset.

Limitations

Despite its success, the authors note several areas for future research:

  • Self-Training: Integrating iterative self-training could further boost performance.
  • Specialized Domains: In highly private or technical domains, LLMs might lack the initial knowledge required for effective keyword generation.
  • Extreme Scale: Scaling to web-scale taxonomies with millions of nodes remains a significant challenge.

Summary updated

BibTeX
@inproceedings{zhang2024teleclass,
  author = {Yunyi Zhang and Ruozhen Yang and Xueqiang Xu and Rui Li and Jinfeng Xiao and Jiaming Shen and Jiawei Han},
  title = {{TELEClass: Taxonomy Enrichment and LLM-Enhanced Hierarchical Text Classification with Minimal Supervision}},
  booktitle = {The Web Conference},
  year = {2024},
}
Figure