Introduction
Hierarchical text classification (HTC) involves assigning documents to a structured taxonomy of categories. While deep learning has significantly advanced flat classification, it faces two primary challenges in hierarchical contexts: the high cost of labeling large datasets for specialized domains and the "granularity problem," where documents may belong to general parent categories rather than specific leaf nodes. This paper introduces WeSHClass (Weakly-Supervised Hierarchical Text Classification), a framework that leverages minimal supervision—such as keywords or a few labeled examples—to train robust hierarchical classifiers.
Methodology
The WeSHClass framework follows a "pre-train and refine" approach consisting of three core components: pseudo-document generation, a hierarchical neural structure, and a self-training mechanism with an integrated blocking module.
Pseudo-Document Generation
To address the lack of labeled data, WeSHClass generates synthetic training data. It models each class using a von Mises-Fisher (vMF) distribution, capturing semantic direction in word vector space. An unsupervised LSTM language model, trained on the entire corpus, is then used to "grow" coherent pseudo-documents around seed words sampled from these distributions. This process ensures that the initial model is "warm-started" with data that maintains local syntactic patterns.
Hierarchical Neural Structure
Instead of a single flat classifier, the framework employs a hierarchy of local CNN classifiers corresponding to the nodes in the class tree. These local models are integrated into a global ensemble where the probability of a document belonging to a specific leaf is calculated as the product of probabilities along the path from the root.
Self-Training and Blocking
After initialization, the model undergoes self-training on unlabeled real-world data. A critical innovation is the blocking mechanism. If a local classifier's output exhibits high entropy—indicating uncertainty about which sub-category a document fits into—the blocking mechanism prevents the document from being pushed further down the hierarchy. This allows the model to correctly classify general documents at internal nodes rather than forcing them into inappropriate leaf categories.
Evaluation
The authors evaluated WeSHClass on three datasets: The New York Times (NYT), arXiv abstracts, and Yelp reviews.
Key Results
WeSHClass consistently outperformed baselines such as Hier-Dataless and WeSTClass. On the NYT dataset using only keywords, WeSHClass achieved a Macro-F1 of 0.632, compared to 0.386 for the flat WeSTClass model. Furthermore, the model demonstrated high stability with extremely limited supervision (e.g., 3 labeled documents per class), avoiding the overfitting common in standard supervised CNNs.
The blocking mechanism proved effective in qualitative analyses, successfully identifying documents that belonged to general categories like "Sports" rather than being forced into specific sub-topics like "Basketball."
Conclusion
WeSHClass provides a scalable solution for hierarchical text classification in data-scarce environments. By combining generative pseudo-document creation with a structured neural architecture and an entropy-based blocking mechanism, it effectively handles both the data hunger of deep models and the granularity challenges of hierarchical taxonomies. Future work may explore extending the framework to Directed Acyclic Graphs (DAGs) and integrating multiple sources of weak supervision.
Summary updated