Skip to main content
bioRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search
New Results

Reconstructing the cascade of language processing in the brain using the internal computations of a transformer-based language model

View ORCID ProfileSreejan Kumar, View ORCID ProfileTheodore R. Sumers, View ORCID ProfileTakateru Yamakoshi, View ORCID ProfileAriel Goldstein, View ORCID ProfileUri Hasson, View ORCID ProfileKenneth A. Norman, View ORCID ProfileThomas L. Griffiths, View ORCID ProfileRobert D. Hawkins, View ORCID ProfileSamuel A. Nastase
doi: https://doi.org/10.1101/2022.06.08.495348
Sreejan Kumar
1Princeton Neuroscience Institute, Princeton University, Princeton, NJ, 08540, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Sreejan Kumar
  • For correspondence: sreejank@princeton.edu sumers@princeton.edu snastase@princeton.edu
Theodore R. Sumers
2Department of Computer Science, Princeton University, Princeton, NJ 08540, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Theodore R. Sumers
  • For correspondence: sreejank@princeton.edu sumers@princeton.edu snastase@princeton.edu
Takateru Yamakoshi
3Faculty of Medicine, The University of Tokyo, Bunkyo-ku, Tokyo 113-0033, Japan
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Takateru Yamakoshi
Ariel Goldstein
1Princeton Neuroscience Institute, Princeton University, Princeton, NJ, 08540, USA
4Department of Psychology, Princeton University, Princeton, NJ 08540, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Ariel Goldstein
Uri Hasson
1Princeton Neuroscience Institute, Princeton University, Princeton, NJ, 08540, USA
4Department of Psychology, Princeton University, Princeton, NJ 08540, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Uri Hasson
Kenneth A. Norman
1Princeton Neuroscience Institute, Princeton University, Princeton, NJ, 08540, USA
4Department of Psychology, Princeton University, Princeton, NJ 08540, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Kenneth A. Norman
Thomas L. Griffiths
2Department of Computer Science, Princeton University, Princeton, NJ 08540, USA
4Department of Psychology, Princeton University, Princeton, NJ 08540, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Thomas L. Griffiths
Robert D. Hawkins
1Princeton Neuroscience Institute, Princeton University, Princeton, NJ, 08540, USA
4Department of Psychology, Princeton University, Princeton, NJ 08540, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Robert D. Hawkins
Samuel A. Nastase
1Princeton Neuroscience Institute, Princeton University, Princeton, NJ, 08540, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Samuel A. Nastase
  • For correspondence: sreejank@princeton.edu sumers@princeton.edu snastase@princeton.edu
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

Piecing together the meaning of a narrative requires understanding not only the individual words but also the intricate relationships between them. How does the brain construct this kind of rich, contextual meaning from natural language? Recently, a new class of artificial neural networks—based on the Transformer architecture—has revolutionized the field of language modeling. Transformers integrate information across words via multiple layers of structured circuit computations, forming increasingly contextualized representations of linguistic content. In this paper, we deconstruct these circuit computations and analyze the associated “transformations” (alongside the more commonly studied “embeddings”) at each layer to provide a fine-grained window onto linguistic computations in the human brain. Using functional MRI data acquired while participants listened to naturalistic spoken stories, we find that these transformations capture a hierarchy of linguistic computations across cortex, with transformations at later layers in the model mapping onto higher-level language areas in the brain. We then decompose these transformations into individual, functionally-specialized “attention heads” and demonstrate that the emergent syntactic computations performed by individual heads correlate with predictions of brain activity in specific cortical regions. These heads fall along gradients corresponding to different layers, contextual distances, and syntactic dependencies in a low-dimensional cortical space. Our findings provide a new basis for using the internal structure of large language models to better capture the cascade of cortical computations that support natural language comprehension.

Competing Interest Statement

The authors have declared no competing interest.

Footnotes

  • https://github.com/tsumers/bert-brains

  • https://doi.org/10.1038/s41597-021-01033-3

  • 2 Albeit overspecialized for a particular downstream training objective; i.e. the cloze task for BERT.

  • 3 We excluded the special [SEP] token.

Copyright 
The copyright holder for this preprint is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY 4.0 International license.
Back to top
PreviousNext
Posted June 09, 2022.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about bioRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Reconstructing the cascade of language processing in the brain using the internal computations of a transformer-based language model
(Your Name) has forwarded a page to you from bioRxiv
(Your Name) thought you would like to see this page from the bioRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Reconstructing the cascade of language processing in the brain using the internal computations of a transformer-based language model
Sreejan Kumar, Theodore R. Sumers, Takateru Yamakoshi, Ariel Goldstein, Uri Hasson, Kenneth A. Norman, Thomas L. Griffiths, Robert D. Hawkins, Samuel A. Nastase
bioRxiv 2022.06.08.495348; doi: https://doi.org/10.1101/2022.06.08.495348
Reddit logo Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
Reconstructing the cascade of language processing in the brain using the internal computations of a transformer-based language model
Sreejan Kumar, Theodore R. Sumers, Takateru Yamakoshi, Ariel Goldstein, Uri Hasson, Kenneth A. Norman, Thomas L. Griffiths, Robert D. Hawkins, Samuel A. Nastase
bioRxiv 2022.06.08.495348; doi: https://doi.org/10.1101/2022.06.08.495348

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Neuroscience
Subject Areas
All Articles
  • Animal Behavior and Cognition (4369)
  • Biochemistry (9546)
  • Bioengineering (7068)
  • Bioinformatics (24768)
  • Biophysics (12559)
  • Cancer Biology (9924)
  • Cell Biology (14297)
  • Clinical Trials (138)
  • Developmental Biology (7930)
  • Ecology (12074)
  • Epidemiology (2067)
  • Evolutionary Biology (15954)
  • Genetics (10904)
  • Genomics (14706)
  • Immunology (9844)
  • Microbiology (23582)
  • Molecular Biology (9454)
  • Neuroscience (50691)
  • Paleontology (369)
  • Pathology (1535)
  • Pharmacology and Toxicology (2674)
  • Physiology (3997)
  • Plant Biology (8639)
  • Scientific Communication and Education (1505)
  • Synthetic Biology (2388)
  • Systems Biology (6415)
  • Zoology (1344)