Article (Scientific journals)
You Don’t Have to Say Where to Edit! jLED – Joint Learning to Localize and Edit Source Code
PIAN, Weiguo; LI, Yinghua; TIAN, Haoye et al.
2025In ACM Transactions on Software Engineering and Methodology
Peer Reviewed verified by ORBi
 

Files


Full Text
3712187.pdf
Author postprint (5.38 MB)
Download

All documents in ORBilu are protected by a user license.

Send to



Details



Abstract :
[en] Learning to edit code automatically is becoming more and more feasible. Thanks to recent advances in Neural Machine Translation (NMT), various case studies are being investigated where patches are automatically produced and assessed either automatically (using test suites) or by developers themselves. An appealing setting remains when the developer must provide a natural language input of the requirement for the code change. A recent proof of concept in the literature showed that it is indeed feasible to translate these natural language requirements into code changes. A recent advancement, MODIT [8], has shown promising results in code editing by leveraging natural language, code context, and location information as input. However, it struggles when location information is unavailable. While several studies [29, 81] have demonstrated the ability to edit source code without explicitly specifying the edit location, they still tend to generate edits with less accuracy at the line level. In this work, we address the challenge of generating code edits without precise location information, a scenario we consider crucial for the practical adoption of NMT in code development. To that end, we develop a novel joint training approach for both localization and source code editions. Building a benchmark based on over 70k commits (patches and messages), we demonstrate that our jLED (joint Localize and EDit) approach is effective. An ablation study further demonstrates the importance of our design choice in joint training.
Disciplines :
Computer science
Author, co-author :
PIAN, Weiguo  ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT) > TruX
LI, Yinghua  ;  University of Luxembourg
TIAN, Haoye  ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust > TruX > Team Tegawendé François d A BISSYANDE ; University of Melbourne, Australia
SUN, Tiezhu  ;  University of Luxembourg
SONG, Yewei  ;  University of Luxembourg
TANG, Xunzhu  ;  University of Luxembourg
HABIB, Andrew  ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust > TruX > Team Tegawendé François d A BISSYANDE
KLEIN, Jacques  ;  University of Luxembourg
BISSYANDE, Tegawendé  ;  University of Luxembourg
External co-authors :
no
Language :
English
Title :
You Don’t Have to Say Where to Edit! jLED – Joint Learning to Localize and Edit Source Code
Publication date :
13 January 2025
Journal title :
ACM Transactions on Software Engineering and Methodology
ISSN :
1049-331X
Publisher :
Association for Computing Machinery (ACM)
Peer reviewed :
Peer Reviewed verified by ORBi
Available on ORBilu :
since 04 February 2025

Statistics


Number of views
172 (15 by Unilu)
Number of downloads
93 (6 by Unilu)

Scopus citations®
 
0
Scopus citations®
without self-citations
0
OpenCitations
 
0
OpenAlex citations
 
0

Bibliography


Similar publications



Contact ORBilu