Introduction
While Large Language Models (LLMs) and the human brain both demonstrate remarkable proficiency in language processing, the precise temporal alignment between their internal mechanisms remains poorly understood. Previous research using fMRI has established that LLM internal states can predict brain activity, yet the slow hemodynamic response of fMRI fails to capture the millisecond-level dynamics of speech. Conversely, traditional EEG studies have often relied on simplistic metrics like word frequency or surprisal.
This study addresses this gap by mapping high-dimensional Transformer representations from GPT-2 to high-temporal-resolution EEG data. By "clocking" these processes, the researchers aim to determine how different layers of an AI model correspond to specific stages of human linguistic computation, from raw lexical recognition to complex syntactic re-analysis.
Methodology
Temporal Response Function (TRF) Modeling
The researchers employed a Temporal Response Function (TRF) model, a time-lagged linear regression designed to predict EEG signals from stimulus features across delays ranging from -100ms to 1000ms. This approach allows for the identification of specific time windows where the brain is most responsive to particular linguistic features.
Feature Engineering and Layer Comparison
To probe the depth of processing, the study compared two distinct representations:
- Embedding Layer (Layer 0): Captures raw lexical information.
- Deep Layer (Layer 8): Known for high brain-predictivity, likely encoding contextual and compositional information.
- Syntactic Isolation: Linear Discriminant Analysis (LDA) was used to compress 768-dimensional GPT-2 vectors into a space specifically encoding Part-of-Speech (POS) tags, allowing the researchers to isolate syntactic effects from general semantic noise.
Dataset and Experimental Setup
The study utilized EEG recordings from 33 subjects listening to the first chapter of Alice’s Adventures in Wonderland. GPT-2 generated corresponding word representations for the same text. The model used L2 (Ridge) regularization with 5-fold cross-validation to manage the inherent noise in non-invasive neural recordings.
Results and Discussion
Spatial and Categorical Alignment
The model's predictions were most accurate in the central and left-temporal regions of the scalp (Fig 1C), aligning with canonical language processing areas in the brain. Furthermore, the LDA visualization (Fig 1D) demonstrated that GPT-2 naturally clusters content words (nouns, verbs) separately from function words (conjunctions, pronouns), mirroring human grammatical categories.
Temporal Dynamics and the "P600" Signature
A key finding was the differentiation between layers in the temporal domain. The deep layer (Layer 8) produced a TRF with a significant positive effect after 600ms (Fig 1B). In human psycholinguistics, this "P600" event-related potential is a signature of syntactic processing and the re-analysis of complex structures. The absence of this signature in the Embedding layer (Layer 0) suggests that deeper AI layers are genuinely modeling higher-order linguistic composition.
Statistical Significance
The correlation between original and reconstructed EEG signals reached approximately 0.03 ($p \ll 10^{-5}$). While numerically small, this result is highly significant and standard for non-invasive EEG decoding of continuous, naturalistic speech. It confirms that different Transformer layers map to distinct stages of neural processing: the embedding layer associates with late-stage negativities, while deep layers capture both early negativity (200ms) and late positivity (600ms) associated with meaning-making.
Limitations and Future Work
The authors note that the current linear TRF mapping may not capture the full complexity of the AI-brain relationship, which is likely non-linear. Future research will focus on incorporating non-linear architectures and expanding the feature set to include explicit semantic maps. Additionally, moving beyond a single literary text to larger, more diverse datasets will be crucial for generalizing these findings across different linguistic genres and complexities.
Summary updated