paper-with-me

홈 › Papers

Modularity in Transformers: Investigating Neuron Separability & Specialization

2024-08-30 · Nicholas Pochinkov, Thomas Jones, Mohammed Rashidur Rahman

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.

📄 PDF Abstract BibTeX arXiv:2408.17324

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Pruning 설명 없음

Similar Papers 제목 키워드 기반

Emergent Modularity in Pre-trained Transformers

2023-05-28 · Zhengyan Zhang, Zhiyuan Zeng, Yankai Lin, Chaojun Xiao 외

This work examines the presence of modularity in pre-trained Transformers, a feature commonly found in human brains and thought to be vital for general intelligence. In analogy to human brains, we consider two main chara…

Mixture-of-Experts

No Clustering, No Routing: How Transformers Actually Process Rare Tokens

2025-08-30 · Jing Liu arxiv

Large language models struggle with rare token prediction, yet the mechanisms driving their specialization remain unclear. Prior work identified specialized ``plateau'' neurons for rare tokens following distinctive three…

Neuron Specialization: Leveraging intrinsic task modularity for multilingual machine translation

2024-04-17 · Shaomu Tan, Di wu, Christof Monz

Training a unified multilingual model promotes knowledge transfer but inevitably introduces negative interference. Language-specific modeling methods show promise in reducing interference. However, they often rely on heu…

Cross-Lingual TransferMachine TranslationTransfer LearningTranslation

Distributed Specialization: Rare-Token Neurons in Large Language Models

2025-09-25 · Jing Liu, Haozheng Wang, Yueheng Li arxiv

Large language models (LLMs) struggle with representing and generating rare tokens despite their importance in specialized domains. We investigate whether LLMs develop internal specialization mechanisms through discrete …

Computational Efficiency

Dynamics of specialization in neural modules under resource constraints

2021-06-04 · Gabriel Béna, Dan F. M. Goodman

It has long been believed that the brain is highly modular both in terms of structure and function, although recent evidence has led some to question the extent of both types of modularity. We used artificial neural netw…

BIG-bench Machine LearningOpen-Ended Question Answering