OSCR

A Novel Approach to Map the Causal Impact of Brain Stimulation on Semantic Processing With Language Models.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches
  1. [1] § RESULTS › TMS Effects on Semantic Processing Are Still Present After Accounting for Word Length and Frequency ↔ plot01_gen_all_barplots.py, lines 1049–1104 · score 0.61 · semantic relatedness, sound feature, semantic priming, residualization, social
  2. [2] § MATERIALS AND METHODS › Models › Statistical significance testing, correction for multiple comparisons, and effect sizes ↔ utils/plot_utils.py, lines 57–70 · score 0.52 · cognitive neuroscience, literature, mid

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 1,558 lines · 78 KB · no license · 1 match

This file is not shown here: its repository has no license, so its authors keep all their rights to it. Your browser cannot show it from its source either: OSF does not let the page of another site read its files.

It can be read at the source: plot01_gen_all_barplots.py.

Overview

  1. Research Group Cognition and Plasticity, Max Planck Institute for Human Cognitive and Brain Sciences, Leipzig, Germany
  2. Cognitive and Biological Psychology, Wilhelm Wundt Institute for Psychology, Leipzig University, Leipzig, Germany
Journal: Neurobiology of language (Cambridge, Mass.), volume 7, article NOL.a.244
Dates: received 4 July 2025; accepted 5 February 2026; published online 5 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1162/nol.a.244 · PMID 42137738 · PMCID PMC13171204 · OpenAlex W7128715304
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: other (modality)
Methods: Connectivity, Statistics, Machine learning
Keywords: brain stimulation, causality, language models, semantics, semantic models, semantic similarity, surprisal, transcranial magnetic stimulation (TMS)
Topic: Transcranial Magnetic Stimulation Studies (Neurology, Neuroscience), according to OpenAlex
Funding: H2020 European Research Council (ERC-COG-2021-101043747); Deutsche Forschungsgemeinschaft (German Research Foundation) (HA 6314/4-2, HA 6314/10-1)
Citations: not cited yet (Europe PMC); 167 references in the paper

Abstract

Noninvasive brain stimulation studies on semantic cognition hold the promise of revealing the functional relevance of brain areas through causal intervention. A primary challenge, however, is that findings are often interpreted through binary distinctions between sets of stimuli (e.g., related/unrelated words, same/different semantic category). This approach ignores the analysis of individual words, which mirrors every day language use and is crucial for understanding semantic cognition. In this work, we used semantic similarity, as measured by a language model, to investigate how transcranial magnetic stimulation (TMS) effects on semantic cognition unfold at the level of individual words. We reanalyzed five publicly available TMS data sets, covering multiple stimulation sites and lexical semantics tasks. We propose a simple methodology that can straightforwardly be applied to any TMS experiment on semantic cognition and showcase its potential to generate new insights. We modeled trial-level response times using the language model and computed the correlation between the two. We also repeated the analyses for two lower-level variables (word frequency and length). Importantly, for each data set, we compared correlations for effective and control (sham or vertex) stimulation conditions. We found that, for the language model, correlation was almost always significantly different depending on the type of stimulation (effective or control). Our results provide evidence that the stimulation effect interacts with the meaning of individual words. However, a similar pattern emerged in some cases for word frequency and length, suggesting that the effects of TMS on cognition can be widespread, well beyond their intended functional target. Collectively, our results demonstrate that language models provide new insight into the impact of neurostimulation on semantic processing, complementing standard measures.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.

