Interpreting and Exploiting Functional Specialization in Multi-Head Attention under Multi-task Learning
Not on the map. Why?
Abstract (arXiv)
Transformer-based models, even though achieving super-human performance on several downstream tasks, are often regarded as a black box and used as a whole. It is still unclear what mechanisms they have learned, especially their core module: multi-head attention. Inspired by functional specialization in the human brain, which helps to efficiently handle multiple tasks, this work attempts to figure out whether the multi-head attention module will evolve similar function separation under multi-tasking training. If it is, can this mechanism further improve the model performance? To investigate these questions, we introduce an interpreting method to quantify the degree of functional specialization in multi-head attention. We further propose a simple multi-task training method to increase functional specialization and mitigate negative information transfer in multi-task learning. Experimental results on seven pre-trained transformer models have demonstrated that multi-head attention does evolve functional specialization phenomenon after multi-task training which is affected by the similarity of tasks. Moreover, the multi-task training strategy based on functional specialization boosts performance in both multi-task learning and transfer learning without adding any parameters.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 39 of its 64 references that are in the map. First posted on arXiv 16 Oct 2023.
Builds on
39 of 64 references.
References · 39
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
27 more
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Attention is not Explanationcited by 916
- 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
- 2017An Overview of Multi-Task Learning in Deep Neural Networkscited by 791
- 2018Taskonomy: Disentangling Task Transfer Learningcited by 631
- 2020Towards Faithfully Interpretable NLP Systems: How should we define and evaluate faithfulness?cited by 590
- 2019Is Attention Interpretable?cited by 387
- 2019Multi-Task Deep Neural Networks for Natural Language Understandingcited by 349
- 2021Parameter-efficient Multi-task Fine-tuning for Transformers via Shared Hypernetworkscited by 278
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
- 2019Interpreting and improving natural-language processing (in machines) with natural language-processing (in the brain)cited by 128
- 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 124
- 2019On Identifiability in Transformerscited by 115
- 2020Understanding and Improving Information Transfer in Multi-Task Learningcited by 113
- 2019Attention Interpretability Across NLP Taskscited by 71
- 2017Identifying beneficial task relations for multi-task learning in deep neural networkscited by 59
- 2021Super Tickets in Pre-Trained Language Models: From Model Compression to Improving Generalizationcited by 56
- 2020Conditionally Adaptive Multi-Task Learning: Improving Transfer Learning in NLP Using Fewer Parameters & Less Datacited by 50
- 2021Learning Language Specific Sub-network for Multilingual Machine Translationcited by 48
- 2021Differentiable Subset Pruning of Transformer Headscited by 46
- 2022Rethinking Attention-Model Explainability through Faithfulness Violation Testcited by 43
- 2020Why Attentions May Not Be Interpretable?cited by 41
- 2019Learning Sparse Sharing Architectures for Multiple Taskscited by 31
- 2021Importance-based Neuron Allocation for Multilingual Neural Machine Translationcited by 23
- 2016When is multitask learning effective? Semantic sequence prediction under varying data conditionscited by 21
Built on by
Citing papers per year: 2024: 4; 2025: 2; 2026: 3.
9 papers.
- 2024Semantics-Adaptive Activation Intervention for LLMs via Dynamic Steering Vectorscited by 61
- 2024MulCogBench: A Multi-modal Cognitive Benchmark Dataset for Evaluating Chinese and English Computational Language Modelscited by 9
- 2026Fine-Grained Activation Steering: Steering Less, Achieving Morecited by 6
- 2026When Less Latent Leads to Better Relay: Information-Preserving Compression for Latent Multi-Agent LLM Collaborationcited by 5
- 2024ResiDual Transformer Alignment with Spectral Decompositioncited by 4
- 2025Reallocating Attention Across Layers to Reduce Multimodal Hallucinationcited by 3
- 2024Mitigating the Influence of Distractor Tasks in LMs with Prior-Aware Decodingcited by 0
- 2025Understanding Differential Transformer Unchains Pretrained Self-Attentionscited by 0
- 2026Towards Robustness against Typographic Attack with Training-free Concept Localizationcited by 0
- 2026Towards Robustness against Typographic Attack with Training-free Concept Localization2 Jul 2026
- 2026When Less Latent Leads to Better Relay: Information-Preserving Compression for Latent Multi-Agent LLM Collaboration14 Apr 2026
- 2026Fine-Grained Activation Steering: Steering Less, Achieving More4 Feb 2026
- 2025Reallocating Attention Across Layers to Reduce Multimodal Hallucination11 Oct 2025
- 2025Understanding Differential Transformer Unchains Pretrained Self-Attentions22 May 2025
- 2024ResiDual Transformer Alignment with Spectral Decomposition31 Oct 2024
- 2024Semantics-Adaptive Activation Intervention for LLMs via Dynamic Steering Vectors16 Oct 2024
- 2024MulCogBench: A Multi-modal Cognitive Benchmark Dataset for Evaluating Chinese and English Computational Language Models2 Mar 2024
- 2024Mitigating the Influence of Distractor Tasks in LMs with Prior-Aware Decoding31 Jan 2024