A systematic mapping study of source code representation for deep learning in software engineering
Review article, 2022

The usage of deep learning (DL) approaches for software engineering has attracted much attention, particularly in source code modelling and analysis. However, in order to use DL, source code needs to be formatted to fit the expected input form of DL models. This problem is known as source code representation. Source code can be represented via different approaches, most importantly, the tree-based, token-based, and graph-based approaches. We use a systematic mapping study to investigate i detail the representation approaches adopted in 103 studies that use DL in the context of software engineering. Thus, studies are collected from 2014 to 2021 from 14 different journals and 27 conferences. We show that each way of representing source code can provide a different, yet orthogonal view of the same source code. Thus, different software engineering tasks might require different (combinations of) code representation approaches, depending on the nature and complexity of the task. Particularly, we show that it is crucial to define whether the DL approach requires lexical, syntactical, or semantic code information. Our analysis shows that a wide range of different representations and combinations of representations (hybrid representations) are used to solve a wide range of common software engineering problems. However, we also observe that current research does not generally attempt to transfer existing representations or models to other studies even though there are other contexts in which these representations and models may also be useful. We believe that there is potential for more reuse and the application of transfer learning when applying DL to software engineering tasks.

Author

Peter Samoaa

Chalmers, Computer Science and Engineering (Chalmers), Data Science and AI

Firas Bayram

Karlstad University

Pasquale Salza

University of Zürich

Philipp Leitner

Chalmers, Computer Science and Engineering (Chalmers), Interaction Design and Software Engineering

IET Software

1751-8806 (ISSN) 1751-8814 (eISSN)

Vol. 16 4 351-385

Subject Categories

Language Technology (Computational Linguistics)

Software Engineering

Computer Science

DOI

10.1049/sfw2.12064

More information

Latest update

3/7/2024 9