[Paper Review] HiNet: Hierarchical Classification with Neural Network
HiNet proposes a hierarchical neural network for large-scale classification with over 10,000 labels, modeling the hierarchy as layered neurons with a shared, multi-level cost function during training. It uses a greedy downpour algorithm during inference to efficiently compute the MAP (maximum a posteriori) trace, achieving higher accuracy than flat networks with significantly reduced parameter complexity—O(n²) vs. O(n^h).
Traditionally, classifying large hierarchical labels with more than 10000 distinct traces can only be achieved with flatten labels. Although flatten labels is feasible, it misses the hierarchical information in the labels. Hierarchical models like HSVM by \cite{vural2004hierarchical} becomes impossible to train because of the sheer number of SVMs in the whole architecture. We developed a hierarchical architecture based on neural networks that is simple to train. Also, we derived an inference algorithm that can efficiently infer the MAP (maximum a posteriori) trace guaranteed by our theorems. Furthermore, the complexity of the model is only $O(n^2)$ compared to $O(n^h)$ in a flatten model, where $h$ is the height of the hierarchy.
Motivation & Objective
- Address the challenge of training and inferring on large hierarchical label spaces with over 10,000 distinct categories.
- Overcome the limitations of traditional hierarchical models like HSVM, which become infeasible due to the exponential number of SVMs required.
- Preserve hierarchical label structure during training and inference, avoiding the loss of structural prior information inherent in flattened label approaches.
- Develop a scalable, parameter-efficient architecture that maintains high accuracy even for deep hierarchies.
- Provide a theoretically grounded inference algorithm that guarantees the MAP trace through the hierarchy using a greedy downpour approach.
Proposed method
- Model the hierarchy as a layered neural network where each label is represented as a neuron, with a stop neuron (red) at each level to terminate paths.
- Use a combined cost function across all hierarchical levels during training: $ E = \sum_{k}^{n} (\tilde{\mathbf{y}}^{(k)} - f_{\theta_k}(\mathbf{X}))^2 $, enabling knowledge transfer between levels.
- Apply transfer learning across levels via shared gradient updates through the combined loss, improving generalization and hierarchical coherence.
- During inference, compute posterior probabilities at each layer $ \mathbf{y}^{(k)} $, then apply the downpour algorithm to greedily reconstruct the MAP trace.
- The downpour algorithm computes parent assignments via $ A = \arg\max_a y_b^{(l)} y_a^{(l-1)} $, updating traces and probabilities layer-by-layer.
- The final MAP trace is selected as the one ending at the stop neuron with the highest probability across all levels: $ L = \arg\max_l y_s^{(l)} $.
Experimental results
Research questions
- RQ1Can a neural network architecture effectively model large hierarchical label spaces with over 10,000 classes while preserving structural relationships?
- RQ2Does a multi-level, combined loss function improve performance compared to flat or node-based hierarchical models?
- RQ3Can a greedy inference algorithm like downpour guarantee the MAP trace in a hierarchical classification setting?
- RQ4How does the parameter complexity of HiNet scale compared to flattened models as hierarchy depth increases?
- RQ5Does HiNet outperform flat neural networks in accuracy while maintaining significantly lower parameter counts on large hierarchical datasets?
Key findings
- HiNet achieved 41.4% accuracy on the DMOZ dataset with 11,947 classes, outperforming the baseline flatten network.
- The number of parameters in HiNet scales as $ O(kn + hn^2) $, which is polynomial, while the flatten network scales as $ O(kn^h) $, which is exponential in hierarchy height $ h $.
- The downpour algorithm provably finds the MAP trace due to Theorems 2.1–2.3, which guarantee that no longer path can have higher posterior probability.
- HiNet maintains high accuracy even for deep hierarchies due to effective knowledge transfer across levels via the combined loss function.
- The model’s parameter efficiency is especially advantageous for very deep or wide hierarchies, where flatten models become infeasible due to exponential parameter growth.
- The use of a stop neuron at each layer enables flexible path termination and supports the inference of variable-length hierarchical traces.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.