[Paper Review] Contextual Feature Extraction Hierarchies Converge in Large Language Models and the Brain
The study analyzes 12 open-source ~7B-parameter LLMs, showing that higher benchmark performance correlates with greater brain-like predictive power and more brain-aligned hierarchical feature extraction, especially when long contextual information is available.
Recent advancements in artificial intelligence have sparked interest in the parallels between large language models (LLMs) and human neural processing, particularly in language comprehension. While prior research has established similarities in the representation of LLMs and the brain, the underlying computational principles that cause this convergence, especially in the context of evolving LLMs, remain elusive. Here, we examined a diverse selection of high-performance LLMs with similar parameter sizes to investigate the factors contributing to their alignment with the brain's language processing mechanisms. We find that as LLMs achieve higher performance on benchmark tasks, they not only become more brain-like as measured by higher performance when predicting neural responses from LLM embeddings, but also their hierarchical feature extraction pathways map more closely onto the brain's while using fewer layers to do the same encoding. We also compare the feature extraction pathways of the LLMs to each other and identify new ways in which high-performing models have converged toward similar hierarchical processing mechanisms. Finally, we show the importance of contextual information in improving model performance and brain similarity. Our findings reveal the converging aspects of language processing in the brain and LLMs and offer new directions for developing models that align more closely with human cognitive processing.
Motivation & Objective
- Investigate what computational principles drive the brain–LLM alignment during language processing.
- Assess how LLM performance relates to neural predictability from LLM embeddings across layers and brain regions.
- Examine hierarchical processing alignment between LLMs and the brain and how contextual information affects this alignment.
- Compare feature extraction pathways across different LLMs to identify convergence toward brain-like processing.
Proposed method
- Record intracranial EEG from eight patients while they listened to speech.
- Feed the same speech to 12 open-source LLMs (~7B params) and extract embeddings from all 32 layers.
- Use PCA to reduce embeddings to 500 components and ridge regression to predict neural responses from layer embeddings.
- Compute brain similarity as prediction correlation between neural responses and LLM embeddings across electrodes.
- Assess layer-level brain alignment using distance from pmHG as a hierarchical brain proxy.
- Evaluate contextual effects by restricting attention to varying context windows (1 token to 100 tokens) and measuring contextual content via CKA differences.
Experimental results
Research questions
- RQ1How does LLM benchmark performance relate to brain predictability of neural responses from LLM embeddings?
- RQ2Do better LLMs show more brain-like hierarchical feature extraction, and how does this relate to anatomical brain regions?
- RQ3How does the layer-wise progression of feature extraction in LLMs align with the brain's language processing hierarchy?
- RQ4What is the role of contextual information in enhancing brain alignment and model performance?
- RQ5Are there inter-model differences in hierarchical processing pathways that correlate with overall model performance?
Key findings
- Higher-performing LLMs achieve higher peak brain similarity in predictions of neural responses (Pearson r = 0.92, p = 2.24×10^-5).
- Better models peak at earlier layers in brain similarity than worse models (Pearson r = -0.81, p = 0.0013).
- Brain hierarchy alignment between LLMs and the brain correlates with LLM performance (r = 0.79, p = 0.0021).
- Top-5 models show high diagonal-like CKA similarity and converge to similar layer-wise feature extraction; worse models show more delayed features.
- Contextual information is crucial; long context windows (50+ tokens) significantly improve brain alignment and correlates with benchmark performance (Spearman r = 0.66, p = 0.020; r = 0.84, p = 0.0006 for brain similarity).
- Contextual content (full context vs 1-token) strongly predicts both model performance and brain similarity (r = 0.66 and r = 0.84, respectively).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.