Cited by 275Software Engineering ResearchTopic ModelingNatural Language Processing Techniques

Retrieval-based neural source code summarization

Zhang, Jian, Wang, Xu, Zhang, Hongyu, Sun, Hailong, Liu, Xudong·2020·Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering

Abstract

Source code summarization aims to automatically generate concise summaries of source code in natural language texts, in order to help developers better understand and maintain source code. Traditional work generates a source code summary by utilizing information retrieval techniques, which select terms from original source code or adapt summaries of similar code snippets. Recent studies adopt Neural Machine Translation techniques and generate summaries from code snippets using encoder-decoder neural networks. The neural-based approaches prefer the high-frequency words in the corpus and have trouble with the low-frequency ones. In this paper, we propose a retrieval-based neural source code summarization approach where we enhance the neural model with the most similar code snippets retrieved from the training set. Our approach can take advantages of both neural and retrieval-based techniques. Specifically, we first train an attentional encoder-decoder model based on the code snippets and the summaries in the training set; Second, given one input code snippet for testing, we retrieve its two most similar code snippets in the training set from the aspects of syntax and semantics, respectively; Third, we encode the input and two retrieved code snippets, and predict the summary by fusing them during decoding. We conduct extensive experiments to evaluate our approach and the experimental results show that our proposed approach can improve the state-of-the-art methods.

Integrity signals

Registry

Crossref · 10.1145/3377811.3380383

Cites

5 of 5 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

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?

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Zhang, J., Wang, X., Zhang, H., Sun, H., & Liu, X.
Affiliations
  • Beihang University (CN)
  • University of Newcastle Australia (AU)
Venue
Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering
Publisher
ACM
Published
2020-06-27
Pages
1385-1397
ISSN
0270-5257 (ISSN-L)
OpenAlex
W3091730360
Cited by
275
References
5
Citations by year
2026: 15 · 2025: 42 · 2024: 55 · 2023: 53 · 2022: 65 · 2021: 36 · 2020: 9
FWCI
30.91
Type
conference paper
Language
en
Open access
closed
Locations
  • ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) (publishedVersion)
  • NOVA (University of Newcastle Australia) (submittedVersion)
Funders
  • National Key Research and Development Program of China (2018YFB1004805)
  • National Natural Science Foundation of China (61702024, 61932007, 61972013, 61421003)
  • ARC DP (200102940)
Topics
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
Keywords
source code summarization, neural machine translation, low-frequency words, program comprehension, code maintenance

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