SEAILGMay 10, 2022

A Neural Network Architecture for Program Understanding Inspired by Human Behaviors

arXiv:2206.04730v1639 citationsh-index: 8Has Code
Originality Incremental advance
AI Analysis

This work addresses program understanding for software engineering and AI, offering a novel approach but with incremental improvements over existing methods.

The authors tackled program understanding by proposing PGNN-EK, a neural network architecture inspired by human behaviors like divide-and-conquer reading and using external resources, which achieved superior performance on code summarization and code clone detection tasks, including the release of a new challenging dataset.

Program understanding is a fundamental task in program language processing. Despite the success, existing works fail to take human behaviors as reference in understanding programs. In this paper, we consider human behaviors and propose the PGNN-EK model that consists of two main components. On the one hand, inspired by the "divide-and-conquer" reading behaviors of humans, we present a partitioning-based graph neural network model PGNN on the upgraded AST of codes. On the other hand, to characterize human behaviors of resorting to other resources to help code comprehension, we transform raw codes with external knowledge and apply pre-training techniques for information extraction. Finally, we combine the two embeddings generated from the two components to output code embeddings. We conduct extensive experiments to show the superior performance of PGNN-EK on the code summarization and code clone detection tasks. In particular, to show the generalization ability of our model, we release a new dataset that is more challenging for code clone detection and could advance the development of the community. Our codes and data are publicly available at https://github.com/RecklessRonan/PGNN-EK.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes