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

Borrowing a page from cognitive neuroscience, this paper applies Independent Component Analysis (ICA) to Large Language Models (LLMs) to discover distributed "functional networks" of co-activating artificial neurons. Much like the human brain, LLMs rely on these sparse, recurring circuits to process information; inhibiting them severely degrades model capabilities, while subtly amplifying them can enhance performance on specific tasks.

What Problem Does This Paper Address?

Despite the remarkable capabilities of LLMs, they remain largely "black boxes." The field of mechanistic interpretability attempts to peer inside, but most existing efforts focus heavily on identifying individual, isolated units (e.g., "knowledge neurons" or "sentiment neurons").

However, biological brains don't work this way. Human cognitive functions emerge from intricate, coordinated interactions across Functional Brain Networks (FBNs). By focusing solely on single neurons, current interpretability methods miss the bigger picture of how distributed circuits collaborate. This paper addresses this gap by introducing a brain-inspired framework to identify and manipulate collective neuron ensembles within LLMs.

Methods

The authors draw a direct analogy between functional magnetic resonance imaging (fMRI) voxel signals and the activation outputs of artificial neurons. Specifically, they capture the output signals from the final multi-layer perceptron (MLP) layer of each transformer block during inference.

To disentangle these signals, they employ Independent Component Analysis (ICA)—specifically Canonical ICA (CanICA), a standard tool in neuroimaging.

Figure 1: The framework of brain inspired exploration of functional networks within LLMs. (a) Identifying functional brain networks from whole-brain fMRI signals via ICA. (b) Identifying functional networks from responses of artificial neurons within LLMs.

The pipeline consists of:

  1. Signal Collection: Gathering neuron activation states across different token inputs.
  2. Decomposition: Using group-level ICA to find stable, statistically independent "functional network templates" that consistently co-activate.
  3. Network Editing: Validating the causal importance of these networks by either inhibiting them (setting their activations to zero) or amplifying them (multiplying their activations by a subtle scaling factor, typically 1.02) during inference.

Datasets

The authors used a diverse mix of datasets for both network extraction and downstream evaluation:

  • Extraction Stimuli: AGNEWS (news classification), Wikitext2 (encyclopedia entries), MathQA (mathematical texts), and CodeNet (code snippets).
  • Evaluation Benchmarks: Standard GLUE tasks (including SST-2, CoLA, MRPC, RTE, MNLI, QNLI, QQP, WNLI) and SQuAD for reading comprehension.

Key Insights and Ideas

  • Brain-Like Sparsity: The discovered functional networks are highly localized and sparse, typically involving only 0.1% to 2% of the model's total neurons. This mirrors the highly selective activation patterns seen in biological brains.
  • Cross-Task Consistency: Highly similar functional networks emerged across completely different datasets (e.g., math vs. code). This suggests LLMs possess core, task-invariant circuits analogous to the brain's "default mode network."
  • Ensembles Over Individuals: The spatial overlap between the important neurons found via ICA and those found by traditional single-neuron localization methods was incredibly low (an Intersection over Union of just 0.022). Yet, manipulating the ICA-derived network ensembles yielded significantly stronger behavioral changes, proving that coordination matters more than individual importance.

Key Results

  • Catastrophic Targeted Lesions: Inhibiting just a few dozen key neurons within a specific functional network caused massive performance drops. For instance, on the SST-2 sentiment dataset, disabling a single critical network plummeted Qwen2.5-7B's accuracy from 0.9358 down to 0.0401. Conversely, randomly pruning up to 15% of the model's total neurons caused virtually no performance decline.
Figure 2: Perplexity results for Qwen2.5-7B-Instruct after inhibiting the neurons corresponding to each of 10 functional networks obtained from SST-2 dataset, respectively.
  • Performance Boosting via Amplification: Multiplicative scaling (by a factor of 1.02) of the top 5% of neurons within a functional network consistently improved zero-shot performance across multiple tasks for ChatGLM3-6B-base, outperforming baseline single-neuron localization techniques.
Figure 3: Zero-shot results for ChatGLM3-6B-base after amplifying the neurons corresponding to a functional network obtained from SST-2 dataset.

Limitations and Future Work

While compelling, the study has a few notable limitations:

  • MLP-Only Focus: The investigation was strictly limited to the final MLP layers of the transformer blocks, completely omitting attention mechanisms and embedding layers where other functional networks likely reside.
  • Algorithmic Constraints: The framework relies primarily on linear ICA variants. The authors note that exploring non-linear decomposition methods, dictionary learning, or sparse autoencoders (SAEs) could reveal even cleaner, more interpreteness-friendly sub-circuits.

The authors suggest that these functional networks could eventually serve as a principled foundation for more effective model compression (pruning non-network neurons) or creating unique "model fingerprints" to protect intellectual property.

Summary updated

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.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SST-2Qwen2.5-7B-Instruct, Normal (without inhibiting)Model performance0.9358Sentiment Classification · params=7B
Source quote
L481: SST-2 │ 0.9358 │ 0.9094 │ 0.0000
SST-2Qwen2.5-7B-Instruct, 10 functional networks inhibitedModel performance0.0000Sentiment Classification · params=7B
Source quote
L481: SST-2 │ 0.9358 │ 0.9094 │ 0.0000
BibTeX
@misc{liu2025brain,
  author = {Yiheng Liu and Zhengliang Liu and Zihao Wu and Junhao Ning and Haiyang Sun and Sichen Xia and Yang Yang and Xiaohui Gao and Ning Qiang and Bao Ge and Tianming Liu and Junwei Han and Xintao Hu},
  title = {{Brain-Inspired Exploration of Functional Networks and Key Neurons in Large Language Models}},
  year = {2025},
  eprint = {2502.20408},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.20408},
}
Figure