[Paper Review] AttentionXML: Label Tree-based Attention-Aware Deep Model for High-Performance Extreme Multi-Label Text Classification
AttentionXML introduces a label-tree based deep model with multi-label attention to handle XMTC at extreme scale, achieving state-of-the-art results especially on tail labels.
Extreme multi-label text classification (XMTC) is an important problem in the era of big data, for tagging a given text with the most relevant multiple labels from an extremely large-scale label set. XMTC can be found in many applications, such as item categorization, web page tagging, and news annotation. Traditionally most methods used bag-of-words (BOW) as inputs, ignoring word context as well as deep semantic information. Recent attempts to overcome the problems of BOW by deep learning still suffer from 1) failing to capture the important subtext for each label and 2) lack of scalability against the huge number of labels. We propose a new label tree-based deep learning model for XMTC, called AttentionXML, with two unique features: 1) a multi-label attention mechanism with raw text as input, which allows to capture the most relevant part of text to each label; and 2) a shallow and wide probabilistic label tree (PLT), which allows to handle millions of labels, especially for "tail labels". We empirically compared the performance of AttentionXML with those of eight state-of-the-art methods over six benchmark datasets, including Amazon-3M with around 3 million labels. AttentionXML outperformed all competing methods under all experimental settings. Experimental results also show that AttentionXML achieved the best performance against tail labels among label tree-based methods. The code and datasets are available at http://github.com/yourh/AttentionXML .
Motivation & Objective
- Motivate XMTC as tagging texts with extremely large label sets and address challenges of context, scalability, and tail-label performance.
- Propose a label-tree based deep model that uses raw text with attention to tailor representations per label.
- Introduce a shallow and wide probabilistic label tree (PLT) to enable scalable training and inference for millions of labels.
- Demonstrate that attention over raw text and a PLT yield superior performance over baselines across multiple datasets, especially for tail labels.
Proposed method
- Build a shallow, wide probabilistic label tree (PLT) by compressing an initial hierarchical partitioning of labels to reduce tree height and balance label distribution.
- Use a BiLSTM-based neural encoder with a per-label multi-label attention mechanism to produce label-specific text representations from raw text.
- Train a level-wise AttentionXML model for each PLT level, using candidate-label-aware sampling to focus learning on informative nodes.
- Predict by traversing the PLT with beam search, computing label scores via a probability chain rule along the path.
- Share parameters in the fully connected and output layers across labels to reduce model size and improve generalization.
- Initialize deeper-level models from parameters of shallower levels to accelerate convergence.
Experimental results
Research questions
- RQ1Can a label tree-based approach with deep attention over raw text outperform existing XMTC methods at extreme scale?
- RQ2Does a shallow and wide PLT mitigate tail-label degradation and improve tail-label accuracy?
- RQ3How does multi-label attention per label affect performance compared to single shared representations?
- RQ4What is the impact of ensemble PLTs on accuracy and efficiency for extremely large label sets?
Key findings
- AttentionXML outperformed eight state-of-the-art baselines across six XMTC benchmarks, including Amazon-3M with about 3 million labels.
- AttentionXML-1 (single PLT) already achieved strong gains, particularly on datasets with longer texts; ensemble PLTs further improved accuracy.
- The combination of BiLSTM and multi-label attention significantly improves performance over XML-CNN and BiLSTM baselines, especially for long texts.
- A shallow and wide PLT enables scalable training and inference on extreme-scale datasets while maintaining competitive or superior accuracy.
- AttentionXML demonstrated superior tail-label performance among label-tree methods, as shown by PSP@k analyses.
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.