Lune

ICSE2022顶会

Using Pre-Trained Models to Boost Code Review Automation

Rosalia Tufano, Simone Masiero, Antonio Mastropaolo, Luca Pascarella, Denys Poshyvanyk, Gabriele Bavota

摘要

Code review is a practice widely adopted in open source and industrial projects. Given the non-negligible cost of such a process, researchers started investigating the possibility of automating specific code review tasks. We recently proposed Deep Learning (DL) models targeting the automation of two tasks: the first model takes as input a code submitted for review and implements in it changes likely to be recommended by a reviewer; the second takes as input the submitted code and a reviewer comment posted in natural language and automatically implements the change required by the reviewer. While the preliminary results we achieved are encouraging, both models had been tested in rather simple code review scenarios, substantially simplifying the targeted problem. This was also due to the choices we made when designing both the technique and the experiments. In this paper, we build on top of that work by demonstrating that a pre-trained Text-To-Text Transfer Transformer (T5) model can outperform previous DL models for automating code review tasks. Also, we conducted our experiments on a larger and more realistic (and challenging) dataset of code review activities.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 35 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Towards Automating Code Review Activities 引用了 On learning meaningful assert statements for unit test cases
  • AUGER: automatically generating review comments with pre-training models 引用了 Towards Automating Code Review Activities
  • Retrieval-Based Prompt Selection for Code-Related Few-Shot Learning 引用了 On learning meaningful assert statements for unit test cases
  • Retrieval-Based Prompt Selection for Code-Related Few-Shot Learning 引用了 AUGER: automatically generating review comments with pre-training models
  • Retrieval-Based Prompt Selection for Code-Related Few-Shot Learning 引用了 On Multi-Modal Learning of Editing Source Code
  • Retrieval-Based Prompt Selection for Code-Related Few-Shot Learning 引用了 Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Tasks
  • Retrieval-Based Prompt Selection for Code-Related Few-Shot Learning 引用了 CoditT5: Pretraining for Source Code and Natural Language Editing
  • On Multi-Modal Learning of Editing Source Code 引用了 Towards Automating Code Review Activities
  • Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Tasks 引用了 On learning meaningful assert statements for unit test cases
  • Automating code review activities by large-scale pre-training 引用了 Towards Automating Code Review Activities
  • Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study 引用了 Towards Automating Code Review Activities
  • Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study 引用了 Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Tasks
  • Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study 引用了 Automating code review activities by large-scale pre-training
  • CoditT5: Pretraining for Source Code and Natural Language Editing 引用了 Towards Automating Code Review Activities
  • CoditT5: Pretraining for Source Code and Natural Language Editing 引用了 On Multi-Modal Learning of Editing Source Code
  • CoditT5: Pretraining for Source Code and Natural Language Editing 引用了 Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Tasks
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper35

  1. Automating code review activities by large-scale pre-trainingZhiyu Li, Shuai Lu, Daya Guo, Nan Duan 等FSE 2022 · 195 次引用
  2. Retrieval-Based Prompt Selection for Code-Related Few-Shot LearningNoor Nashid, Mifta Sintaha, Ali MesbahICSE 2023 · 156 次引用
  3. Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical StudyQi Guo, Junming Cao, Xiaofei Xie, Shangqing Liu 等ICSE 2024 · 107 次引用
  4. CoditT5: Pretraining for Source Code and Natural Language EditingJiyang Zhang, Sheena Panthaplackel, Pengyu Nie, Junyi Jessy Li 等ASE 2022 · 81 次引用
  5. AUGER: automatically generating review comments with pre-training modelsLingwei Li, Li Yang, Huaxi Jiang, Jun Yan 等FSE 2022 · 56 次引用

它引用的 Paper4

  1. On learning meaningful assert statements for unit test casesCody Watson, Michele Tufano, Kevin Moran, Gabriele Bavota 等ICSE 2020 · 96 次引用
  2. Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related TasksAntonio Mastropaolo, Simone Scalabrino, Nathan Cooper, David Nader-Palacio 等ICSE 2021 · 9 次引用
  3. Towards Automating Code Review ActivitiesRosalia Tufano, Luca Pascarella, Michele Tufano, Denys Poshyvanyk 等ICSE 2021 · 4 次引用
  4. On Multi-Modal Learning of Editing Source CodeSaikat Chakraborty, Baishakhi RayASE 2021 · 1 次引用

相关 Paper

  1. CCT5: A Code-Change-Oriented Pre-trained ModelBo Lin, Shangwen Wang, Zhongxin Liu, Yepang Liu 等FSE 2023 · 69 次引用
  2. Deep Learning-based Code Reviews: A Paradigm Shift or a Double-Edged Sword?Rosalia Tufano, Alberto Martin-Lopez, Ahmad Tayeb, Ozren Dabic 等ICSE 2025 · 1 次引用
  3. CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and GenerationYue Wang, Weishi Wang, Shafiq R. Joty, Steven C. H. HoiEMNLP 2021 · 1,224 次引用
  4. CommentFinder: a simpler, faster, more accurate code review comments recommendationYang Hong, Chakkrit Tantithamthavorn, Patanamon Thongtanunam, Aldeida AletiFSE 2022 · 57 次引用
  5. SPT-Code: Sequence-to-Sequence Pre-Training for Learning Source Code RepresentationsChangan Niu, Chuanyi Li, Vincent Ng, Jidong Ge 等ICSE 2022 · 99 次引用
黄昏的海面,两侧是细线勾勒的悬崖