Do Large Language Models Think Like the Brain? Sentence-Level Evidences from Layer-Wise Embeddings and fMRI

Lei Yu, X. Ge, Yi Zhang, Yiming Yang, Bolei MaarXiv 2025 · DOI

Abstract

Understanding whether large language models (LLMs) and the human brain converge on similar computational principles remains a fundamental and important question in cognitive neuroscience and AI. Do the brain-like patterns observed in LLMs emerge simply from scaling, or do they reflect deeper alignment with the architecture of human language processing? This study focuses on the sentence-level neural mechanisms of language models, systematically investigating how layer-wise representations in LLMs align with the dynamic neural responses during human sentence comprehension. By comparing hierarchical embeddings from 14 publicly available LLMs with fMRI data collected from participants, who were exposed to a naturalistic narrative story, we constructed sentence-level neural prediction models to identify the model layers most significantly correlated with brain region activations. Results show that improvements in model performance drive the evolution of representational architectures toward brain-like hierarchies, particularly achieving stronger functional and anatomical correspondence at higher semantic abstraction levels. These findings advance our understanding of the computational parallels between LLMs and the human brain, highlighting the potential of LLMs as models for human language processing.

Introduction

As Large Language Models (LLMs) achieve unprecedented proficiency in language generation, researchers are increasingly asking whether these artificial systems mirror the biological processes of the human brain. While previous studies have noted correlations between AI representations and neural activity, the underlying drivers of this alignment—whether they stem from model scale, training objectives, or architectural depth—remain unclear. This paper investigates these connections by mapping the internal states of 14 LLMs to fMRI data from humans listening to a naturalistic narrative.

Methodology

The study employed a multi-stage pipeline to compare AI and human language processing. Researchers utilized fMRI data from 34 native Mandarin speakers listening to a 99-minute audiobook of The Little Prince. To isolate precise, sentence-level brain responses, they applied a General Linear Model (GLM) with a Least-Squares Separate (LS-S) approach.

Simultaneously, the same sentences were processed by 14 LLMs (6.7B to 9B parameters), including base and instruction-tuned pairs from families like Llama-3, Gemma-2, and Mistral. Embeddings were extracted from every layer using a sliding window approach. These embeddings served as features for voxel-wise Ridge Regression encoding models to predict fMRI signals in specific Regions of Interest (ROIs).

Overview of the experimental pipeline, including fMRI preprocessing, GLM modeling, and the ridge regression analysis for brain-model alignment.

Results and Discussion

The "Middle-Layer Peak"

A primary finding is the "Middle-Layer Peak": intermediate layers of LLMs consistently show the strongest correlation with human brain activity across various ROIs. While initial layers handle lower-level features and final layers are optimized for specific output tasks, the middle layers appear to capture the biologically grounded linguistic representations necessary for semantic integration.

Layer-wise correlation results across 12 ROIs, illustrating the hierarchical pattern where intermediate layers typically reach peak alignment with brain activity.

Instruction Tuning and Semantic Alignment

Instruction tuning was found to be a significant driver of biological alignment. Fine-tuning models to follow human instructions shifts their internal representations to more closely resemble human neural patterns. In direct comparisons, instruction-tuned variants consistently showed statistically significant improvements in both task performance and brain activation correlation.

Furthermore, the study identified a strong positive correlation ($r = 0.601, p = 0.030$) between a model's semantic comprehension (measured via a novel Cross-lingual Semantic Alignment Accuracy metric) and its neural similarity to the human brain. The models also mirrored the lateralization of the human brain, aligning with the left hemisphere for core language tasks and the right hemisphere for higher-level cognitive functions.

Conclusion

This research demonstrates that as LLMs are optimized for better semantic comprehension and instruction following, their internal architectures naturally converge toward brain-like hierarchies. These findings suggest that LLMs are not just powerful tools but also viable models for studying human language processing. Future work may explore whether explicitly targeting brain alignment during training can lead to even more cognitively plausible AI architectures.

Summary updated

BibTeX
@misc{yu2025do,
  author = {Lei Yu and X. Ge and Yi Zhang and Yiming Yang and Bolei Ma},
  title = {{Do Large Language Models Think Like the Brain? Sentence-Level Evidences from Layer-Wise Embeddings and fMRI}},
  year = {2025},
  eprint = {2505.22563},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.22563},
}
Figure