Introduction
Multi-Label Text Classification (MLTC) is a fundamental task in natural language processing, where the goal is to assign a set of relevant labels to a given document. While standard models perform well on balanced datasets, real-world data typically follows a power-law distribution. This results in a "long-tail" problem: a small number of "head labels" appear frequently, while a vast majority of "tail labels" appear very rarely.
The Long-Tail Challenge
In long-tailed distributions, head labels dominate the training process. Consequently, models often fail to generalize for tail labels due to the scarcity of training examples. Traditional approaches like re-sampling or re-weighting often struggle to capture high-quality features for rare categories or ignore the intrinsic relationships between labels.
As shown in the figure above, datasets like AAPD and RCV1 exhibit both extreme imbalance and significant label correlations. The authors of this paper propose leveraging these correlations, specifically using the data-rich head labels to "teach" the model how to classify data-poor tail labels.
The Head-to-Tail Network (HTTN)
The proposed Head-to-Tail Network (HTTN) addresses the long-tail problem through a meta-learning framework designed to transfer knowledge from head to tail labels. The architecture consists of four key components:
- Semantic Extractor: Utilizes a Bi-LSTM with an attention mechanism to generate document embeddings.
- Meta-Knowledge Transfer: This core module learns a mapping function that transforms few-shot prototypes into robust classifier weights. To train this, the authors simulate tail-label conditions using head labels, creating a "training ground" for the transfer learner.
- Tail Label Attention: This module exploits label dependencies. It enhances the representation of tail labels by attending to semantically related head labels, effectively "borrowing" strength from common categories.
- Ensemble HTTN (EHTTN): To mitigate noise from small sample sizes, an ensemble approach averages predictions across multiple sampled sets of tail documents.
Experimental Evaluation
The HTTN was evaluated on three benchmark datasets: AAPD (54 labels), RCV1 (103 labels), and EUR-Lex (3,714 labels). EUR-Lex is particularly challenging due to its massive label space and numerous "one-shot" labels (labels with only a single training instance).
Key Results
- Superior Tail Performance: HTTN consistently outperformed state-of-the-art baselines like XML-CNN and DXML. On the RCV1 dataset, HTTN achieved significant F1-scores on the rarest labels where traditional joint training models failed entirely.
- One-Shot Learning Success: On the EUR-Lex dataset, HTTN demonstrated remarkable efficacy in classifying labels with only a single training instance, significantly outperforming other meta-learning methods like OLTR.
- Flexibility and Efficiency: A significant advantage of HTTN is its ability to handle new, rare labels without retraining the entire model. The pre-trained transfer learner can generate classifiers for new labels on the fly given just a few examples.
Conclusion
The Head-to-Tail Network provides a novel and effective solution for long-tailed MLTC by reframing head labels as a resource for tail label learning. By combining meta-learning with label attention, the model successfully transfers expertise across the distribution. Future work may involve reducing the computational overhead of the ensemble mechanism and exploring more complex label structures to further refine knowledge transfer.
Summary updated