paper-with-me

홈 › Papers

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

2020-02-24 · Wei Ye, Rui Xie, Jinglei Zhang, Tianxiang Hu, Xiaoyin Wang, Shikun Zhang

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.

📄 PDF Abstract BibTeX arXiv:2002.10198

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationCode SummarizationMulti-Task LearningRetrievalSource Code Summarization

Similar Papers 제목 키워드 기반

Code Retrieval for MILP Instance Generation

2025-05-11 · Tianxing Yang, Huigen Ye, Hua Xu

Mixed-Integer Linear Programming (MILP) is widely used in fields such as scheduling, logistics, and planning. Enhancing the performance of MILP solvers, particularly learning-based solvers, requires substantial amounts o…

Code GenerationRetrievalScheduling

MoRAG -- Multi-Fusion Retrieval Augmented Generation for Human Motion

2024-09-18 · Sai Shashank Kalakonda, Shubh Maheshwari, Ravi Kiran Sarvadevabhatla

We introduce MoRAG, a novel multi-part fusion based retrieval-augmented generation strategy for text-based human motion generation. The method enhances motion diffusion models by leveraging additional knowledge obtained …

Motion GenerationRetrievalRetrieval-augmented Generation

Model-Driven Quantum Code Generation Using Large Language Models and Retrieval-Augmented Generation

2025-08-28 · Nazanin Siavash, Armin Moin arxiv

This paper introduces a novel research direction for model-to-text/code transformations by leveraging Large Language Models (LLMs) that can be enhanced with Retrieval-Augmented Generation (RAG) pipelines. The focus is on…

Code Generation

Text-to-CAD Retrieval: a Strong Baseline

2026-05-07 · Honghu Pan, Zibo Du, Daxiang Liu, Chengliang Liu 외 arxiv

Text-based retrieval of Computer-Aided Design (CAD) models is a critical yet underexplored task for the reuse of legacy industrial designs. Existing CAD repositories are typically searched using filenames or directories,…

Natural Language QueriesCross-Modal RetrievalPoint Clouds

UniGen: A Unified Generative Framework for Retrieval and Question Answering with Large Language Models

2023-12-18 · Xiaoxi Li, Yujia Zhou, Zhicheng Dou

Generative information retrieval, encompassing two major tasks of Generative Document Retrieval (GDR) and Grounded Answer Generation (GAR), has gained significant attention in the area of information retrieval and natura…

Answer GenerationInformation RetrievalQuestion AnsweringRetrieval