Neural Code Comprehension: A Learnable Representation of Code Semantics
Ben-Nun, Tal, Jakobovits, Alice Shoshana, Hoefler, Torsten
–Neural Information Processing Systems
With the recent success of embeddings in natural language processing, research has been conducted into applying similar methods to code analysis. Most works attempt to process the code directly or use a syntactic tree representation, treating it like sentences written in a natural language. However, none of the existing methods are sufficient to comprehend program semantics robustly, due to structural features such as function calls, branching, and interchangeable order of statements. In this paper, we propose a novel processing technique to learn code semantics, and apply it to a variety of program analysis tasks. In particular, we stipulate that a robust distributional hypothesis of code applies to both human- and machine-generated programs.
Neural Information Processing Systems
Feb-14-2020, 12:58:03 GMT
- Technology: