Temporal structure of natural language processing in the human brain corresponds to layered hierarchy of large language models

Ariel Goldstein, Eric Ham, Mariano Schain, Samuel A. Nastase, Bobbi Aubrey, Zaid Zada, Avigail Grinstein-Dabush, Harshvardhan Gazula, Amir Feder, Werner Doyle, Sasha Devore, Patricia Dugan, Daniel Friedman, Michael P. Brenner, Avinatan Hassidim, Yossi Matias, Orrin Devinsky, Noam Siegelman, Adeen Flinker, Omer Levy, Roi Reichart, Uri HassonNature Communications 2025

Abstract

Large Language Models (LLMs) offer a framework for understanding language processing in the human brain. Unlike traditional models, LLMs represent words and context through layered numerical embeddings. Here, we demonstrate that LLMs' layer hierarchy aligns with the temporal dynamics of language comprehension in the brain. Using electrocorticography (ECoG) data from participants listening to a 30-minute narrative, we show that deeper LLM layers correspond to later brain activity, particularly in Broca's area and other language-related regions. We extract contextual embeddings from GPT-2 XL and Llama-2 and use linear models to predict neural responses across time. Our results reveal a strong correlation between model depth and the brain's temporal receptive window during comprehension. We also compare LLM-based predictions with symbolic approaches, highlighting the advantages of deep learning models in capturing brain dynamics. We release our aligned neural and linguistic dataset as a public benchmark to test competing theories of language processing.

Introduction

While Large Language Models (LLMs) have become remarkably proficient at human-like text generation, the degree to which their internal processing resembles biological neural activity remains a central question in computational neuroscience. Previous research established that LLM embeddings correlate with brain activity, but these studies often focused on static snapshots or the final layers of a model.

This study addresses the temporal dimension: Does the sequential processing that happens across the layers of a transformer (from input to deep layers) correspond to the way the human brain transforms speech into meaning over time? Traditional psycholinguistics relies on symbolic, rule-based trees (phonemes $\rightarrow$ syntax $\rightarrow$ semantics), whereas LLMs use continuous numerical vectors. This paper tests whether the "depth" of an LLM is a biologically plausible proxy for the brain's temporal receptive window.

Methods and Materials

The researchers combined high-resolution neural data with state-of-the-art NLP models to track language processing millisecond-by-millisecond.

Neural Recording and Stimulus

The study utilized electrocorticography (ECoG) from nine epilepsy patients, providing the high spatiotemporal resolution necessary to track neural activity as participants listened to a 30-minute NPR podcast ("Monkey in the Middle"), consisting of approximately 5,000 words. Analysis focused on high-gamma band signals from electrodes in four key regions: the middle Superior Temporal Gyrus (mSTG), anterior STG (aSTG), Inferior Frontal Gyrus (IFG/Broca’s area), and the Temporal Pole (TP).

LLM Integration and Encoding Models

Contextual embeddings were extracted from every layer of GPT-2 XL (48 layers) and Llama-2 (32 layers). The team built linear regression models to predict neural responses at different "lags" (time offsets from word onset) using the embeddings from each specific layer.

Overview of the encoding estimation pipeline mapping GPT-2 layers to neural signals.

These LLM-based predictions were compared against a "classical" symbolic hierarchy consisting of manually curated features for phonemes, morphemes, syntax, and semantics. To facilitate further research, the authors released their aligned neural and linguistic dataset as a public benchmark called GPTology.

Key Insights

Layer-to-Time Mapping

The most striking discovery is the strong correlation ($r \approx 0.85$ to $0.93$) between an LLM's layer index and the time lag of peak brain prediction. Early layers predict early brain activity, while deep layers predict late brain activity. This suggests a shared computational logic for hierarchical language comprehension between artificial and biological networks.

Temporal shift in encoding model performance across LLM layers, showing deeper layers peaking at later time points.

Regional Specificity and Non-linearity

This temporal hierarchy is prominent in high-level language hubs like the IFG and Temporal Pole but absent in the mSTG (early auditory processing). In the Temporal Pole, there was a massive temporal spread: layer 1 predicted activity at ~100ms before word onset (likely due to context), while layer 48 peaked at ~400ms after word onset. Furthermore, middle layers generally provided the best overall fit for neural signals, suggesting that the most "brain-like" representations occur during the intermediate stages of the model's transformation process.

Conclusion

LLMs significantly outperformed classical symbolic approaches in predicting the temporal dynamics of the brain, suggesting that continuous vector representations better capture the fluid nature of human comprehension. While the results held true across different architectures (GPT-2 and Llama-2), limitations remain. Transformers process information in parallel across layers, whereas the human brain is inherently recurrent. Future work should explore Recurrent Neural Networks (RNNs) or models trained on "human-scale" data to further refine our understanding of this biological-artificial alignment.

Summary updated

BibTeX
@inproceedings{goldstein2025temporal,
  author = {Ariel Goldstein and Eric Ham and Mariano Schain and Samuel A. Nastase and Bobbi Aubrey and Zaid Zada and Avigail Grinstein-Dabush and Harshvardhan Gazula and Amir Feder and Werner Doyle and Sasha Devore and Patricia Dugan and Daniel Friedman and Michael P. Brenner and Avinatan Hassidim and Yossi Matias and Orrin Devinsky and Noam Siegelman and Adeen Flinker and Omer Levy and Roi Reichart and Uri Hasson},
  title = {{Temporal structure of natural language processing in the human brain corresponds to layered hierarchy of large language models}},
  booktitle = {Nature Communications},
  year = {2025},
  doi = {10.1038/s41467-025-65518-0},
}
Figure