# Don't Pay Attention, PLANT It: Pretraining Attention via Learning-to-Rank

*Debjyoti Saha Roy, Byron Wallace, Javed A Aslam*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153443) · [OpenReview](https://openreview.net/forum?id=LGg6VgVLdN) · [alphaXiv](https://www.alphaxiv.org/abs/2410.23066) · [Open on the map](../papers.html#p153443)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Attention Optimization and Retrieval](../pgroup/693.md) · Type: new method · Keywords: extreme multi-label text classification, attention initialization, learning-to-rank, few-shot learning, rare label performance

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Linearized Transformers

## Summary
PLANT introduces a plug-and-play attention initialization strategy that uses a pretrained Learning-to-Rank model to assign label-specific attention based on mutual information gain, improving extreme multi-label text classification especially in few-shot and rare-label settings.

## Explained to a 5-year-old
The paper helps computers read long lists of words and choose the right labels for each word. It creates a simple way to point the computer's attention to the most important words for each label. This is done by using a pre-trained ranking tool that looks at how useful each word is for a label. The new method works with many different computer brain models and needs little extra work. It makes the computer better at hard tasks, especially when there are very few examples.

## Explained to a 5-year-old, longer
The paper is about helping computers understand text that has many possible labels. Usually computers have to learn which words are important for each label, which is hard. The authors came up with a trick: they use a pre-trained tool that decides which words are most useful for each label. This tool is like a simple game that picks the best words based on how much they help. The trick can be added to many different computer models without changing them. When the trick is used, the computer gets better at guessing labels, especially when there are only a few examples to learn from. This helps in situations where rare labels are important, like medical codes or legal documents. The authors also released the code so others can try it out.

## For a technical reader
The paper introduces PLANT, a plug-and-play attention initializer that can be dropped into existing large language models. It uses a pre-trained learning-to-rank model to compute label-specific attention weights based on mutual information gain. This initialization works with models like Mistral, LLaMA, DeepSeek, and Phi-3 without requiring architectural changes. In experiments PLANT improves performance on extreme multi-label text classification tasks, especially in few-shot and rare-label scenarios.

## Problem
Learning high-quality attention weights for extreme multi-label text classification is challenging, particularly when labeled data is scarce. Existing models struggle to focus on key tokens effectively, leading to suboptimal performance on rare labels.

## Method
The approach initializes label-specific attention by leveraging a pretrained Learning-to-Rank model that selects tokens based on mutual information gain with respect to each label. This plug-and-play initialization is architecture-agnostic and can be integrated with various large language model backbones. The resulting attention weights are used directly for classification, improving focus on key tokens.

## Results
The approach achieves substantial improvements over state-of-the-art methods on ICD coding, legal topic classification, and content recommendation, especially in few-shot settings and on rare labels.

## Contributions
The paper proposes a plug-and-play attention initialization method that leverages a pretrained Learning-to-Rank model to assign label-specific attention based on mutual information gain, and demonstrates its effectiveness across multiple extreme multi-label text classification tasks, especially in low-resource scenarios.

## Practical relevance
The approach enables more effective and parameter-efficient attention in extreme multi-label text classification, facilitating better performance on rare classes in applications such as medical coding and legal document classification.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153443)
