Generalized test utilities for long-tail performance in extreme multi-label classification

Erik Schultheis, Marek Wydmuch, Wojciech Kotlowski, Rohit Babbar, Krzysztof Dembczynski

Abstract

Extreme Multi-label Classification (XMLC) often suffers from a bias toward frequent "head" labels, neglecting the informative "long tail." This paper introduces a framework to optimize budgeted macro-averaged metrics using the Expected Test Utility (ETU) framework. We propose a scalable Block Coordinate Ascent (BCA) algorithm that significantly improves tail performance with minimal impact on overall precision. Empirical evaluations across large-scale datasets demonstrate that our approach effectively navigates the precision-macro trade-off, achieving state-of-the-art results in tail-heavy classification tasks.

Introduction

In Extreme Multi-label Classification (XMLC), models must navigate millions of potential labels, such as Wikipedia tags or product categories. A persistent challenge is the "long tail": most labels appear only a few times. Standard metrics like Precision@k reward models for correctly identifying frequent "head" labels, allowing them to ignore rare "tail" labels while maintaining high scores.

This paper addresses two primary hurdles:

  1. Metric Confounding: Existing propensity-scored metrics often conflate the long-tail problem with missing labels. As shown in the table below, standard metrics are remarkably insensitive to the tail; removing 90% of the label space results in negligible changes to Precision, while macro-metrics plummet.
  2. Optimization Complexity: Predicting a fixed budget of $k$ labels couples the optimization of individual labels, making macro-averaging computationally daunting at scale.
Table showing the insensitivity of standard metrics to tail labels compared to macro-metrics.

Methodology

The authors propose moving from Population Utility to the Expected Test Utility (ETU) framework, focusing on maximizing performance on the specific test set. Key technical contributions include:

  • Semi-empirical ETU Approximation: A mathematical simplification making utility calculation over $2^n$ combinations tractable.
  • Block Coordinate Ascent (BCA): An iterative algorithm that updates predictions for one instance at a time to reach a global macro-utility optimum.
  • Sparse Inference: To handle extreme scales, the algorithm utilizes a "shortlist" of the top-$k'$ most likely labels, reducing the search space from millions to thousands.
  • Theoretical Guarantees: The authors provide regret bounds, proving that predictions are near-optimal if underlying probability estimates are accurate.

Key Results and Insights

The researchers evaluated BCA on five standard XMLC benchmarks, including Eurlex-4K, Wiki-31K, and Amazon-670K. The algorithm consistently outperformed standard "Top-K" and propensity-scored baselines. For example, on AmazonCat-13K, BCA improved Macro-F1@3 from 14.67% to 32.84%.

A critical insight is the existence of a Pareto Frontier. Practitioners do not need to choose between high precision and good tail performance. By optimizing a linear combination of the two, one can achieve a massive boost in tail coverage for a marginal sacrifice in overall precision.

Pareto frontier showing the trade-off between Instance-Precision and Macro-F1.

Conclusion

The BCA algorithm provides a scalable, theoretically grounded method for addressing the long-tail problem in XMLC. While the method is a "plug-in" approach dependent on the quality of the underlying Label Probability Estimator (LPE), its ability to scale to datasets like Amazon-670K demonstrates its practical utility for real-world, large-scale recommendation and tagging systems. Future work may involve integrating this inference-time optimization directly into the training process of deep XMLC models.

Summary updated

BibTeX
@inproceedings{schultheis2023generalized,
  author = {Erik Schultheis and Marek Wydmuch and Wojciech Kotlowski and Rohit Babbar and Krzysztof Dembczynski},
  title = {{Generalized test utilities for long-tail performance in extreme multi-label classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=jze2r6RDFz},
}
Figure