• Home
  • Search
  • Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning
  • Open Access IconOpen Access
  • Cite Icon78
  • https://doi.org/10.1145/3366423.3380295Copy DOI Icon

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

  • Apr 20, 2020
  • Wei Ye +5 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
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.

Similar Papers
  • Video Transcripts

Retrieval Augmented Code Generation and Summarization

  • Oct 21, 2021
  • Underline Science Inc.
  • The 2021 Conference On Empirical Methods In Natural Language Processing 2021
  • Research Article
  • Citations8

Building a Coding Assistant via the Retrieval-Augmented Language Model

  • Jan 17, 2025
  • ACM Transactions on Information Systems
  • Xinze Li +8
  • Video Transcripts

Unified Pre-training for Program Understanding and Generation

  • May 25, 2021
  • Underline Science Inc.
  • Saikat Chakraborty
  • Video Transcripts

CoDesc: A Large Code–Description Parallel Dataset

  • Aug 03, 2021
  • Underline Science Inc.
  • Masum Hasan +1
  • Research Article
  • Citations11

Do Code Summarization Models Process Too Much Information? Function Signature May Be All That Is Needed

  • Jun 27, 2024
  • ACM Transactions on Software Engineering and Methodology
  • Xi Ding +5
  • Research Article
  • Citations86

Deep Graph Matching and Searching for Semantic Code Retrieval

  • May 10, 2021
  • ACM Transactions on Knowledge Discovery from Data
  • Xiang Ling +8
  • Research Article

A Survey on Transformer-based Models in Code Summarization

  • Mar 22, 2025
  • International Research Journal on Advanced Engineering Hub (IRJAEH)
  • Suraj Nate +3
  • Research Article
  • Citations47

CRaDLe: Deep code retrieval based on semantic Dependency Learning

  • Apr 26, 2021
  • Neural Networks
  • Wenchao Gu +6
  • Conference Article
  • Citations621

Deep code search

  • May 27, 2018
  • Xiaodong Gu +2
  • Research Article
  • Citations6

CoSS: leveraging statement semantics for code summarization

  • Jan 01, 2023
  • IEEE Transactions on Software Engineering
  • Chaochen Shi +5
  • PDF
  • Conference Article
  • Citations100

CoTexT: Multi-task Learning with Code-Text Transformer

  • Jan 01, 2021
  • Long Phan +6
  • Conference Article
  • Citations13

Generating VHDL models from natural language descriptions

  • Sep 23, 1994
  • Walling R Cyre +3
  • Research Article

Cloud-assisted LLM-enhanced datasets for AST hierarchy-aware code summarization model

  • Feb 14, 2026
  • Journal of Cloud Computing
  • Junsan Zhang +5
  • Conference Article
  • Citations3

Advances in Code Summarization

  • May 01, 2021
  • Utkarsh Desai +2
  • Research Article
  • Citations7

COFFE: A Code Efficiency Benchmark for Code Generation

  • Jun 19, 2025
  • Proceedings of the ACM on Software Engineering
  • Yun Peng +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.