@inproceedings{437f03e30ab44145998ebb0c6783d656,
title = "Retrieval Augmented Code Generation and Summarization",
abstract = "Software developers write a lot of source code and documentation during software development. Intrinsically, developers often recall parts of source code or code summaries that they had written in the past while implementing software or documenting them. To mimic developers' code or summary generation behavior, we propose a retrieval augmented framework, REDCODER, that retrieves relevant code or summaries from a retrieval database and provides them as a supplement to code generation or summarization models. REDCODER has a couple of uniqueness. First, it extends the state-of-the-art dense retrieval technique to search for relevant code or summaries. Second, it can work with retrieval databases that include unimodal (only code or natural language description) or bimodal instances (code-description pairs). We conduct experiments and extensive analysis on two benchmark datasets of code generation and summarization in Java and Python, and the promising results endorse the effectiveness of our proposed retrieval augmented framework.",
author = "Parvez, {Md Rizwan} and Ahmad, {Wasi Uddin} and Saikat Chakraborty and Baishakhi Ray and Chang, {Kai Wei}",
note = "Publisher Copyright: {\textcopyright} 2021 Association for Computational Linguistics.; 2021 Findings of the Association for Computational Linguistics, Findings of ACL: EMNLP 2021 ; Conference date: 07-11-2021 Through 11-11-2021",
year = "2021",
language = "English",
series = "Findings of the Association for Computational Linguistics, Findings of ACL: EMNLP 2021",
publisher = "Association for Computational Linguistics (ACL)",
pages = "2719--2734",
editor = "Marie-Francine Moens and Xuanjing Huang and Lucia Specia and Yih, {Scott Wen-Tau}",
booktitle = "Findings of the Association for Computational Linguistics, Findings of ACL",
address = "United States",
}