arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.06182cs.SEcs.AI
收藏

面向Source Code的视觉注意图生成

Towards Generation of Visual Attention Map for Source Code

Nara Institute of Science and Technology(奈良先端科学技术大学院大学);Kyoto Women’s University(京都女子大学)

Takeshi D. Itoh, Takatomi Kubo, Kiyoka Ikeda, Yuki Maruno, Yoshiharu Ikutani, Hideaki Hata, Kenichi Matsumoto, Kazushi Ikeda

摘要:

程序理解是软件开发和维护中的一个重要过程。专家通过将目光或注意力引导到源代码中的重要组件来有效地理解源代码,然而,反映组件的重要性仍然是用于源代码理解的目光行为分析中的一个遗留问题。在这里,我们展示了一个概念框架来比较源代码组件的量化重要性与程序员的凝视行为。我们在注意力模型中使用“注意力”(例如,code2vec)作为源代码组件的重要性指标,并基于量化的重要性来评估程序员的注视位置。在这份报告中,我们介绍了使用注意力地图进行凝视行为分析的想法,以及初步实验的结果。

英文摘要:

Program comprehension is a dominant process in software development and maintenance. Experts are considered to comprehend the source code efficiently by directing their gaze, or attention, to important components in it. However, reflecting the importance of components is still a remaining issue in gaze behavior analysis for source code comprehension. Here we show a conceptual framework to compare the quantified importance of source code components with the gaze behavior of programmers. We use "attention" in attention models (e.g., code2vec) as the importance indices for source code components and evaluate programmers' gaze locations based on the quantified importance. In this report, we introduce the idea of our gaze behavior analysis using the attention map, and the results of a preliminary experiment.

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

↑