Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). First posted on arXiv 24 Feb 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 5; 2023: 4; 2024: 3.
16 papers.
Sort:
By area:
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
- 2024HumanEvalComm: Benchmarking the Communication Competence of Code Generation for LLMs and LLM Agentcited by 24
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
- 2022Source Code Summarization with Structural Relative Position Guided Transformercited by 14
- 2023A Topic-aware Summarization Framework with Different Modal Side Informationcited by 6
- 2021Exploiting Method Names to Improve Code Summarization: A Deliberation Multi-Task Learning Approachcited by 5
- 2023Large Language Models Should Ask Clarifying Questions to Increase Confidence in Generated Codecited by 4
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
- 2022NS3: Neuro-Symbolic Semantic Code Searchcited by 3
4 more
- 2024Identifying Performance-Sensitive Configurations in Software Systems through Code Analysis with LLM Agentscited by 2
- 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Searchcited by 1
- 2024Selective Shot Learning for Code Explanationcited by 1
- 2023Cone: Unsupervised Contrastive Opinion Extractioncited by 0
- 2024Selective Shot Learning for Code Explanation17 Dec 2024
- 2024Identifying Performance-Sensitive Configurations in Software Systems through Code Analysis with LLM Agents18 Jun 2024
- 2024HumanEvalComm: Benchmarking the Communication Competence of Code Generation for LLMs and LLM Agent31 May 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Large Language Models Should Ask Clarifying Questions to Increase Confidence in Generated Code25 Aug 2023
- 2023A Topic-aware Summarization Framework with Different Modal Side Information19 May 2023
- 2023Cone: Unsupervised Contrastive Opinion Extraction8 May 2023
- 2022NS3: Neuro-Symbolic Semantic Code Search21 May 2022
- 2022CoCoSoDa: Effective Contrastive Learning for Code Search7 Apr 2022
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Search14 Feb 2022
- 2022Source Code Summarization with Structural Relative Position Guided Transformer14 Feb 2022
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspective10 Feb 2022
4 more
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021On the Evaluation of Neural Code Summarization15 Jul 2021
- 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Search10 Jul 2021
- 2021Exploiting Method Names to Improve Code Summarization: A Deliberation Multi-Task Learning Approach21 Mar 2021
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
- 2022Source Code Summarization with Structural Relative Position Guided Transformercited by 14
- 2023A Topic-aware Summarization Framework with Different Modal Side Informationcited by 6
- 2021Exploiting Method Names to Improve Code Summarization: A Deliberation Multi-Task Learning Approachcited by 5
- 2023Large Language Models Should Ask Clarifying Questions to Increase Confidence in Generated Codecited by 4
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
- 2022NS3: Neuro-Symbolic Semantic Code Searchcited by 3
- 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Searchcited by 1
12 most cited of 14 All 14 (JSON)
- 2024Selective Shot Learning for Code Explanation17 Dec 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Large Language Models Should Ask Clarifying Questions to Increase Confidence in Generated Code25 Aug 2023
- 2023A Topic-aware Summarization Framework with Different Modal Side Information19 May 2023
- 2023Cone: Unsupervised Contrastive Opinion Extraction8 May 2023
- 2022NS3: Neuro-Symbolic Semantic Code Search21 May 2022
- 2022CoCoSoDa: Effective Contrastive Learning for Code Search7 Apr 2022
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Search14 Feb 2022
- 2022Source Code Summarization with Structural Relative Position Guided Transformer14 Feb 2022
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspective10 Feb 2022
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021On the Evaluation of Neural Code Summarization15 Jul 2021
12 newest of 14 All 14 (JSON)