PLANT:用Learning-to-Rank预训练注意力,提升LLM极端多标签文本分类
Don't Pay Attention, PLANT It: Pretraining Attention via Learning-to-Rank
PLANT是一种即插即用的标签注意力初始化策略,在端到端微调前用基于互信息增益训练的Learning-to-Rank模型植入标签专属注意力,可适配Mistral-7B、Llama-3.1-8B、DeepSeek-V3和Phi-3-mini等LLM主干。在ICD编码、法律主题分类和内容推荐任务上,PLANT优于SOTA方法,稀有标签上增益最大,消融实验确认注意力初始化是主要增益来源。
arXiv:2410.23066v5 Announce Type: replace Abstract: State-of-the-art Extreme Multi-Label Text Classification models rely on multi-label attention to focus on key tokens in input text, but learning good attention weights is challenging. We introduce PLANT (Pretrained and Leveraged AtteNTion), a plug-and-play strategy for initializing the label-attention module that operates on top of an LLM's output representations. PLANT works by planting label-specific attention using a Learning-to-Rank model trained on mutual information gain, before end-to-end fine-tuning. This architecture-agnostic approach integrates with LLM backbones (e.g., Mistral-7B, Llama-3.1-8B, DeepSeek-V3, and Phi-3-mini). PLANT outperforms SOTA methods across tasks like ICD coding, legal topic classification, and content recommendation, and improves fine-tuned LLMs in controlled comparisons outside the medical domain. Gains are largest on rare labels, although a training-free LLM extraction baseline remains competitive on rarely seen labels. Ablation studies confirm that attention initialization is a key driver of these gains. We make our code available at https://github.com/deb-official/plant
来源:arXiv (AI + Vision + Imaging) · arxiv.org