NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DeepXML: A deep extreme multi-Label learning framework applied to short text documents

Kunal Dahiya, Deepak Saini, Anshul Mittal, Ankush Shaw, Kushal S. Dave, Akshay Soni, Himanshu Jain, Sumeet Agarwal, Manik Varma · DOI

Introduction

Extreme Multi-Label Learning (XML) is the challenge of tagging a data point with the most relevant labels from a massive pool, often containing millions of possibilities. Common applications include suggesting bid phrases for search queries or assigning tags to Wikipedia articles.

Traditional deep learning approaches for XML face two primary obstacles. First is scalability: standard output layers (like softmax) become computationally prohibitive as the number of labels grows into the millions, leading to training and inference times that scale linearly with the label set. Second is the short-text constraint: many XML tasks involve brief snippets (3-10 words) that lack the rich context required to learn high-quality embeddings using standard methods, particularly for rare words.

The DeepXML Framework

To address these challenges, the authors propose DeepXML, a modular framework that decomposes the XML problem into four sub-tasks, each designed to operate in log-time relative to the total number of labels. This decomposition allows for efficient training and high-speed inference without sacrificing the representational power of deep learning.

The DeepXML framework architecture, illustrating the surrogate learning task (a) and the extreme learning task (b) with hard negative sampling.

The Four Modules of DeepXML

  1. Module I: Intermediate Representation: The model initially solves a "surrogate task" by clustering millions of labels into a smaller set of "meta-labels." Predicting these meta-labels allows the model to learn initial feature embeddings efficiently.
  2. Module II: Negative Sampling: Using the features from Module I, the system constructs an Approximate Nearest Neighbor Search (ANNS) structure. For each data point, it identifies a "shortlist" of a few hundred "hard negatives"—labels that are most likely to be confused with the correct ones.
  3. Module III: Transfer Learning: The model adapts the surrogate features to the final task using a residual architecture ($v + \Delta v$). A critical component here is a spectral norm constraint, which ensures that the fine-tuned features do not drift too far from the initial space, keeping the hard negative shortlist from Module II relevant.
  4. Module IV: Classifier Learning: Finally, high-capacity 1-vs-All classifiers are trained, but only on the labels within the identified shortlist. This targeted training significantly accelerates the final learning step.

Based on this framework, the authors developed Astec (Accelerated Short Text Extreme Classifier), an algorithm specifically optimized for the sparse nature of short-text documents.

Experimental Results

Astec was evaluated against several state-of-the-art deep and non-deep classifiers across multiple large-scale benchmarks, including AmazonTitles (up to 3M labels), WikiTitles (500K labels), and a proprietary Bing dataset (Q2B-3M) containing 21 million training points.

Performance comparison of Astec against state-of-the-art methods across various XML benchmarks.

As shown in the results table, Astec consistently outperformed leading deep classifiers such as XML-CNN and AttentionXML by 2-12% in precision metrics. More importantly, it demonstrated superior scalability, training 5-30x faster than its deep learning competitors. For instance, on the AmazonTitles-3M dataset, Astec completed training in a few hours on a single GPU, whereas other deep methods either failed to scale or required several days.

Key Insights and Real-World Impact

The success of DeepXML lies in its strategic decomposition. By separating feature learning from final classification and utilizing hard negative sampling, the framework bypasses the linear bottleneck of traditional deep architectures. The use of spectral normalization provides the necessary stability to bridge the modular pipeline.

In practical application, Astec has been deployed within the Bing search engine to match user queries with advertiser bid phrases. It successfully handles peak loads of 120,000 queries per second with millisecond latency, resulting in a 6.5% increase in click-through rate (CTR) for personalized advertisements and substantial revenue growth.

Limitations and Future Work

While Astec is highly optimized for short text using sparse representations, the DeepXML framework itself is flexible. Future work may involve integrating more complex architectures, such as Transformers, for long-form text documents. Additionally, the authors suggest that incorporating label metadata (e.g., text descriptions of the labels) could further improve performance on "tail" labels that appear infrequently in the training data.

Summary updated

BibTeX
@inproceedings{dahiya2021deepxml,
  author = {Kunal Dahiya and Deepak Saini and Anshul Mittal and Ankush Shaw and Kushal S. Dave and Akshay Soni and Himanshu Jain and Sumeet Agarwal and Manik Varma},
  title = {{DeepXML: A deep extreme multi-Label learning framework applied to short text documents}},
  booktitle = {WSDM},
  year = {2021},
  url = {https://openreview.net/forum?id=9HN6urzykJp},
}
Figure