跳到主要导航 跳到搜索 跳到主要内容

Jointly Learning to Repair Code and Generate Commit Message

  • Jiaqi Bai
  • , Long Zhou
  • , Ambrosio Blanco
  • , Shujie Liu
  • , Furu Wei
  • , Ming Zhou
  • , Zhoujun Li
  • Beihang University
  • Microsoft USA

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

We propose a novel task of jointly repairing program codes and generating commit messages. Code repair and commit message generation are two essential and related tasks for software development. However, existing work usually performs the two tasks independently. We construct a multilingual triple dataset including buggy code, fixed code, and commit messages for this novel task. We provide the cascaded models as baseline, which are enhanced with different training approaches, including the teacher-student method, the multi-task method, and the back-translation method. To deal with the error propagation problem of the cascaded method, the joint model is proposed that can both repair the code and generate the commit message in a unified framework. Experimental results show that the enhanced cascaded model with teacher-student method and multitask-learning method achieves the best score on different metrics of automated code repair, and the joint model behaves better than the cascaded model on commit message generation.

源语言英语
主期刊名EMNLP 2021 - 2021 Conference on Empirical Methods in Natural Language Processing, Proceedings
出版商Association for Computational Linguistics (ACL)
页9784-9795
页数12
ISBN(电子版)9781955917094
DOI
出版状态已出版 - 2021
活动2021 Conference on Empirical Methods in Natural Language Processing, EMNLP 2021 - Hybrid, Punta Cana, 多米尼加共和国
期限: 7 11月 2021 → 11 11月 2021

丛书

姓名EMNLP 2021 - 2021 Conference on Empirical Methods in Natural Language Processing, Proceedings

会议

会议2021 Conference on Empirical Methods in Natural Language Processing, EMNLP 2021
国家/地区多米尼加共和国
市Hybrid, Punta Cana
时期7/11/21 → 11/11/21

学术指纹

探究 'Jointly Learning to Repair Code and Generate Commit Message' 的科研主题。它们共同构成独一无二的学术指纹。

引用此