CoChat

Automating Code Review

Tufano, Rosalia · 2023 · 2023 IEEE/ACM 45th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion)
Cited by 6

The DOI matches its Crossref record; 6 of the 6 references it cites were found in a registry or an index.

Abstract

Code reviews are popular in both industrial and open source projects. The benefits of code reviews are widely recognized and include better code quality and lower likelihood of introducing bugs. However, code review comes at the cost of spending developers' time on reviewing their teammates' code. The goal of this research is to investigate the possibility of using Deep Learning (DL) to automate specific code review tasks. We started by training vanilla Transformer models to learn code changes performed by developers during real code review activities. This gives the models the possibility to automatically (i) revise the code submitted for review without any input from the reviewer; and (ii) implement changes required to address a specific reviewer's comment. While the preliminary results were encouraging, in this first work we tested DL models 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. Thus, in a subsequent work, we exploited a pre-trained Text- To- Text-Transfer-Transformer (T5) to overcome some of these limitations and experiment DL models for code review automation in more realistic and challenging scenarios. The achieved results show the improvements brought by T5 both in terms of applicability (i.e., scenarios in which it can be applied) and performance. Despite this, we are still far from performance levels making these techniques deployable in practice, thus calling for additional research in this area, as we discuss in our future work agenda.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1109/icse-companion58688.2023.00053

Cites

6 of 6 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 6 references

Research works printed but not linked: 28

  1. 10.1016/j.asoc.2020.106908 · DOI
  2. 10.1109/VLHCC.2017.8103453 · DOI
  3. 10.1145/3540250.3549119 · DOI · Paper page
  4. 10.1609/aaai.v33i01.33014910 · DOI · Paper page
  5. 10.1109/ICSE.2019.00021 · DOI · Paper page
  6. 10.1016/j.infsof.2016.01.004 · DOI · Paper page
  7. 10.1109/SOFTWAREMINING.2017.8100850 · DOI
  8. ai-zubaidi, 2020, Workload-aware reviewer recommendation using a multi-objective search-based approach, Proceedings of the 16th ACM International Conference on Predictive Models and Data Analytics in Software Engineering, 21
  9. 10.1145/3540250.3549099 · DOI · Paper page
  10. 10.1145/3377811.3380335 · DOI · Paper page
  11. 10.1609/aaai.v33i01.33014910 · DOI · Paper page
  12. 10.1109/SANER.2015.7081827 · DOI · Paper page
  13. 10.1145/2597073.2597076 · DOI · Paper page
  14. 10.1109/ICSE43902.2021.00027 · DOI · Paper page
  15. vaswani, 2017, Attention is all you need, 30th Advances in Neural Information Processing Systems NIPS, 5998
  16. tufano, 2022, Using pre-trained models to boost code review au-tomation, 44th IEEE/ACM International Conference on Software Engineering ICSE, 2291
  17. 10.1145/3377813.3381365 · DOI
  18. 10.1016/j.infsof.2016.10.006 · DOI
  19. 10.18653/v1/D18-2012 · DOI · Paper page
  20. 10.1109/TSE.2015.2500238 · DOI · Paper page
  21. 10.1145/2897659.2897660 · DOI
  22. 10.1109/ICSM.2015.7332472 · DOI
  23. 10.1109/ICSME.2016.65 · DOI
  24. 10.1145/3338906.3340449 · DOI
  25. 10.1109/ESEM.2013.23 · DOI · Paper page
  26. 10.1109/ICSM.2015.7332454 · DOI · Paper page
  27. 10.1109/SANER.2015.7081824 · DOI · Paper page
  28. 10.1016/j.jss.2019.04.055 · DOI

Cited by

Metadata

Authors
Tufano, R.
Affiliations
SEART @ Software Institute, Università della Svizzera italiana (USI),Switzerland
Venue
2023 IEEE/ACM 45th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion)
Publisher
IEEE
Published
2023-05
Pages
192-196
Cited by
6
References
6
Funders
European Research Council (ERC)

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.