[Paper Review] Fast Multi-Resolution Transformer Fine-tuning for Extreme Multi-label Text Classification
XR-Transformer recursively fine-tunes a pretrained transformer on multi-resolution label hierarchies to accelerate training and improve accuracy in extreme multi-label text classification, achieving state-of-the-art results with much less training time.
Extreme multi-label text classification (XMC) seeks to find relevant labels from an extreme large label collection for a given text input. Many real-world applications can be formulated as XMC problems, such as recommendation systems, document tagging and semantic search. Recently, transformer based XMC methods, such as X-Transformer and LightXML, have shown significant improvement over other XMC methods. Despite leveraging pre-trained transformer models for text representation, the fine-tuning procedure of transformer models on large label space still has lengthy computational time even with powerful GPUs. In this paper, we propose a novel recursive approach, XR-Transformer to accelerate the procedure through recursively fine-tuning transformer models on a series of multi-resolution objectives related to the original XMC objective function. Empirical results show that XR-Transformer takes significantly less training time compared to other transformer-based XMC models while yielding better state-of-the-art results. In particular, on the public Amazon-3M dataset with 3 million labels, XR-Transformer is not only 20x faster than X-Transformer but also improves the Precision@1 from 51% to 54%.
Motivation & Objective
- Motivate the need for efficient transformer fine-tuning in extreme multi-label text classification (XMC) with very large label spaces.
- Propose a recursive, multi-resolution fine-tuning framework (XR-Transformer) to accelerate training while preserving or boosting accuracy.
- Integrate statistical text features with transformer embeddings to improve text representation under truncation constraints.
- Leverage a hierarchical label tree to generate coarse-to-fine learning signals and cost-sensitive training signals.
- Demonstrate empirical gains on multiple large-scale XMC benchmarks against state-of-the-art methods.
Proposed method
- Represent texts using a concatenation of TF-IDF features and transformer embeddings to form a rich input vector.
- Construct a hierarchical label tree (HLT) via balanced k-means on label features and recursively partition labels into clusters.
- Define multi-resolution learning objectives along the HLT, using coarse-to-fine label signals and a binarized Y(t) constructed from child labels.
- Train a shared transformer encoder across resolutions with layer-specific linear projection weights W(t) initialized via bootstrapping from the previous resolution and optimized with a cost-sensitive loss using relevance matrices R^(t).
- Shortlist labels at each level using parent-layer predictions and top-k exploration to balance exploration and exploitation during training and inference.
- During inference, compute transformer embeddings once, then perform beam-search over the refined HLT to retrieve top-scoring labels.
Experimental results
Research questions
- RQ1How can transformer fine-tuning be made efficient for XMC with extremely large label spaces?
- RQ2Does a multi-resolution, coarse-to-fine training objective improve both training speed and predictive accuracy on XMC benchmarks?
- RQ3What role do combined TF-IDF and transformer embeddings play in mitigating information loss from text truncation in XMC?
- RQ4Can cost-sensitive learning over a hierarchical label tree improve performance on large-scale XMC tasks?
- RQ5How does XR-Transformer compare to current transformer-based XMC models in terms of Precision@k and training time?
Key findings
- XR-Transformer achieves state-of-the-art results on 14 of 18 evaluated settings across six public datasets.
- On Amazon-3M, XR-Transformer is 20x faster than X-Transformer and improves Prec@1 from 51.20% to 54.04%.
- Compared to AttentionXML, X-Transformer, and LightXML, XR-Transformer delivers higher Precision@k on large-scale datasets with substantially reduced training time.
- Using cost-sensitive label aggregation within the hierarchical framework yields performance gains over non-CS variants on several large datasets.
- Combining TF-IDF features with transformer embeddings (XR-Transformer) consistently outperforms baselines using only pre-trained or word2vec embeddings plus TF-IDF.
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.