Skip to main content
QUICK REVIEW

[Paper Review] CascadeXML: Rethinking Transformers for End-to-end Multi-resolution Training in Extreme Multi-label Classification

Siddhant Kharbanda, Atmadeep Banerjee|arXiv (Cornell University)|Oct 29, 2022
Text and Document Classification TechnologiesComputer Science5 citations
TL;DR

CascadeXML proposes an end-to-end, multi-resolution training framework for extreme multi-label classification (XMC) that leverages the hierarchical attention mechanism of transformers to learn distinct feature representations at each resolution level of a label tree. By training a single transformer encoder with resolution-specific attention maps and separate supervision, it achieves state-of-the-art performance on datasets with up to three million labels, outperforming prior methods like XR-Transformer and LightXML without iterative re-clustering or shared attention heads.

ABSTRACT

Extreme Multi-label Text Classification (XMC) involves learning a classifier that can assign an input with a subset of most relevant labels from millions of label choices. Recent approaches, such as XR-Transformer and LightXML, leverage a transformer instance to achieve state-of-the-art performance. However, in this process, these approaches need to make various trade-offs between performance and computational requirements. A major shortcoming, as compared to the Bi-LSTM based AttentionXML, is that they fail to keep separate feature representations for each resolution in a label tree. We thus propose CascadeXML, an end-to-end multi-resolution learning pipeline, which can harness the multi-layered architecture of a transformer model for attending to different label resolutions with separate feature representations. CascadeXML significantly outperforms all existing approaches with non-trivial gains obtained on benchmark datasets consisting of up to three million labels. Code for CascadeXML will be made publicly available at \url{https://github.com/xmc-aalto/cascadexml}.

Motivation & Objective

  • To address the limitation of existing XMC methods in maintaining separate, resolution-specific feature representations across label tree levels.
  • To enable end-to-end training of a single transformer model for both meta-label shortlisting and extreme classification, avoiding iterative re-clustering or frozen feature extraction.
  • To improve performance on extreme-scale datasets (up to 3M labels) by leveraging multi-layered attention for different resolutions.
  • To overcome the interference between meta- and extreme-classification tasks observed in end-to-end models like LightXML by decoupling feature representation per resolution.
  • To preserve high-quality representations at the finest (extreme) resolution while still enabling effective shortlisting at coarser levels.

Proposed method

  • CascadeXML employs a single transformer encoder with separate classification heads for each resolution level of a hierarchical label tree (HLT).
  • It uses resolution-specific attention maps that are learned end-to-end, allowing different attention patterns for coarse and fine-grained label prediction.
  • The model trains all heads jointly using a multi-task objective, where gradients from the extreme-resolution head propagate through all layers, while coarser tasks only affect earlier layers.
  • Feature representations at intermediate transformer layers are used for shortlisting at coarser resolutions, while final layers are optimized for extreme classification.
  • The framework avoids intermediate re-clustering or feature freezing by training all components end-to-end, unlike XR-Transformer’s iterative pipeline.
  • It dynamically learns label shortlists via attention, replacing static pre-computed clusters, and maintains high recall even with less refined intermediate features.

Experimental results

Research questions

  • RQ1Can a single transformer model effectively learn distinct, resolution-specific attention patterns across multiple levels of a label hierarchy in extreme multi-label classification?
  • RQ2Does end-to-end training with separate supervision per resolution improve performance over shared attention or single-level models?
  • RQ3Can intermediate transformer layers provide sufficient representational quality for meta-classification tasks while preserving final-layer representations for extreme classification?
  • RQ4How does the proposed multi-resolution training scheme compare to iterative or frozen feature approaches in terms of accuracy and training efficiency?
  • RQ5To what extent does decoupling feature representation per resolution mitigate interference between shortlisting and extreme classification tasks?

Key findings

  • CascadeXML achieves state-of-the-art performance on benchmark XMC datasets with up to three million labels, significantly outperforming prior methods such as XR-Transformer and LightXML.
  • The model demonstrates that resolution-specific attention maps lead to significantly different attention patterns across levels, validating the design choice of separate attention heads.
  • By using intermediate transformer layers for coarser resolutions and final layers for extreme classification, CascadeXML maintains high-quality representations at the finest resolution without compromising shortlisting recall.
  • The end-to-end training scheme eliminates the need for iterative re-clustering or feature freezing, simplifying training and improving inference speed compared to XR-Transformer’s multi-stage pipeline.
  • The model achieves high recall in label shortlisting even with less refined intermediate features, confirming that meta-tasks are less sensitive to representation quality than extreme classification.
  • Empirical results in Appendix B show that the attention maps learned at different resolutions are significantly distinct, supporting the hypothesis that different tasks require different attention patterns.

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.