Enhancing source code representations for deep learning with static analysis

Deep learning techniques applied to program analysis tasks such as code classification, summarization, and bug detection have seen widespread interest. Traditional approaches, however, treat programming source code as natural language text, which may neglect significant structural or semantic detail...

Full description

Saved in:
Bibliographic Details
Main Authors: GUAN, Xueting, TREUDE, Christoph
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2024
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/8960
https://ink.library.smu.edu.sg/context/sis_research/article/9963/viewcontent/xueting.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-9963
record_format dspace
spelling sg-smu-ink.sis_research-99632024-07-04T07:05:25Z Enhancing source code representations for deep learning with static analysis GUAN, Xueting TREUDE, Christoph Deep learning techniques applied to program analysis tasks such as code classification, summarization, and bug detection have seen widespread interest. Traditional approaches, however, treat programming source code as natural language text, which may neglect significant structural or semantic details. Additionally, most current methods of representing source code focus solely on the code, without considering beneficial additional context. This paper explores the integration of static analysis and additional context such as bug reports and design patterns into source code representations for deep learning models. We use the Abstract Syntax Tree-based Neural Network (ASTNN) method and augment it with additional context information obtained from bug reports and design patterns, creating an enriched source code representation that significantly enhances the performance of common software engineering tasks such as code classification and code clone detection. Utilizing existing open-source code data, our approach improves the representation and processing of source code, thereby improving task performance. 2024-04-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/8960 info:doi/10.1145/3643916.3644396 https://ink.library.smu.edu.sg/context/sis_research/article/9963/viewcontent/xueting.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Source code representation Deep learning Static analysis Bug reports Design patterns Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Source code representation
Deep learning
Static analysis
Bug reports
Design patterns
Software Engineering
spellingShingle Source code representation
Deep learning
Static analysis
Bug reports
Design patterns
Software Engineering
GUAN, Xueting
TREUDE, Christoph
Enhancing source code representations for deep learning with static analysis
description Deep learning techniques applied to program analysis tasks such as code classification, summarization, and bug detection have seen widespread interest. Traditional approaches, however, treat programming source code as natural language text, which may neglect significant structural or semantic details. Additionally, most current methods of representing source code focus solely on the code, without considering beneficial additional context. This paper explores the integration of static analysis and additional context such as bug reports and design patterns into source code representations for deep learning models. We use the Abstract Syntax Tree-based Neural Network (ASTNN) method and augment it with additional context information obtained from bug reports and design patterns, creating an enriched source code representation that significantly enhances the performance of common software engineering tasks such as code classification and code clone detection. Utilizing existing open-source code data, our approach improves the representation and processing of source code, thereby improving task performance.
format text
author GUAN, Xueting
TREUDE, Christoph
author_facet GUAN, Xueting
TREUDE, Christoph
author_sort GUAN, Xueting
title Enhancing source code representations for deep learning with static analysis
title_short Enhancing source code representations for deep learning with static analysis
title_full Enhancing source code representations for deep learning with static analysis
title_fullStr Enhancing source code representations for deep learning with static analysis
title_full_unstemmed Enhancing source code representations for deep learning with static analysis
title_sort enhancing source code representations for deep learning with static analysis
publisher Institutional Knowledge at Singapore Management University
publishDate 2024
url https://ink.library.smu.edu.sg/sis_research/8960
https://ink.library.smu.edu.sg/context/sis_research/article/9963/viewcontent/xueting.pdf
_version_ 1814047658564648960