When Parts Are Greater Than Sums: Individual LLM Components Can Outperform Full Models
Not on the map. Why?
Abstract (arXiv)
This paper studies in-context learning by decomposing the output of large language models into the individual contributions of attention heads and MLPs (components). We observe curious components: good-performing ones that individually do well on a classification task, even when the model performs poorly; bad-performing ones that do much worse than chance; and label-biased components that always predict the same label. We find that component accuracies are well-correlated across different demonstration sets and perturbations of prompt templates. Based on our findings, we propose component reweighting, which learns to linearly re-scale the component activations from a few labeled examples. Given 24 labeled examples, our method improves by an average of 6.0% accuracy points over 24-shot ICL across 8 tasks on Llama-2-7B. Overall, this paper both enriches our understanding of ICL and provides a practical method for improvement by examining model internals.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 64 of its 80 references that are in the map. First posted on arXiv 19 Jun 2024.
Builds on
64 of 80 references.
References · 64
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
38 more
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2016Understanding intermediate layers using linear classifier probescited by 1,279
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2019Designing and Interpreting Probes with Control Taskscited by 608
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2022Complexity-Based Prompting for Multi-Step Reasoningcited by 387
- 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 370
- 2021True Few-Shot Learning with Language Modelscited by 343
- 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 328
- 2023In-Context Learning Creates Task Vectorscited by 302
- 2019Abductive Commonsense Reasoningcited by 300
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 288
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
- 2019What's Hidden in a Randomly Weighted Neural Network?cited by 236
- 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
- 2023Localizing Model Behavior with Path Patchingcited by 182
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
- 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
- 2018Lessons from Natural Language Inference in the Clinical Domaincited by 149
- 2017Learning to Generate Reviews and Discovering Sentimentcited by 147
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
50 most cited of 64 All 64 (JSON)
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 1.
6 papers.
- 2025M2IV: Towards Efficient and Fine-grained Multimodal In-Context Learning via Representation Engineeringcited by 34
- 2024Stress-Testing Long-Context Language Models with Lifelong ICL and Task Haystackcited by 19
- 2025DETAM: Defending LLMs Against Jailbreak Attacks via Targeted Attention Modificationcited by 10
- 2025Diversity of Transformer Layers: One Aspect of Parameter Scaling Lawscited by 2
- 2025Promote, Suppress, Iterate: How Language Models Answer One-to-Many Factual Queriescited by 1
- 2026Domain-Specific Jargon in Large Language Models: A Comparative Analysis between General-Purpose and Specialist Modelscited by 0
- 2026Domain-Specific Jargon in Large Language Models: A Comparative Analysis between General-Purpose and Specialist Models11 Sep 2026
- 2025Diversity of Transformer Layers: One Aspect of Parameter Scaling Laws29 May 2025
- 2025DETAM: Defending LLMs Against Jailbreak Attacks via Targeted Attention Modification18 Apr 2025
- 2025M2IV: Towards Efficient and Fine-grained Multimodal In-Context Learning via Representation Engineering6 Apr 2025
- 2025Promote, Suppress, Iterate: How Language Models Answer One-to-Many Factual Queries27 Feb 2025
- 2024Stress-Testing Long-Context Language Models with Lifelong ICL and Task Haystack23 Jul 2024