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