Towards Modeling Human Attention from Eye Movements for Neural Source Code Summarization

Aakash Bansal, Bonita Sharif, Collin McMillan
5/16/2023
cs.SEcs.AI

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Neural source code summarization is the task of generating natural language descriptions of source code behavior using neural networks. A fundamental component of most neural models is an attention mechanism. The attention mechanism learns to connect features in source code to specific words to use when generating natural language descriptions. Humans also pay attention to some features in code more than others. This human attention reflects experience and high-level cognition well beyond the capability of any current neural model. In this paper, we use data from published eye-tracking experiments to create a model of this human attention. The model predicts which words in source code are the most important for code summarization. Next, we augment a baseline neural code summarization approach using our model of human attention. We observe an improvement in prediction performance of the augmented approach in line with other bio-inspired neural models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bansal2023towards,
  title  = {Towards Modeling Human Attention from Eye Movements for Neural Source Code Summarization},
  author = {Aakash Bansal and Bonita Sharif and Collin McMillan},
  year   = {2023},
  eprint = {2305.09773},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.09773v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.09773.svg)](https://codeofpaper.com/paper/2305.09773)

Discussion