mlsanityData to 7 Oct 2026

Data-Efficient Adaptation of LLMs via Attention Head Reweighting

arXiv 2607.13425 ↗First posted 15 Jul 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

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 parameter-efficient adaptation methods, but continue to struggle when faced with few samples for difficult tasks. To meet this challenge, we propose Attention Head Reweighting (AHR), a data-efficient method that adapts LLMs to new text-classification tasks by learning only a single scalar per attention head. This drastically reduces the number of parameters that need to be learned by making use of the functional specialization of individual attention heads. Experiments on diverse open-source text classification datasets show that AHR can outperform standard baselines like LoRA when learning from limited samples, despite having 200-1000x fewer trainable parameters, as our AHR only modifies ~0.0001% of the model's parameters. In addition, our learned weights are easy to interpret and can be analyzed to better understand the mechanisms and attention heads responsible for in-context learning abilities in LLMs.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 55 of its 73 references that are in the map. First posted on arXiv 15 Jul 2026.

Builds on

55 of 73 references.

References · 55

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2025Qwen3 Technical Reportcited by 8,195
  4. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  5. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  6. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  7. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  8. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
  9. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
  10. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  11. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
  12. 2022Transformers learn in-context by gradient descentcited by 714
38 more
  1. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
  2. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
  3. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  4. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
  5. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  6. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
  7. 2023Larger language models do in-context learning differentlycited by 386
  8. 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 365
  9. 2023AdaLoRA: Adaptive Budget Allocation for Parameter-Efficient Fine-Tuningcited by 337
  10. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  11. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
  12. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  13. 2022Can language models learn from explanations in context?cited by 248
  14. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
  15. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Surveycited by 215
  16. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
  17. 2021Cutting Down on Prompts and Parameters: Simple Few-Shot Learning with Language Modelscited by 139
  18. 2024Improving Steering Vectors by Targeting Sparse Autoencoder Featurescited by 86
  19. 2023Tell Your Model Where to Attend: Post-hoc Attention Steering for LLMscited by 82
  20. 2025SAEs Are Good for Steering -- If You Select the Right Featurescited by 74
  21. 2024Towards Modular LLMs by Building and Reusing a Library of LoRAscited by 72
  22. 2024Attention Heads of Large Language Models: A Surveycited by 65
  23. 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
  24. 2023Explaining black box text modules in natural language with language modelscited by 61
  25. 2025Text-to-LoRA: Instant Transformer Adaptioncited by 50
  26. 2025Parameter-Efficient Fine-Tuning for Foundation Modelscited by 43
  27. 2025Weight-sparse transformers have interpretable circuitscited by 40
  28. 2023Boosted Prompt Ensembles for Large Language Modelscited by 36
  29. 2023LLM for SoC Security: A Paradigm Shiftcited by 22
  30. 2024Linear Explanations for Individual Neuronscited by 19
  31. 2023Tree Prompting: Efficient Task Adaptation without Fine-Tuningcited by 17
  32. 2023Diagnosis, Feedback, Adaptation: A Human-in-the-Loop Framework for Test-Time Policy Adaptationcited by 16
  33. 2023TOAST: Transfer Learning via Attention Steeringcited by 15
  34. 2024Model Tells Itself Where to Attend: Faithfulness Meets Automatic Attention Steeringcited by 15
  35. 2024Vector-ICL: In-context Learning with Continuous Vector Representationscited by 13
  36. 2025PLoP: Precise LoRA Placement for Efficient Finetuning of Large Modelscited by 13
  37. 2024LLMs for Cyber Security: New Opportunitiescited by 11
  38. 2026Human-AI Co-design for Clinical Prediction Modelscited by 9

50 most cited of 55 All 55 (JSON)

Built on by

Not cited yet.