Contextual integration is fundamental to human language comprehension. Language models are a powerful tool for studying how contextual information influences brain activity. In this work, we analyze the brain alignment of three types of language models, which vary in how they integrate contextual information. Despite differences among models, we find minimal variations in their brain alignment. In line with previous research, middle layers consistently show the highest correspondence with brain activity. Interestingly, this alignment appears to strengthen with longer context inputs, pointing to improved sensitivity to extended linguistic information. To better understand how contextual integration affects brain alignment, we analyze the roles of short- and long-range context using variance partitioning. Our findings highlight a functional distinction between layers, suggesting a trade-off between retaining local detail and integrating broader context. This interplay may explain the robust alignment of middle layers with brain responses.

Intermediate Layers of LLMs Align Best With the Brain by Balancing Short- and Long-Range Information / Proietti, Michela; Capobianco, Roberto; Toneva, Mariya. - (2025). (Intervento presentato al convegno Conference on Cognitive Computational Neuroscience tenutosi a Amsterdam).

Intermediate Layers of LLMs Align Best With the Brain by Balancing Short- and Long-Range Information

Michela Proietti
;
Roberto Capobianco;
2025

Abstract

Contextual integration is fundamental to human language comprehension. Language models are a powerful tool for studying how contextual information influences brain activity. In this work, we analyze the brain alignment of three types of language models, which vary in how they integrate contextual information. Despite differences among models, we find minimal variations in their brain alignment. In line with previous research, middle layers consistently show the highest correspondence with brain activity. Interestingly, this alignment appears to strengthen with longer context inputs, pointing to improved sensitivity to extended linguistic information. To better understand how contextual integration affects brain alignment, we analyze the roles of short- and long-range context using variance partitioning. Our findings highlight a functional distinction between layers, suggesting a trade-off between retaining local detail and integrating broader context. This interplay may explain the robust alignment of middle layers with brain responses.
2025
Conference on Cognitive Computational Neuroscience
transformers; state-space models; brain alignment; fMRI; variance partitioning
04 Pubblicazione in atti di convegno::04b Atto di convegno in volume
Intermediate Layers of LLMs Align Best With the Brain by Balancing Short- and Long-Range Information / Proietti, Michela; Capobianco, Roberto; Toneva, Mariya. - (2025). (Intervento presentato al convegno Conference on Cognitive Computational Neuroscience tenutosi a Amsterdam).
File allegati a questo prodotto
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/1742850
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact