Attention Head Reweighting Enables Data-Efficient LLM Adaptation

Tuomas Oikarinen, Zixiao Chen, Charlotte Siska, Tsui-Wei Weng, Chandan Singh, Jianfeng Gao· July 16, 2026 View original

Summary

Attention Head Reweighting (AHR) is a data-efficient method for adapting Large Language Models (LLMs) to new text classification tasks by learning only a single scalar per attention head. AHR significantly outperforms standard baselines like LoRA with 200-1000x fewer trainable parameters, making it ideal for domains with scarce labeled data.

Adapting large language models (LLMs) effectively with limited data is a critical challenge, especially in domains like security where labeled examples are scarce. While parameter-efficient adaptation methods have shown promise, LLMs still struggle with difficult tasks when only a few samples are available. This research introduces Attention Head Reweighting (AHR), a novel and highly data-efficient method. AHR adapts LLMs to new text classification tasks by learning only a single scalar value for each attention head. This approach drastically reduces the number of parameters that need to be learned, leveraging the functional specialization inherent in individual attention heads. Experiments conducted on diverse open-source text classification datasets demonstrate that AHR can outperform established baselines such as LoRA, even while utilizing 200 to 1000 times fewer trainable parameters (modifying only about 0.0001% of the model's parameters). Furthermore, the learned weights in AHR are easily interpretable, offering insights into which attention heads and mechanisms contribute most to the LLM's in-context learning abilities.

Why it matters

For professionals working with LLMs, AHR provides a highly efficient and interpretable method for adapting models to new tasks with minimal data, significantly reducing the cost and time associated with data collection and model finetuning.

How to implement this in your domain

  1. 1Evaluate AHR as a parameter-efficient adaptation method for LLMs in data-scarce environments.
  2. 2Implement AHR by learning a single scalar weight for each attention head in a pre-trained LLM.
  3. 3Apply AHR to text classification tasks where labeled data is limited.
  4. 4Analyze the learned attention head weights to gain insights into model behavior and in-context learning.

Who benefits

CybersecurityHealthcareLegalTechCustomer Service

Key takeaways

  • AHR enables data-efficient adaptation of LLMs for text classification.
  • It learns only a single scalar per attention head, drastically reducing trainable parameters.
  • AHR outperforms LoRA with significantly fewer parameters in low-data regimes.
  • Learned weights offer interpretability into LLM's in-context learning mechanisms.

Original post by Tuomas Oikarinen, Zixiao Chen, Charlotte Siska, Tsui-Wei Weng, Chandan Singh, Jianfeng Gao

"arXiv:2607.13425v1 Announce Type: new Abstract: Learning effectively from limited data is critical in domains like security where labeled examples are scarce. Large language models (LLMs) have demonstrated some capabilities for data-efficient learning, especially through paramete…"

View on X

Originally posted by Tuomas Oikarinen, Zixiao Chen, Charlotte Siska, Tsui-Wei Weng, Chandan Singh, Jianfeng Gao on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses