REAL

Deep Learning-Based Refactoring with Formally Verified Training DatA

Szalontai, Balázs and Bereczky, Péter and Horpácsi, Dániel (2023) Deep Learning-Based Refactoring with Formally Verified Training DatA. INFOCOMMUNICATIONS JOURNAL, 15 (SI). pp. 2-8. ISSN 2061-2079

[img]
Preview
Text
InfocomJournal_2023_SpecISS_ICAI_1.pdf

Download (841kB) | Preview

Abstract

Refactoring source code has always been an active area of research. Since the uprising of various deep learning methods, there have been several attempts to perform source code transformation with the use of neural networks. More specifically, Encoder-Decoder architectures have been used to transform code similarly to a Neural Machine Translation task. In this paper, we present a deep learning-based method to refactor source code, which we have prototyped for Erlang. Our method has two major components: a localizer and a refactoring component. That is, we first localize the snippet to be refactored using a recurrent network, then we generate an alternative with a Sequence-to- Sequence architecture. Our method could be used as an extension for already existing AST-based approaches for refactoring since it is capable of transforming syntactically incomplete code. We train our models on automatically generated data sets, based on formally verified refactoring definitions and by using attribute grammar-based sampling.

Item Type: Article
Uncontrolled Keywords: Deep learning, Formally verified training data, Neural Machine Translation, Sequence-to-Sequence
Subjects: Q Science / természettudomány > QA Mathematics / matematika > QA75 Electronic computers. Computer science / számítástechnika, számítógéptudomány
SWORD Depositor: MTMT SWORD
Depositing User: MTMT SWORD
Date Deposited: 07 Sep 2023 12:34
Last Modified: 07 Sep 2023 12:34
URI: http://real.mtak.hu/id/eprint/172966

Actions (login required)

Edit Item Edit Item