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.
Code (0)
등록된 구현이 없습니다.
Tasks
Clone DetectionCode ClassificationSimilar Papers 제목 키워드 기반
Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectations
Code summaries are essential for helping developers understand code functionality and reducing maintenance and collaboration costs. Although recent advances in large language models (LLMs) have significantly improved aut…
Semantic SimilarityTowards Improved Research Methodologies for Industrial AI: A case study of false call reduction
Are current artificial intelligence (AI) research methodologies ready to create successful, productive, and profitable AI applications? This work presents a case study on an industrial AI use case called false call reduc…
How circular economy and industrial ecology concepts are intertwined? A bibliometric and text mining analysis
Combining new insights from both bibliometric and text mining analyses, with prior relevant research conversations on circular economy (CE) and industrial ecology (IE), this paper aims to clarify the recent development t…
Bug-Report-Driven Fault Localization: Industrial Benchmarking and Lesson Learned at ABB Robotics
Software quality assurance remains a major challenge in industrial environments, where large-scale and long-lived systems inevitably accumulate defects. Identifying the location of a fault is often time-consuming and cos…
Text ClassificationData AugmentationConsultation on Industrial Machine Faults with Large language Models
Industrial machine fault diagnosis is a critical component of operational efficiency and safety in manufacturing environments. Traditional methods rely heavily on expert knowledge and specific machine learning models, wh…
Fault Diagnosis