ACM Transactions on Software Engineering and Methodology · 2020 · 48 citations · 22 references
ComputingComputer ScienceMachine LearningProgramming LanguagesSoftware EngineeringAbstract Syntax TreesDeep LearningSoftware ArchitectureSoftware ModelingSyntax AnalysisAbstract Syntax Tree AnalysisAbstract Syntax Tree RepresentationClone DetectionCode Clone DetectionModular Network StructureProgram ClassificationSource Code StructureTree Structures
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.
22
Sepp Hochreiter, Jürgen Schmidhuber · Neural Computation · 1997 · 98.1K citations
A Fast Learning Algorithm for Deep Belief Nets
Geoffrey E. Hinton, Simon Osindero, Yee‐Whye Teh · Neural Computation · 2006 · 16.4K citations
Convolutional Neural Networks for Sentence Classification
Adaptive Recursive Neural Network for Target-dependent Twitter Sentiment Classification
Li Dong, Furu Wei, Chuanqi Tan et al. · 2014 · 1.1K citations · Full text