arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.12373cs.SEcs.HCcs.PL
收藏

程序理解并不主要依赖人脑的语言中枢

Program Comprehension Does Not Primarily Rely On the Language Centers of the Human Brain

Shashank Srikant, Anna A. Ivanova, Yotaro Sueoka, Hope H. Kean, Riva Dhamala, Evelina Fedorenko, Marina U. Bers, Una-May O'Reilly

AI总结:

本文通过 Python 与 Scratch Jr. 的 fMRI 实验发现,程序理解主要激活多重需求系统而非语言系统,且变量名、控制流和操作类型不影响脑反应。

摘要:

我们的目标是识别参与理解计算机程序的脑区。我们使用功能性磁共振成像(fMRI)研究两个可能支持这一过程的候选脑区系统:多重需求(Multiple Demand,MD)系统,已知其会对一系列认知要求较高的任务作出反应;以及语言系统(Language system,LS),已知其主要对语言刺激作出反应。我们设计了实验条件以分离代码理解行为,并采用一种最先进的方法来定位感兴趣的脑系统。我们分别在 Python(24名参与者)和 Scratch Jr.(19名参与者)中实施这些实验;Scratch Jr. 提供可视化编程界面,从而消除代码理解中文本的影响。基于这一稳健的实验设置,我们发现语言系统并未持续参与代码理解,而 MD 系统则持续参与。此外,我们发现除 MD 中的脑区外,没有其他脑区对代码作出反应。我们还发现,变量名、程序中使用的控制流以及所执行操作的类型都不会影响大脑反应。我们讨论了这些发现对软件工程和计算机科学教育界的启示。

英文摘要:

Our goal is to identify brain regions involved in comprehending computer programs. We use functional magnetic resonance imaging (fMRI) to investigate two candidate systems of brain regions which may support this -- the Multiple Demand (MD) system, known to respond to a range of cognitively demanding tasks, and the Language system (LS), known to primarily respond to language stimuli. We devise experiment conditions to isolate the act of code comprehension, and employ a state-of-the-art method to locate brain systems of interest. We administer these experiments in Python (24 participants) and Scratch Jr. (19 participants) - which provides a visual interface to programming, thus eliminating the effect of text in code comprehension. From this robust experiment setup, we find that the Language system is not consistently involved in code comprehension, while the MD is. Further, we find no other brain regions beyond those in the MD to be responsive to code. We also find that variable names, the control flow used in the program, and the types of operations performed do not affect brain responses. We discuss the implications of our findings on the software engineering and CS education communities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