A systematic mapping study of source code representation for deep learning in software engineering

Autor: Hazem Peter Samoaa, Firas Bayram, Pasquale Salza, Philipp Leitner
Jazyk: angličtina
Rok vydání: 2022
Předmět:
Zdroj: IET Software, Vol 16, Iss 4, Pp 351-385 (2022)
Druh dokumentu: article
ISSN: 1751-8814
1751-8806
DOI: 10.1049/sfw2.12064
Popis: Abstract 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.
Databáze: Directory of Open Access Journals