Coupling Artificial Neurons in BERT and Biological Neurons in the Human Brain

Xu Liu, Mengyue Zhou, Gaosheng Shi, Yu Du, Lin Zhao, Zihao Wu, David Liu, Tianming Liu, Xintao Hu · DOI

Introduction

The rise of Large Language Models (LLMs) like BERT has revolutionized natural language processing, yet the internal representational logic of these models remains largely opaque. A central question in computational neuroscience and AI is the extent to which these artificial systems mirror the biological processes of the human brain. While previous research has attempted to correlate model layers with brain activity, these efforts often lacked the resolution necessary to draw meaningful parallels. This paper explores a fine-grained framework designed to "sync" the internal workings of BERT with functional networks in the human brain, mapping individual artificial neurons to large-scale biological networks.

The Granularity Problem

Historically, the alignment between NLP models and human cognition has faced two primary "granularity" challenges:

  1. Artificial Coarseness: Most comparative studies treat entire layers or large modules of a model as a single unit. This approach ignores the specific, nuanced operations occurring within individual attention heads and hidden dimensions.
  2. Biological Isolation: Brain activity is frequently measured at the level of individual voxels (tiny 3D pixels) or isolated anatomical regions. However, the human brain processes language through integrated, coordinated activity across distributed Functional Brain Networks (FBNs).

To address these issues, this research proposes a high-resolution mapping between specific Artificial Neurons (ANs) and integrated Biological Networks (BNs).

Methodology

The authors developed a novel coupling framework to bridge the gap between artificial and biological architectures.

Defining Artificial Neurons (ANs)

Rather than analyzing a whole layer, the study defines an AN as a single hidden dimension within the Multi-Head Self-Attention (MSA) module. An AN's "activation" is quantified by calculating the element-wise product of its queries and keys over the duration of a linguistic input, capturing the temporal dynamics of the model's attention mechanisms.

Defining Biological Neurons (BNs)

On the biological side, the researchers moved beyond voxel-level analysis to identify FBNs. Utilizing a "Volumetric Sparse Deep Belief Network" (VS-DBN), they extracted 128 distinct FBNs from fMRI data. These networks represent coordinated neural activity across various brain regions, providing a more holistic view of cognitive processing than isolated regions of interest.

The Coupling Mechanism

The link between the two systems is established through synchronization. By measuring the Pearson Correlation Coefficient (PCC) between the temporal activation of an AN (as BERT processes a text) and the temporal activation of a BN (as a human subject listens to the same narrative), the researchers can quantify the degree of functional alignment.

Experimental Setup and Datasets

The study utilized the "Narratives" fMRI dataset, which includes fMRI scans from 75 subjects and time-stamped word-level transcripts. Two specific narratives were used:

  • "Pie man": A 7-minute journalistic story.
  • "Shapes": A narrative involving geometric shapes designed to evoke social intentionality.

This setup allowed for precise temporal alignment between the text BERT "read" and the audio the human subjects heard, facilitating a direct comparison of activation patterns.

Key Insights and Results

The framework revealed several significant findings regarding the relationship between artificial and biological language processing:

Layer-wise Alignment

A clear trend emerged: synchronization between BERT and the human brain increases as information moves from the input layers toward the deeper layers (specifically layers 10-12). This suggests that the high-level semantic abstractions formed in BERT’s final layers are more congruent with how the human brain integrates complex linguistic information and memory.

Functional Specialization

The study found that specific ANs "anchor" to well-known biological language hubs. For instance, numerous ANs showed high synchronization with BN #89, a network encompassing Broca’s area (associated with syntax and production) and the Visual Word Form Area. Furthermore, linguistic analysis using Part-of-Speech (POS) tags indicated that these synced ANs were often specialized for specific relationships, such as Verb-Noun or Determiner-Noun interactions.

Contextual Sensitivity

The recruitment of brain networks varied by story type. The social narrative of "Pie man" anchored more heavily to networks involved in memory and social cognition, whereas the "Shapes" story recruited more domain-general networks. This indicates that the coupling framework is sensitive to the thematic content of the processing task.

Quantitative Success

The results were statistically robust, with over 98% of the artificial neurons in BERT showing significant synchronization with biological networks. The maximum correlation (PCC) averaged approximately 0.44, which is considered a strong finding given the inherent noise in fMRI data. The percentage of "weakly coupled" neurons dropped significantly in deeper layers, reinforcing the idea that BERT's top-level representations are the most brain-like.

Limitations and Future Directions

While the study provides a powerful framework for alignment, several limitations remain. BERT is a bidirectional model, processing text in blocks, whereas the human brain processes language unidirectionally in real-time. Future research could apply this methodology to causal models like GPT to better mirror human temporal processing. Additionally, the current study used the mean of element-wise products for AN activation; exploring min/max activations might preserve more fine-grained information. Finally, investigating how fine-tuning BERT on specific tasks affects its "brain-likeness" remains an open area for exploration.

Summary updated

BibTeX
@inproceedings{liu2023coupling,
  author = {Xu Liu and Mengyue Zhou and Gaosheng Shi and Yu Du and Lin Zhao and Zihao Wu and David Liu and Tianming Liu and Xintao Hu},
  title = {{Coupling Artificial Neurons in BERT and Biological Neurons in the Human Brain}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.26068},
}
Figure