xASTNN: Improved Code Representations for Industrial Practice
원문 초록
The application of deep learning techniques in software engineering becomes increasingly popular. One key problem is developing high-quality and easy-to-use source code representations for code-related tasks. The research community has acquired impressive results in recent years. However, due to the deployment difficulties and performance bottlenecks, seldom these approaches are applied to the industry. In this paper, we present xASTNN, an eXtreme Abstract Syntax Tree (AST)-based Neural Network for source code representation, aiming to push this technique to industrial practice. The proposed xASTNN has three advantages. First, xASTNN is completely based on widely-used ASTs and does not require complicated data pre-processing, making it applicable to various programming languages and practical scenarios. Second, three closely-related designs are proposed to guarantee the effectiveness of xASTNN, including statement subtree sequence for code naturalness, gated recursive unit for syntactical information, and gated recurrent unit for sequential information. Third, a dynamic batching algorithm is introduced to significantly reduce the time complexity of xASTNN. Two code comprehension downstream tasks, code classification and code clone detection, are adopted for evaluation. The results demonstrate that our xASTNN can improve the state-of-the-art while being faster than the baselines.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Graph Convolutions Enrich the Self-Attention in Transformers!
Understanding Programs by Exploiting (Fuzzing) Test Cases
Learning Program Semantics with Code Representations: An Empirical Study
Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Study
HierarchyNet: Learning to Summarize Source Code with Heterogeneous Representations
InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees
토론
이 논문과 연결된 포럼 글이 아직 없습니다.