eLifeNeurosciencePeer-reviewed journal article
Comprehension of computer code relies primarily on domain-general executive brain regions
Anna Aleksandrovna IvanovaiD, Shashank SrikantiD, Yotaro SueokaiD, Hope KeaniD, Riva Dhamala, Una-May O’ReillyiD, Marina Umaschi BersiD, Evelina G. FedorenkoiD
Abstract
Computer programming is a novel cognitive tool that has transformed modern society. What cognitive and neural mechanisms support this skill? Here, we used fMRI to investigate two candidate brain systems: the multiple demand (MD) system, typically recruited during math, logic, problem solving, and executive tasks, and the language system, typically recruited during linguistic processing. We examined MD and language system responses to code written in Python, a text-based programming language (Experiment 1) and in ScratchJr, a graphical programming language (Experiment 2); for both, we contrasted responses to code problems with responses to content-matched sentence problems. We found that the MD system exhibited strong bilateral responses to code in both experiments, whereas the language system responded strongly to sentence problems, but weakly or not at all to code problems. Thus, the MD system supports the use of novel cognitive tools even when the input is structurally similar to natural language.
- Citations
- 114
- FWCI
- 13.08
- Field percentile
- top 1%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Computer code comprehension shares neural resources with formal logical inference in the fronto-parietal network
Yunfei Liu, Judy Sein Kim, … Marina Bedny·eLifePeer-reviewed·Dec 14, 2020
- Expert programmers have fine-tuned cortical representations of source code
Yoshiharu Ikutani, Takatomi Kubo, … Shinji Nishimoto·eNeuroPeer-reviewed·Dec 14, 2020
- Rapid "recycling" of logical algorithm representations in fronto-parietal reasoning systems following computer programming instructions
Yunfei Liu, Marina Bedny·bioRxiv·Jan 8, 2025
- Intuitive physical reasoning is not mediated by linguistic nor exclusively domain-general abstract representations
Hope Kean, Alexander Fung, … Evelina G. Fedorenko·NeuropsychologiaPeer-reviewed·Mar 18, 2025
- Languages of the brain: fMRI dissection of the amodal networks for language, mathematics, and social knowledge
Antonio Moreno, Marie Amalric, … Stanislas Dehaene·bioRxiv·Dec 19, 2025
- fMRI reveals language-specific predictive coding during naturalistic sentence comprehension
Cory Shain, Idan Blank, … Evelina G. Fedorenko·bioRxiv·Dec 20, 2019