Heads up! Large Language Models Can Perform Tasks Without Your Instruction via Selective Attention Head Masking
Senyu Han, Hongchuan Zeng, Kai Yu, Lu Chen
摘要
Large language models (LLMs) consist of numerous Transformer modules, and while the models can perform various functions, it remains an open question of how these modules are combined to elicit distinct inherent functionalities. In this paper, we investigate the modules inside LLMs and demonstrate that, by simply masking or retaining specific attention heads during inference, LLMs can exhibit specific task functionalities without requiring explicit instructions or modifications to the model parameters. Experiments across various models and tasks reveal that LLMs inherently encode "functional pathways", the structured groups of interdependent attention heads that are crucial for executing specific tasks. These pathways not only govern the model's functional behaviors but also enhance parameter efficiency, as suppressing attention heads outside the pathway can improve task performance.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Function Vectors in Large Language Models 引用了 Task-Specific Skill Localization in Fine-tuned Language Models
- LoFiT: Localized Fine-tuning on LLM Representations 引用了 Function Vectors in Large Language Models
- LoFiT: Localized Fine-tuning on LLM Representations 引用了 Task-Specific Skill Localization in Fine-tuned Language Models
- AHAMask: Reliable Task Specification for Large Audio Language Models Without Instructions 引用了 Function Vectors in Large Language Models
- Knowledge Circuits in Pretrained Transformers 引用了 Function Vectors in Large Language Models
- Revealing Long-context Potential of Attention Heads via Frequency Kernels 引用了 Function Vectors in Large Language Models
- Revealing Long-context Potential of Attention Heads via Frequency Kernels 引用了 Knowledge Circuits in Pretrained Transformers
引用它的顶会 Paper2
它引用的 Paper19
- Function Vectors in Large Language ModelsEric Todd, Millicent L. Li, Arnab Sen Sharma, Aaron Mueller 等ICLR 2024 · 229 次引用
- Task-Specific Skill Localization in Fine-tuned Language ModelsAbhishek Panigrahi, Nikunj Saunshi, Haoyu Zhao, Sanjeev AroraICML 2023 · 100 次引用
- LoFiT: Localized Fine-tuning on LLM RepresentationsFangcong Yin, Xi Ye, Greg DurrettNeurIPS 2024 · 74 次引用
- MaskLLM: Learnable Semi-Structured Sparsity for Large Language ModelsGongfan Fang, Hongxu Yin, Saurav Muralidharan, Greg Heinrich 等NeurIPS 2024 · 72 次引用
- Knowledge Circuits in Pretrained TransformersYunzhi Yao, Ningyu Zhang, Zekun Xi, Mengru Wang 等NeurIPS 2024 · 71 次引用
相关 Paper
- Compressed Sensing for Capability Localization in Large Language ModelsAnna Bair, Yixuan Xu, Mingjie Sun, Zico KolterICML 2026 · 1 次引用
- Inferring Functionality of Attention Heads from their ParametersAmit Elhelo, Mor GevaACL 2025
- Cognitive Mirrors: Exploring the Diverse Functional Roles of Attention Heads in LLM ReasoningXueqi Ma, Jun Wang, Yanbei Jiang, Sarah M. Erfani 等NeurIPS 2025 · 5 次引用
- Token Alignment Heads: Unveiling Attention's Role in LLM Multilingual TranslationBinbin Liu, Wenhan Han, Feng Chen, Yifan Zhang 等ICLR 2026
- HeadMap: Locating and Enhancing Knowledge Circuits in LLMsXuehao Wang, Liyuan Wang, Binghuai Lin, Yu ZhangICLR 2025
