语言网络对理解 Python 编程代码的贡献。

IF 2.1 2区 心理学 Q1 AUDIOLOGY & SPEECH-LANGUAGE PATHOLOGY
Yun-Fei Liu 劉耘非 , Colin Wilson , Marina Bedny
{"title":"语言网络对理解 Python 编程代码的贡献。","authors":"Yun-Fei Liu 劉耘非 ,&nbsp;Colin Wilson ,&nbsp;Marina Bedny","doi":"10.1016/j.bandl.2024.105392","DOIUrl":null,"url":null,"abstract":"<div><p>Does the perisylvian language network contribute to comprehension of programming languages, like Python? Univariate neuroimaging studies find high responses to code in fronto-parietal executive areas but not in fronto-temporal language areas, suggesting the language network does little. We used multivariate-pattern-analysis to test whether the language network encodes Python functions. Python programmers read functions while undergoing fMRI. A linear SVM decoded for-loops from if-conditionals based on activity in lateral temporal (LT) language cortex. In searchlight analysis, decoding accuracy was higher in LT language cortex than anywhere else. Follow up analysis showed that decoding was not driven by presence of different words across functions, “for” vs “if,” but by compositional program properties. Finally, univariate responses to code peaked earlier in LT language-cortex than in the fronto-parietal network. We propose that the language system forms initial “surface meaning” representations of programs, which input to the reasoning network for processing of algorithms.</p></div>","PeriodicalId":55330,"journal":{"name":"Brain and Language","volume":null,"pages":null},"PeriodicalIF":2.1000,"publicationDate":"2024-02-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Contribution of the language network to the comprehension of Python programming code\",\"authors\":\"Yun-Fei Liu 劉耘非 ,&nbsp;Colin Wilson ,&nbsp;Marina Bedny\",\"doi\":\"10.1016/j.bandl.2024.105392\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>Does the perisylvian language network contribute to comprehension of programming languages, like Python? Univariate neuroimaging studies find high responses to code in fronto-parietal executive areas but not in fronto-temporal language areas, suggesting the language network does little. We used multivariate-pattern-analysis to test whether the language network encodes Python functions. Python programmers read functions while undergoing fMRI. A linear SVM decoded for-loops from if-conditionals based on activity in lateral temporal (LT) language cortex. In searchlight analysis, decoding accuracy was higher in LT language cortex than anywhere else. Follow up analysis showed that decoding was not driven by presence of different words across functions, “for” vs “if,” but by compositional program properties. Finally, univariate responses to code peaked earlier in LT language-cortex than in the fronto-parietal network. We propose that the language system forms initial “surface meaning” representations of programs, which input to the reasoning network for processing of algorithms.</p></div>\",\"PeriodicalId\":55330,\"journal\":{\"name\":\"Brain and Language\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":2.1000,\"publicationDate\":\"2024-02-22\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Brain and Language\",\"FirstCategoryId\":\"102\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0093934X24000154\",\"RegionNum\":2,\"RegionCategory\":\"心理学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AUDIOLOGY & SPEECH-LANGUAGE PATHOLOGY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Brain and Language","FirstCategoryId":"102","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0093934X24000154","RegionNum":2,"RegionCategory":"心理学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AUDIOLOGY & SPEECH-LANGUAGE PATHOLOGY","Score":null,"Total":0}
引用次数: 0

摘要

边缘语言网络是否有助于理解 Python 等编程语言?单变量神经影像学研究发现,前顶叶执行区对代码的反应很高,但前颞叶语言区却没有,这表明语言网络的作用很小。我们使用多元模式分析来测试语言网络是否编码 Python 函数。Python 程序员在进行 fMRI 时阅读函数。线性 SVM 根据外侧颞叶 (LT) 语言皮层的活动对 if 条件中的 for 循环进行解码。在探照灯分析中,LT 语言皮层的解码准确率高于其他部位。后续分析表明,解码不是由不同功能("for "和 "if")的不同单词驱动的,而是由程序的组成属性驱动的。最后,LT语言皮层对编码的单变量反应比额顶网络更早达到峰值。我们认为,语言系统形成了程序的初始 "表面意义 "表征,这些表征输入到推理网络,用于处理算法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Contribution of the language network to the comprehension of Python programming code

Does the perisylvian language network contribute to comprehension of programming languages, like Python? Univariate neuroimaging studies find high responses to code in fronto-parietal executive areas but not in fronto-temporal language areas, suggesting the language network does little. We used multivariate-pattern-analysis to test whether the language network encodes Python functions. Python programmers read functions while undergoing fMRI. A linear SVM decoded for-loops from if-conditionals based on activity in lateral temporal (LT) language cortex. In searchlight analysis, decoding accuracy was higher in LT language cortex than anywhere else. Follow up analysis showed that decoding was not driven by presence of different words across functions, “for” vs “if,” but by compositional program properties. Finally, univariate responses to code peaked earlier in LT language-cortex than in the fronto-parietal network. We propose that the language system forms initial “surface meaning” representations of programs, which input to the reasoning network for processing of algorithms.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Brain and Language
Brain and Language 医学-神经科学
CiteScore
4.50
自引率
8.00%
发文量
82
审稿时长
20.5 weeks
期刊介绍: An interdisciplinary journal, Brain and Language publishes articles that elucidate the complex relationships among language, brain, and behavior. The journal covers the large variety of modern techniques in cognitive neuroscience, including functional and structural brain imaging, electrophysiology, cellular and molecular neurobiology, genetics, lesion-based approaches, and computational modeling. All articles must relate to human language and be relevant to the understanding of its neurobiological and neurocognitive bases. Published articles in the journal are expected to have significant theoretical novelty and/or practical implications, and use perspectives and methods from psychology, linguistics, and neuroscience along with brain data and brain measures.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信