Skip to main content
QUICK REVIEW

[Paper Review] HAXMLNet: Hierarchical Attention Network for Extreme Multi-Label Text Classification

Ronghui You, Zihan Zhang|arXiv (Cornell University)|Mar 24, 2019
Text and Document Classification TechnologiesComputer Science8 references7 citations
TL;DR

HAXMLNet proposes a hierarchical attention network for extreme multi-label text classification, leveraging a probabilistic label tree (PLT) to reduce model complexity and enable efficient training and inference on datasets with hundreds of thousands of labels. By applying label-wise attention within group-level and label-level classifiers, HAXMLNet achieves competitive performance, outperforming state-of-the-art methods on Wiki-500K and matching top results on Amazon-670K.

ABSTRACT

Extreme multi-label text classification (XMTC) addresses the problem of tagging each text with the most relevant labels from an extreme-scale label set. Traditional methods use bag-of-words (BOW) representations without context information as their features. The state-ot-the-art deep learning-based method, AttentionXML, which uses a recurrent neural network (RNN) and the multi-label attention, can hardly deal with extreme-scale (hundreds of thousands labels) problem. To address this, we propose our HAXMLNet, which uses an efficient and effective hierarchical structure with the multi-label attention. Experimental results show that HAXMLNet reaches a competitive performance with other state-of-the-art methods.

Motivation & Objective

  • To address the scalability limitations of existing deep learning methods like AttentionXML in extreme multi-label text classification (XMTC) with hundreds of thousands of labels.
  • To reduce computational complexity and model size during training and inference while preserving label-wise attention for context and long-term dependency modeling.
  • To enable efficient handling of extreme-scale label sets by introducing a hierarchical structure based on a probabilistic label tree (PLT).
  • To maintain competitive performance on benchmark datasets such as Amazon-670K and Wiki-500K despite label sparsity and high dimensionality.
  • To provide a recursive framework that can be applied iteratively if the group-level model remains computationally heavy.

Proposed method

  • HAXMLNet constructs a hierarchical probabilistic label tree (PLT) with three levels, including a root node, group labels, and individual labels, using top-down k-means clustering to ensure balanced group sizes.
  • It trains a group-level classifier (HAXMLNet-G) using only group labels as targets, reducing the label space to |L|/g, where g is the number of groups.
  • It trains a label-level classifier (HAXMLNet-L) using candidate labels—positive raw labels and a subset of negative labels—limiting the number of candidates to 1,000 per sample to control complexity.
  • During prediction, the final score for each label j is computed as the product of the group-level score for G(j) and the label-level score for j, using the chain rule of probabilities.
  • The model employs label-wise attention with attention parameters w_j, computing attention weights α_ij via softmax over context representations h_i to focus on relevant text parts for each label.
  • The training loss for HAXMLNet-L is a binary cross-entropy loss over candidate labels, with conditional probabilities derived from the PLT structure.

Experimental results

Research questions

  • RQ1Can a hierarchical attention mechanism effectively scale deep learning models for extreme multi-label text classification with over 500,000 labels?
  • RQ2How does the use of a probabilistic label tree (PLT) reduce computational complexity while maintaining predictive performance in XMTC?
  • RQ3To what extent does label-wise attention within a hierarchical structure improve performance compared to flat attention mechanisms on extreme-scale datasets?
  • RQ4Can recursive application of the hierarchical framework further reduce model complexity when group-level models remain too large?
  • RQ5How does HAXMLNet compare in performance to state-of-the-art methods like Parabel and DiSMEC on standard XMTC benchmarks?

Key findings

  • On the Wiki-500K dataset, HAXMLNet achieved the highest performance among all compared methods, with 70.44% Precision@1 and 60.80% nDCG@5.
  • On Amazon-670K, HAXMLNet achieved 41.09% Precision@1 and 36.64% nDCG@5, outperforming PfastreXML and AnnexML, and showing competitive performance despite high label sparsity.
  • HAXMLNet’s performance on Wiki-500K surpassed Parabel (which used three trees) with only one hierarchical tree, indicating superior efficiency and effectiveness.
  • The model’s candidate label pruning (c=1000) effectively controlled computational cost without significant performance degradation.
  • The hierarchical design reduced model scale and training complexity, enabling deployment on GPU memory-constrained systems.
  • The recursive application of the framework allows further scalability when group-level models remain too large for direct training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.