arrow
Return

Modular Tree Network for Source Code Representation Learning

delete2020-09-26
delete37
delete
OA
AI
W
Wenhan Wang
G
Ge Li
X
Xin Xia
Z
Zhi Jin *
DOI:10.1145/3409331delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Learning representation for source code is a foundation of many program analysis tasks. In recent years, neural networks have already shown success in this area, but most existing models did not make full use of the unique structural information of programs. Although abstract syntax tree (AST)-based neural models can handle the tree structure in the source code, they cannot capture the richness of different types of substructure in programs. In this article, we propose a modular tree network that dynamically composes different neural network units into tree structures based on the input AST. Different from previous tree-structural neural network models, a modular tree network can capture the semantic differences between types of AST substructures. We evaluate our model on two tasks: program classification and code clone detection. Our model achieves the best performance compared with state-of-the-art approaches in both tasks, showing the advantage of leveraging more elaborate structure information of the source code.
Keywords:
Deep learning
neural networks
program classification
code clone detection
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.2K
Citations:
3.4K

Organization

M
Monash University
Scholars:
5.4W
Papers: 5.4W
Citations: 79
P
peking university
Scholars:
11.9W
Papers: 8.7W
Citations: 146
Cited Papers

Cited Papers

Lys63/Met1-hybrid ubiquitin chains are commonly formed during the activation of innate immune signalling
err2016-06-01
err0
errOAAI
errChristoph H. Emmerich; Siddharth Bakshi; Ian R. Kelsall; Juanma Ortiz-Guerrero; Natalia Shpiro; Philip Cohen
errShare
errSave
Binary survival in the outer solar system
err2019-10-01
err0
errOAAI
errDavid Nesvorný; David Vokrouhlický
errShare
errSave
A Survey of Machine Learning for Big Code and Naturalness
err2018-07-31
err477
errOAAI
errAllamanis, Miltiadis; Barr, Earl T.; Devanbu, Premkumar; Sutton, Charles
errShare
errSave
researcher View more