OSF r3pwk

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Languages: Python (17)
Size: 35 files, 17 scripts
Software Heritage: not checked
Found in: “DATA AND CODE AVAILABILITY STATEMENT”
Holds: environment (requirements.txt), tests
Not found: README, license file, CITATION.cff, continuous integration, documentation
Tools: NumPy (11 files), Matplotlib (4 files), SciPy (4 files), Pingouin (2 files), MNE-Python (1 file), PyTorch (1 file), scikit-learn (1 file), Hugging Face Transformers (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
17 files, to read at the source

This repository has no license: its authors keep all rights. Read it at the source.

At the source: osf.io/r3pwk

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 17 scripts, each with its path and the digest of its content;
  • 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data and code availability statement

All the code, models, and (previously published) experimental data are available on the Open Science Framework website: https://osf.io/r3pwk.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 2 authors, 8 keywords, 2 funders, 162 references.

Cite

This paper

Bruera, A., & Hartwigsen, G. (2026). A Novel Approach to Map the Causal Impact of Brain Stimulation on Semantic Processing With Language Models. Neurobiology of language (Cambridge, Mass.), 7, NOL.a.244. https://doi.org/10.1162/nol.a.244

BibTeX

@article{bruera2026novel,
author = {Bruera, Andrea and Hartwigsen, Gesa},
title = {{A Novel Approach to Map the Causal Impact of Brain Stimulation on Semantic Processing With Language Models}},
journal = {Neurobiology of language (Cambridge, Mass.)},
year = {2026},
month = may,
volume = {7},
pages = {NOL.a.244},
publisher = {MIT Press},
issn = {2641-4368},
doi = {10.1162/nol.a.244},
url = {https://doi.org/10.1162/nol.a.244},
pmid = {42137738},
pmcid = {PMC13171204}
}

RIS

TY - JOUR
AU - Bruera, Andrea
AU - Hartwigsen, Gesa
TI - A Novel Approach to Map the Causal Impact of Brain Stimulation on Semantic Processing With Language Models
T2 - Neurobiology of language (Cambridge, Mass.)
J2 - Neurobiol Lang (Camb)
PY - 2026
DA - 2026/05/05
VL - 7
SP - NOL.a.244
SN - 2641-4368
PB - MIT Press
DO - 10.1162/nol.a.244
UR - https://doi.org/10.1162/nol.a.244
LA - en
ER -

CSL-JSON

{
"id": "10.1162/nol.a.244",
"type": "article-journal",
"title": "A Novel Approach to Map the Causal Impact of Brain Stimulation on Semantic Processing With Language Models",
"container-title": "Neurobiology of language (Cambridge, Mass.)",
"author": [
{
"family": "Bruera",
"given": "Andrea"
},
{
"family": "Hartwigsen",
"given": "Gesa"
}
],
"container-title-short": "Neurobiol Lang (Camb)",
"volume": "7",
"page": "NOL.a.244",
"DOI": "10.1162/nol.a.244",
"PMID": "42137738",
"PMCID": "PMC13171204",
"ISSN": "2641-4368",
"publisher": "MIT Press",
"URL": "https://doi.org/10.1162/nol.a.244",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
5
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1038/s41467-026-75841-9 [code]
Model-based semantic distance reveals adaptive coordination of distinct cognitive systems in flexible knowledge retrieval.
Journal: Nature communications
In common: Hugging Face Transformers, PyTorch, NumPy, 11 references
[2] doi:10.7554/elife.107933 [code]
Modality-agnostic decoding of vision and language from fMRI.
Journal: eLife
In common: Hugging Face Transformers, PyTorch, scikit-learn, 3 other tools, 8 references
[3] doi:10.7554/elife.106543 [code]
Stimulus dependencies-rather than next-word prediction-can explain pre-onset brain encoding in naturalistic listening designs.
Journal: eLife
In common: Hugging Face Transformers, MNE-Python, PyTorch, 4 other tools, 3 references
[4] doi:10.1162/imag.a.1227 [code]
Large language models reveal the neural tracking of linguistic context in attended and unattended multi-talker speech.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: Hugging Face Transformers, MNE-Python, PyTorch, 4 other tools, 3 references
[5] doi:10.1038/s42003-026-10169-0 [code]
Shared representations in brains and models reveal a two-route cortical organization during scene perception.
Journal: Communications biology
In common: Hugging Face Transformers, PyTorch, scikit-learn, 3 other tools, 5 references
[6] doi:10.1038/s41586-026-10691-5 [code]
Mapping the neuronal building blocks of human language with language models.
Journal: Nature
In common: scikit-learn, SciPy, Matplotlib, 1 other tool, 6 references
[7] doi:10.1162/imag.a.1281
Syntactic processing engages the semantic control network.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 7 references
[8] doi:10.1162/nol.a.271 [code]
Compositional Complexity in Text and Images.
Journal: Neurobiology of language (Cambridge, Mass.)
In common: Pingouin, PyTorch, scikit-learn, 3 other tools, 3 references
[9] doi:10.1167/jov.26.5.7 [code]
Representations in vision and language converge in a shared, multidimensional space of perceived similarities.
Journal: Journal of vision
In common: PyTorch, scikit-learn, SciPy, 2 other tools, 4 references
[10] doi:10.1016/j.isci.2026.117180 [code]
Developmental changes in similarity between neural representations of mental arithmetic and artificial neural networks.
Journal: iScience
In common: Hugging Face Transformers, PyTorch, scikit-learn, 3 other tools, 3 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.