Sharing Matters: Analysing Neurons Across Languages and Tasks in LLMs
<|reference_start|>Sharing Matters: Analysing Neurons Across Languages and Tasks in LLMs: Large language models (LLMs) have revolutionized the field of natural language processing (NLP), and recent studies have aimed to understand their underlying mechanisms. However, most of this research is conducted within a monolingual setting, primarily focusing on English. Few studies attempt to explore the internal workings of LLMs in multilingual settings. In this study, we aim to fill the research gap by examining how neuron activation is shared across tasks and languages. We classify neurons into four distinct categories based on their responses to a specific input across different languages:all-shared, partial-shared, specific, and non-activated. This categorization is combined with a study of neuron attribution, i.e. the importance of a neuron w.r.t an output. Our analysis reveals the following insights: (i) the patterns of neuron sharing are significantly affected by the characteristics of tasks and examples; (ii) neuron sharing does not fully correspond with language similarity; (iii) shared neurons play a vital role in generating responses, especially those shared across all languages. These findings shed light on the internal workings of multilingual LLMs and pave the way to the future research. We will release the code to foster research in this area.<|reference_end|>
@article{wang2024sharing,
    title={Sharing Matters: Analysing Neurons Across Languages and Tasks in LLMs},
    author={Weixuan Wang, Barry Haddow, Minghao Wu, Wei Peng, Alexandra Birch},
    journal={arXiv preprint arXiv:2406.09265},
    year={2024},
    archivePrefix={arXiv},
    eprint={2406.09265},
    primaryClass={cs.CL}
}