On Data Augmentation for Extreme Multi-label Classification

Danqing Zhang, Tao Li, Haiyang Zhang, Bing YinarXiv 2020

Introduction

Extreme Multi-label Classification (XMC) involves assigning a subset of relevant labels to an input text from a massive pool of potential categories, ranging from thousands to millions. This task is fundamental to applications like product tagging on e-commerce platforms or document categorization on Wikipedia.

The primary obstacle in XMC is the long-tail distribution of labels. While a small number of "head" labels appear frequently, the vast majority of "tail" labels have very few training instances. Modern deep learning architectures, such as RoBERTa, typically require large amounts of data to generalize effectively, often failing on these rare tail labels. This research explores generative data augmentation as a means to synthesize training data for these sparse categories.

Methodology: GDA and LA-RoBERTa

The authors propose a dual-pronged approach to improve XMC performance: a novel augmentation strategy and an optimized classifier.

GPT-2 based Data Augmentation (GDA)

Unlike traditional rule-based augmentation methods that rely on simple word-swapping or deletions, GDA utilizes a generative approach. The authors fine-tune a GPT-2 model on pairs of training samples that share identical labels. Once trained, GPT-2 can generate "label-invariant perturbations"—sophisticated paraphrases that maintain the semantic meaning and label set of the original text.

The GDA framework: Training data is used to fine-tune GPT-2, which then generates new inputs to create an augmented training set for the XMC model.

Label Attention RoBERTa (LA-RoBERTa)

To better handle the scale of XMC, the authors introduce LA-RoBERTa. This model augments the standard RoBERTa architecture with a Label Attention mechanism. While standard classifiers produce a single global representation for a document, Label Attention enables the model to compute label-specific representations. This allows the classifier to focus on different textual features for different labels, which is essential when distinguishing between thousands of overlapping categories.

Experimental Results

The methods were evaluated on the AmazonCat-13K dataset, which contains over 1.3 million products and 13,000 labels. To investigate the impact of data scale, the researchers tested their models on subsampled versions of the training set (1%, 5%, 50%, and 100%).

The Data Scarcity Paradox

A key finding is that the effectiveness of augmentation methods varies with the initial data volume. In extremely low-data environments (1% of the dataset), rule-based methods like EDA (Easy Data Augmentation) often outperform GDA. This is because the GPT-2 model itself requires a baseline amount of data to learn how to generate high-quality, label-preserving paraphrases. However, as the dataset size increases, GDA becomes significantly more effective.

Performance comparison of different data augmentation (DA) methods across various training data scales. GDA shows superior performance as the training set size increases, while rule-based methods perform better in extremely low-data regimes.

Performance Gains

  • State-of-the-Art Results: LA-RoBERTa achieved a new benchmark on AmazonCat-13K with a 96.28% P@1.
  • Tail Label Improvement: GDA notably boosted performance on tail labels. On the full dataset, it improved the baseline RoBERTa’s Propensity-Scored Precision (PSP@5) by 3.2%.
  • Robustness at Scale: While rule-based methods sometimes introduced "noise" that degraded performance as the training set grew, GDA provided consistent improvements even at the 100% data scale due to its higher grammatical quality and vocabulary diversity.

Conclusion and Future Directions

The study demonstrates that generative data augmentation is a powerful tool for addressing the long-tail problem in XMC, provided there is sufficient data to train the generator. Future work may explore dynamic loss weighting to help models distinguish between high-quality and noisy generated examples. Additionally, reducing the computational overhead of fine-tuning and inference for large-scale generative models remains an important challenge for practical deployment.

Summary updated

BibTeX
@misc{zhang2020data,
  author = {Danqing Zhang and Tao Li and Haiyang Zhang and Bing Yin},
  title = {{On Data Augmentation for Extreme Multi-label Classification}},
  year = {2020},
  eprint = {2009.10778},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.10778},
}
Figure