TL;DR
PLANT (Pretrained and Leveraged AtteNTion) is a two-stage strategy that replaces random attention initialization with a "planted" layer pretrained via Learning-to-Rank. By guiding attention with Mutual Information Gain, PLANT allows smaller models (like LLaMA-8B) to outperform giants (like DeepSeek-336B) in extreme multi-label tasks, particularly for rare "tail" labels.
What Problem Does This Paper Address?
The authors tackle Extreme Multi-Label Text Classification (XMTC). Imagine a doctor writing a discharge summary; a model must then assign the correct ICD codes from a library of over 170,000 possibilities. This is a "needle in a haystack" problem: documents are long, but only a few tokens are relevant to any specific code.
Current state-of-the-art models use label-specific attention layers to create a "spotlight" for each possible label. However, these layers usually start with random weights. In a world of "long-tail" distributions—where most labels appear only a handful of times—random initialization is a death sentence. The model simply doesn't see enough examples of rare labels to learn where to point its spotlight, leading to "attention dilution" and poor performance on rare classes.
Methods
The core innovation is PLANT, a plug-and-play strategy that treats attention initialization as a Learning-to-Rank (L2R) problem. It follows a two-stage training regimen:
- Stage 1: Pretraining Attention as L2R: Instead of starting from scratch, the authors precompute the Mutual Information Gain (MIG) between every token in the training corpus and every label. This tells us, statistically, which words are most informative for which labels. They then train the attention layer to rank these high-MIG tokens above irrelevant ones using a specialized ranking loss (based on nDCG).
- Stage 2: End-to-End Fine-Tuning: The "planted" attention weights are integrated with a Large Language Model (LLM) backbone. The entire system is then fine-tuned using a focal loss with Hard Negative Mining (HNM), which forces the model to focus on the most difficult-to-distinguish labels.
PLANT is architecture-agnostic, meaning it can be bolted onto various LLMs without modifying their internal structure.
Datasets
The researchers evaluated PLANT across several high-dimensional domains:
- Healthcare: MIMIC-III (ICD-9 codes) and MIMIC-IV (ICD-10 codes), including specialized subsets for rare labels (MIMIC-III-rare50 and MIMIC-III-few).
- Legal: EURLEX-4K, involving the classification of long European Union legal documents.
- Content Recommendation: WIKI10-31K, which involves predicting tags for Wikipedia articles.
Key Insights and Ideas
- Randomness is the Bottleneck: The authors show that for rare labels, random initialization leads to diffuse, inconsistent attention patterns. By "planting" the attention, they achieve an intra-group consistency of 0.985 for rare labels, matching the quality of frequent labels.
- Efficiency Over Scale: One of the most striking findings is that a LLaMA3-8B model equipped with PLANT can outperform a DeepSeek-V3 (336B) model. This suggests that for specialized tasks, smart initialization is more valuable than raw parameter count.
- Zero-Shot for the Tail: PLANT enables "true" zero-shot generalization. Even when a model is trained only on common labels, the Stage 1 initialization allows it to retain significant performance on rare, unseen labels because the attention mechanism already "knows" which tokens are relevant based on the MIG precomputation.
Key Results
- SOTA Performance: PLANT set new state-of-the-art results on the MIMIC-IV-full dataset, showing consistent boosts across all tested LLM backbones (Mistral-7B, LLaMA3-8B, DeepSeek-V3, and Phi-3).
- Rare Label Gains: On the MIMIC-III-few dataset (labels appearing <5 times), PLANT achieved a massive +36.1 gain in F1 (Macro) and a +48.1 gain in Recall (Macro) over existing baselines.
- Sample Efficiency: PLANT matches the performance of standard baselines while using 10x less data. For example, it achieved the same precision with ~1,000 instances that a baseline required ~10,000 instances to reach.
Limitations and Future Work
- Computational Overhead: While inference is efficient, Stage 1 adds roughly 15–20% to the total training time due to the MIG precomputation and L2R optimization.
- Static MIG: The current approach relies on a static precomputation of Mutual Information. The authors suggest that dynamic or "on-the-fly" relevance signals could be a future improvement.
- Multimodal Expansion: The paper focuses on text, but the authors note that the "planting" principle could naturally extend to multimodal tasks (e.g., aligning image regions with specific labels), where cross-signal attention is even more critical.
Summary updated