Modularity in Transformers: Investigating Neuron Separability & Specialization
Not on the map. Why?
Abstract (arXiv)
Transformer models are increasingly prevalent in various applications, yet our understanding of their internal workings remains limited. This paper investigates the modularity and task specialization of neurons within transformer architectures, focusing on both vision (ViT) and language (Mistral 7B) models. Using a combination of selective pruning and MoEfication clustering techniques, we analyze the overlap and specialization of neurons across different tasks and data subsets. Our findings reveal evidence of task-specific neuron clusters, with varying degrees of overlap between related tasks. We observe that neuron importance patterns persist to some extent even in randomly initialized models, suggesting an inherent structure that training refines. Additionally, we find that neuron clusters identified through MoEfication correspond more strongly to task-specific neurons in earlier and later layers of the models. This work contributes to a more nuanced understanding of transformer internals and offers insights into potential avenues for improving model interpretability and efficiency.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 25 of its 38 references that are in the map. First posted on arXiv 30 Aug 2024.
Builds on
25 of 38 references.
References · 25
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2019Machine Unlearningcited by 1,020
- 2022Toy Models of Superpositioncited by 928
- 2023Steering Language Models With Activation Engineeringcited by 824
13 more
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 733
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2023Language Models Represent Space and Timecited by 306
- 2021Unsolved Problems in ML Safetycited by 291
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2021MoEfication: Transformer Feed-forward Layers are Mixtures of Expertscited by 149
- 2022Analyzing Transformers in Embedding Spacecited by 131
- 2023Modular Deep Learningcited by 82
- 2024Dissecting Language Models: Machine Unlearning via Selective Pruningcited by 38
- 2023Emergent Modularity in Pre-trained Transformerscited by 37
- 2020Under the Hood of Neural Networks: Characterizing Learned Representations by Functional Neuron Populations and Network Ablationscited by 12
- 2020Pruned Neural Networks are Surprisingly Modularcited by 4
Built on by
Not cited yet.