Brain-Inspired Exploration of Functional Networks and Key Neurons in Large Language Models
Yiheng Liu, Zhengliang Liu, Zihao Wu, Junhao Ning, Haiyang Sun, Sichen Xia, Yang Yang, Xiaohui Gao, Ning Qiang, Bao Ge, Tianming Liu, Junwei Han, Xintao Hu
TL;DR
This work addresses mechanistic interpretability of large language models by adopting a brain-inspired perspective that seeks functional networks composed of neuron ensembles. By treating MLP activations as fMRI-like signals and applying Independent Component Analysis, the authors identify stable, sparse functional networks that recur across inputs and tasks. Targeted inhibition of these networks degrades performance and language modeling ability, while carefully calibrated amplification can improve task-specific or overall performance, supporting a distributed, ensemble-based computation paradigm. The study highlights cross-task generalization, offers a potential avenue for principled pruning and model fingerprinting, and demonstrates the value of cross-disciplinary methods for understanding LLM internals; code is released at the provided repository.
Abstract
In recent years, the rapid advancement of large language models (LLMs) in natural language processing has sparked significant interest among researchers to understand their mechanisms and functional characteristics. Although prior studies have attempted to explain LLM functionalities by identifying and interpreting specific neurons, these efforts mostly focus on individual neuron contributions, neglecting the fact that human brain functions are realized through intricate interaction networks. Inspired by research on functional brain networks (FBNs) in the field of neuroscience, we utilize similar methodologies estabilished in FBN analysis to explore the "functional networks" within LLMs in this study. Experimental results highlight that, much like the human brain, LLMs exhibit certain functional networks that recur frequently during their operation. Further investigation reveals that these functional networks are indispensable for LLM performance. Inhibiting key functional networks severely impairs the model's capabilities. Conversely, amplifying the activity of neurons within these networks can enhance either the model's overall performance or its performance on specific tasks. This suggests that these functional networks are strongly associated with either specific tasks or the overall performance of the LLM. Code is available at https://github.com/WhatAboutMyStar/LLM_ACTIVATION.
