Abstract
Hierarchical text classification (HTC) has many real-world applications. However, labeling a large number of documents is costly. In practice, we can use semi-supervised learning or weakly supervised learning (e.g., dataless classification) to reduce the labeling cost. In this paper, we propose a path cost-sensitive learning algorithm to utilize the structural information and further make use of unlabeled and weakly-labeled data. We use a generative model to leverage the large amount of unlabeled data and introduce path constraints into the learning algorithm to incorporate the structural information of the class hierarchy. The posterior probabilities of both unlabeled and weakly labeled data can be incorporated with path-dependent scores. Since we put a structure-sensitive cost to the learning algorithm to constrain the classification consistent with the class hierarchy and do not need to reconstruct the feature vectors for different structures, we can significantly reduce the computational cost compared to structural output learning. Experimental results on two hierarchical text classification benchmarks show that our approach is not only effective but also efficient to handle the semi-supervised and weakly supervised hierarchical text classification.
Introduction
Hierarchical Text Classification (HTC) is essential for organizing documents into structured taxonomies, such as Sports > Baseball > MLB. Despite its utility, HTC is plagued by three significant challenges. First, the labeling cost is immense; manually annotating thousands of documents across deep hierarchies is often unfeasible. Second, traditional "top-down" classifiers suffer from error propagation, where a mistake at a high-level node dooms all subsequent predictions. Finally, computational complexity remains a barrier; high-accuracy "structural output learning" methods (like Structural SVMs) require complex feature reconstructions that are too slow for large-scale hierarchies.
To address these issues, this research introduces a path-based generative framework that ensures hierarchical consistency while remaining data-efficient and computationally fast.
Methodology: Path-Generated Probabilistic Framework
Instead of building independent classifiers for every node, the proposed approach models the probability of a document belonging to a specific path from the root to a leaf. This shift from node-based to path-based prediction inherently enforces the tree structure.
Path-Dependent Scores and PCNB
The core of the method lies in assigning scores to paths. For labeled data, a path's score reflects how many of its constituent nodes match the document's ground-truth labels. In weakly supervised scenarios, "dataless" techniques generate these scores by measuring semantic similarity between document text and label names.
These scores are integrated into a Path Cost-Sensitive Naive Bayes (PCNB) classifier. By treating path scores as "event counts," the model naturally incorporates the tree structure into its probability estimates. This acts as a "soft constraint": a path that is partially correct (e.g., correct parent, incorrect child) still provides a useful learning signal, unlike flat classifiers that would treat such a prediction as a binary failure.
Path Cost-Sensitive EM (PCEM)
To utilize unlabeled data, the authors employ an Expectation-Maximization (EM) algorithm. The PCEM algorithm iteratively estimates the most likely paths for unlabeled documents (E-step) and updates model parameters accordingly (M-step). Crucially, this method avoids the "Kesler construction" required by structural SVMs, keeping the feature space small and the training process efficient.
Experimental Evaluation
The researchers evaluated the PCEM algorithm on two gold-standard benchmarks:
- 20 Newsgroups (20NG): ~19,000 posts in a 2-layer hierarchy.
- RCV1: A large-scale Reuters dataset with a 3-layer hierarchy and 35 leaf nodes.
The models were tested in both semi-supervised (limited ground-truth labels) and weakly supervised (label names only) settings.
Results and Discussion
The experimental results highlight the robustness of the generative path-based approach, particularly when data is scarce.
Key Findings
- Superiority at Low Label Rates: As shown in Figure 2, PCEM (the black line) consistently achieves the highest Micro-F1 and Macro-F1 scores. The performance gap is most pronounced at a 1% label rate, where PCEM significantly outperforms Top-Down and Win-driven baselines.
- Weak Supervision Gains: In dataless configurations, the path-based approach proved highly effective at recovering true distributions from noisy semantic similarities, outperforming other methods by even larger margins.
- Computational Efficiency: PCEM achieved a tens of times speedup over HierCost, a state-of-the-art discriminative baseline. This efficiency makes it a practical choice for real-world applications involving massive taxonomies.
Conclusion
The path-based generative framework offers a compelling solution for HTC in data-constrained environments. By modeling paths, it ensures 100% structural consistency and leverages unlabeled data effectively through an efficient EM process.
Future work could address the limitations of the Naive Bayes word-independence assumption by integrating deep neural networks (like CNNs or LSTMs) for richer text representations. Additionally, extending the framework from simple trees to Directed Acyclic Graphs (DAGs) would allow for more complex, multi-parent hierarchical structures.
Summary updated