Adversarial Extreme Multi-label Classification

Rohit Babbar, Bernhard SchölkopfarXiv 2018

TL;DR

This paper tackles the challenge of Extreme Multi-label Classification (XMC) by reframing it as a robust optimization problem under adversarial perturbations. This novel perspective leads to a Hamming loss-based approach that achieves state-of-the-art results, outperforming existing methods, particularly on datasets with a long tail of infrequent labels.

What Problem Does This Paper Address?

Extreme Multi-label Classification (XMC) deals with scenarios where each instance can be assigned to a small subset of relevant labels from an enormous pool of potential labels (hundreds of thousands to millions). A key characteristic of XMC datasets is the "long tail" phenomenon: a vast majority of labels appear very infrequently in the training data. This data scarcity for tail labels poses a significant challenge, as models might struggle to learn effective representations for these rare categories. Existing methods often resort to label embedding or tree-based approaches, but the authors propose a new perspective: viewing the learning task as operating in the presence of adversarial perturbations. This arises from the observation that the feature distribution of test instances can differ significantly from training instances, especially for tail labels, as if an adversary were subtly altering the data.

Methods

The core of the paper's contribution lies in framing XMC as a robust optimization problem. By considering adversarial perturbations (specifically, $L_\infty$ norm bounded perturbations) on input features, the authors derive an equivalent regularized objective function. This objective is a 1-norm regularized hinge loss, which naturally leads to sparse solutions.

To optimize this objective, they propose a proximal gradient method (specifically, a forward-backward splitting algorithm) for each label independently. This approach, termed PROXML (Parallel Robust eXtreme Multi-Label classification), leverages the fact that label predictions are independent.

A significant finding is the demonstration of the sub-optimality of the sparse solver in the widely used LibLinear package (option "-s 5") for this type of problem. The authors show that this solver can lead to underfitting and poor generalization.

Furthermore, the paper delves into the spectral properties of label graphs to provide theoretical insights into when Hamming loss-based methods are more suitable than label embedding methods.

Datasets

The paper evaluates its proposed method on several publicly available XMC benchmark datasets:

  • WikiLSHTC-325K: A large dataset with ~1.78 million training instances, ~1.62 million features, and ~325,000 labels.
  • Amazon-670K: Another large dataset with ~490,000 training instances, ~136,000 features, and ~670,000 labels.
  • EUR-Lex: A medium-sized dataset with ~15,000 training instances, ~5,000 features, and ~4,000 labels.
  • MediaMill: A smaller dataset with ~30,000 training instances, ~120 features, and ~101 labels.
  • Bibtex: A smaller dataset with ~4,880 training instances, ~1,836 features, and ~159 labels.
  • Wiki-500K: A large dataset with ~1.81 million training instances, ~2.38 million features, and ~501,000 labels.

The paper notes that MediaMill and Bibtex do not exhibit significant tail-label behavior, serving as a contrast to the larger datasets.

Key Insights and Ideas

  • Adversarial Perturbations as a Model for Data Scarcity: The core insight is that the challenges posed by tail labels in XMC can be effectively modeled as learning under adversarial perturbations, rather than just a lack of data. This reframing opens up robust optimization techniques.
  • Hamming Loss Efficacy: Contrary to some prior conjectures, the paper demonstrates that Hamming loss, when optimized within a robust framework, is highly effective for tail-label detection in XMC, especially for large-scale datasets.
  • 1-Norm Regularization for Sparsity: The adversarial formulation naturally leads to 1-norm regularization, which promotes sparse models. This is beneficial for both computational efficiency and interpretability.
  • Sub-optimality of Standard Solvers: The paper highlights a critical finding: the widely used LibLinear solver's "-s 5" option, often employed for L1-regularized problems, can yield sub-optimal solutions for XMC due to underfitting. This is a significant practical implication for users of such libraries.
  • Label Graph Connectivity as a Predictor: The spectral properties of label graphs (specifically, algebraic connectivity) can predict whether label embedding methods or Hamming loss-based one-vs-rest schemes will perform better. High connectivity suggests label embedding is beneficial, while low connectivity favors one-vs-rest.

Key Results

  • State-of-the-Art Performance: PROXML achieved state-of-the-art results on propensity-scored metrics (PSP@k and PSnDCG@k) for large-scale datasets like WikiLSHTC-325K and Amazon-670K.
  • Up to 20% relative improvement over PFastreXML (a leading tree-based method).
  • Up to 60% relative improvement over SLEEC (a leading label-embedding method).
  • Robustness to Tail Labels: The method demonstrates superior performance in detecting tail labels, which is crucial for many real-world applications.
  • Model Size and Prediction Speed: The 1-norm regularization leads to significantly smaller models (e.g., 3GB for WikiLSHTC-325K vs. 30GB for PFastreXML). Prediction speed is also competitive, taking around 2 milliseconds per instance on average.
  • LibLinear Solver Issue: The paper provides empirical evidence and a theoretical argument for the sub-optimality of LibLinear's "-s 5" solver in this context, showing that PROXML's proximal gradient approach yields better objective values.

Limitations and Future Work

  • Dataset Specificity: While the paper shows strong results, the authors note that for smaller datasets with high label graph connectivity (like MediaMill and Bibtex), label embedding methods might still perform better. This suggests that the optimal approach can be data-dependent.
  • Propensity Estimation: The paper mentions that some methods (like PFastreXML) require propensity estimation from metadata, which might not always be available or can be ad-hoc. PROXML, by optimizing a Hamming loss surrogate, bypasses this requirement.
  • Future Work: The authors suggest exploring connections to deep learning for data augmentation via adversarial perturbations. They also highlight the potential for further optimization of the proximal gradient method and exploring its application to other metrics. The spectral analysis of label graphs is presented as a promising avenue for deeper theoretical understanding.

Summary updated

BibTeX
@misc{babbar2018adversarial,
  author = {Rohit Babbar and Bernhard Schölkopf},
  title = {{Adversarial Extreme Multi-label Classification}},
  year = {2018},
  eprint = {1803.01570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.01570},
}
Figure