eLifeNeurosciencePeer-reviewed journal article
Computer code comprehension shares neural resources with formal logical inference in the fronto-parietal network
Abstract
Despite the importance of programming to modern society, the cognitive and neural bases of code comprehension are largely unknown. Programming languages might recycle neurocognitive mechanisms originally used for natural languages. Alternatively, comprehension of code could depend on fronto-parietal networks shared with other culturally derived symbol systems, such as formal logic and math. Expert programmers (average 11 years of programming experience) performed code comprehension and memory control tasks while undergoing fMRI. The same participants also performed language, math, formal logic, and executive control localizer tasks. A left-lateralized fronto-parietal network was recruited for code comprehension. Patterns of activity within this network distinguish between "for" loops and "if" conditional code functions. Code comprehension overlapped extensively with neural basis of formal logic and to a lesser degree math. Overlap with simpler executive processes and language was low, but laterality of language and code covaried across individuals. Cultural symbol systems, including code, depend on a distinctive fronto-parietal cortical network.
- Citations
- 64
- FWCI
- 2.95
- Field percentile
- top 8%
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
- Rapid "recycling" of logical algorithm representations in fronto-parietal reasoning systems following computer programming instructions
Yunfei Liu, Marina Bedny·bioRxiv·Jan 8, 2025
- Comprehension of computer code relies primarily on domain-general executive brain regions
Anna Aleksandrovna Ivanova, Shashank Srikant, … Evelina G. Fedorenko·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
- Reasoning with programs in replay
Sebastijan Veselič, Nour Mohsen, … Zeb L. Kurth-Nelson·bioRxiv·Oct 10, 2025
- The neural bases of program comprehension: a coordinate-based fMRI meta-analysis
Yoshiharu Ikutani, Takeshi Itoh, Takatomi Kubo·bioRxiv·Apr 15, 2021
- Expertise modifies neural responses to causal inference during language comprehension
Miriam Hauptman, Marina Bedny·bioRxiv·Nov 2, 2026