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

Your Next State-of-the-Art Could Come from Another Domain: A Cross-Domain Analysis of Hierarchical Text Classification

Nan Li, Bo Kang, Tijl De BiearXiv 2024 · DOI

Introduction

Hierarchical Text Classification (HTC) involves assigning labels organized in a taxonomy to text documents. While critical for fields like medical coding and patent classification, HTC research has historically been fragmented into domain-specific "silos." This fragmentation obscures whether a model's success is due to domain-specific engineering or superior general architecture. This paper breaks these silos by conducting the first comprehensive cross-domain analysis of state-of-the-art HTC methods.

A Unified Framework for HTC

To bridge these gaps, the authors propose a unified framework that decomposes 32 representative HTC methods into nine essential architectural submodules. This modular approach allows for a granular comparison of how different models handle preprocessing, encoding, interaction, and optimization.

The unified HTC framework decomposes models into nine functional submodules, from data augmentation to prediction refinement.

The submodules include:

  • Preprocessing: Data Augmentation (A) and Long Document Handling (B).
  • Encoding: Text Encoder (C) and Label Encoder (D).
  • Interaction: Text-Label Information Fusion (E) and Output Space Segmentation (F).
  • Optimization: Training Objectives (G), Score Prediction (H), and Prediction Refinement (I).

Cross-Domain Evaluation

The study re-implemented eight state-of-the-art (SOTA) methods within a unified codebase to ensure fair comparisons. These models were tested across eight datasets spanning five domains: Legal (EurLex), Scientific (WOS, SciHTC), News (NYT), Medical (MIMIC3), and Patent (USPTO2M).

Timeline of HTC models categorized by their submodule configurations within the unified framework.

Key Insights: Breaking the Domain Myth

The analysis yielded several transformative insights:

  • The "Borrowed" SOTA: Models often excel outside their intended domain. For instance, MatchXML, originally a legal-domain model, outperformed existing leaders in scientific and patent domains.
  • Characteristics Over Domain: Performance is dictated by dataset features—such as document length and label sparsity—rather than the semantic domain (e.g., medical vs. legal).
  • Submodule Fusion: Hybridizing components from different domains can yield superior results. Integrating Label2Vec (legal/e-commerce) into PLM-ICD (medical) significantly boosted performance.
  • The Power of Scale: Simple architectures like FlatBERT can remain competitive if provided with massive training data (e.g., 1.9M samples), compensating for their lack of structural awareness.
  • Long Document Handling: In domains with extensive text, like medicine, the strategy for handling long documents (segmentation vs. truncation) is a more significant performance driver than the choice of language model.

Achieving New State-of-the-Art Results

By applying this cross-domain perspective, the authors established new SOTA benchmarks on four major datasets:

  • NYT-166 (News): Legal-domain methods XR-Transformer and MatchXML surpassed the previous leader.
  • SciHTC-83 (Scientific): Overtaken by legal and patent-domain architectures.
  • MIMIC3-3681 (Medical): Achieved SOTA by augmenting a medical model with legal-domain label semantics.
  • USPTO2M-632 (Patent): MatchXML (legal) outperformed the previous patent-specific leader.

Conclusion

This research demonstrates that the "domain-centric" approach to HTC is limiting. By viewing models as collections of functional submodules and testing them across boundaries, researchers can unlock significant performance gains. Future work will focus on more robust long-document strategies and exploring the unexpected efficacy of cross-domain Large Language Models (LLMs).

Summary updated

BibTeX
@misc{li2024your,
  author = {Nan Li and Bo Kang and Tijl De Bie},
  title = {{Your Next State-of-the-Art Could Come from Another Domain: A Cross-Domain Analysis of Hierarchical Text Classification}},
  year = {2024},
  eprint = {2412.12744},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.12744},
}
Figure