CoChat

Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning

Open access
Ye, Wei, Xie, Rui, Zhang, Jinglei, Hu, Tianxiang, Wang, Xiaoyin, Zhang, Shikun · 2020 · Proceedings of The Web Conference 2020
Cited by 53

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

Abstract

Code summarization generates brief natural language description given a source code snippet, while code retrieval fetches relevant source code given a natural language query. Since both tasks aim to model the association between natural language and programming language, recent studies have combined these two tasks to improve their performance. However, researchers have yet been able to effectively leverage the intrinsic connection between the two tasks as they train these tasks in a separate or pipeline manner, which means their performance can not be well balanced. In this paper, we propose a novel end-to-end model for the two tasks by introducing an additional code generation task. More specifically, we explicitly exploit the probabilistic correlation between code summarization and code generation with dual learning, and utilize the two encoders for code summarization and code generation to train the code retrieval task via multi-task learning. We have carried out extensive experiments on an existing dataset of SQL and Python, and results show that our model can significantly improve the results of the code retrieval task over the-state-of-art models, as well as achieve competitive performance in terms of BLEU score for the code summarization task.

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.1145/3366423.3380295

Cites

3 of 3 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

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 3 references

Cited by

  • No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPT

    Liu, Z., Tang, Y., Luo, X., Zhou, Y., & Zhang, L. F. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3392499 · Cited by 128

  • Reassessing automatic evaluation metrics for code summarization tasks

    Roy, D., Fakhoury, S., & Arnaoudova, V. (2021) · Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3468264.3468588 · Cited by 106

    “For instance, from the 30 papers that declared state-of-the-art summarization techniques in the past 5 years [2ś5, 8ś10, 12, 17ś21, 23ś25, 28, 31, 35, 39, 48, 54ś 57, 59ś61, 65, 66], 15 declare metrics improvements in the 0-2 range [2, 3, 9, 10, 12, 20, 24, 25, 28, 31, 48, 57, 60, 65, 66].”
    Background
  • “CodeNN [29] is an early attempt that uses only code token sequences, followed by various approaches that utilize AST [4, 25, 26, 33, 34, 37, 54], API knowledge [27], type information [9], global context [6, 22, 63], reinforcement learning [61, 62], multi-task learning [67], dual learning [64, 68], and pre-trained lang…”
    Method

See all 53

Metadata

Authors
Ye, W., Xie, R., Zhang, J., Hu, T., Wang, X., & Zhang, S.
Venue
Proceedings of The Web Conference 2020
Publisher
ACM
Published
2020-04-20
Pages
2309-2319
OpenAlex
W3008733198
Cited by
53
References
3
FWCI
7.34
Type
conference paper
Language
en
Open access
gold

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

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning. https://app.cochat.ai/papers/10.1145/3366423.3380295
The paper
Ye, W., Xie, R., Zhang, J., Hu, T., Wang, X., & Zhang, S. (2020). Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning. Proceedings of The Web Conference 2020. https://doi.org/10.1145/3366423.3380295

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.