TreeCaps: Tree-Structured Capsule Networks for Program Source Code Processing
Not on the map. Why?
Abstract (arXiv)
Program comprehension is a fundamental task in software development and maintenance processes. Software developers often need to understand a large amount of existing code before they can develop new features or fix bugs in existing programs. Being able to process programming language code automatically and provide summaries of code functionality accurately can significantly help developers to reduce time spent in code navigation and understanding, and thus increase productivity. Different from natural language articles, source code in programming languages often follows rigid syntactical structures and there can exist dependencies among code elements that are located far away from each other through complex control flows and data flows. Existing studies on tree-based convolutional neural networks (TBCNN) and gated graph neural networks (GGNN) are not able to capture essential semantic dependencies among code elements accurately. In this paper, we propose novel tree-based capsule networks (TreeCaps) and relevant techniques for processing program code in an automated way that encodes code syntactical structures and captures code dependencies more accurately. Based on evaluation on programs written in different programming languages, we show that our TreeCaps-based approach can outperform other approaches in classifying the functionalities of many programs.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Oct 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 0; 2024: 1.
4 papers.
- 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
- 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completioncited by 15
- 2022Learning to Parallelize in a Shared-Memory Environment with Transformerscited by 10
- 2021Assessing the Effectiveness of Syntactic Structure to Learn Code Edit Representationscited by 1
- 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completion10 Mar 2024
- 2022Learning to Parallelize in a Shared-Memory Environment with Transformers27 Apr 2022
- 2021Assessing the Effectiveness of Syntactic Structure to Learn Code Edit Representations11 Jun 2021
- 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphs17 Mar 2021