Low-Resources Project-Specific Code Summarization

Rui Xie, Tianxiang Hu, Wei Ye, Shikun Zhang
10/21/2022
cs.SE

Official code: pkuserc/MPCos_ASE2022 (4 stars, Python, last commit 2022-09-16).

Abstract

Code summarization generates brief natural language descriptions of source code pieces, which can assist developers in understanding code and reduce documentation workload. Recent neural models on code summarization are trained and evaluated on large-scale multi-project datasets consisting of independent code-summary pairs.

Show full abstract

Despite the technical advances, their effectiveness on a specific project is rarely explored. In practical scenarios, however, developers are more concerned with generating high-quality summaries for their working projects. And these projects may not maintain sufficient documentation, hence having few historical code-summary pairs. To this end, we investigate low-resource project-specific code summarization, a novel task more consistent with the developers' requirements. To better characterize project-specific knowledge with limited training samples, we propose a meta transfer learning method by incorporating a lightweight fine-tuning mechanism into a meta-learning framework. Experimental results on nine real-world projects verify the superiority of our method over alternative ones and reveal how the project-specific knowledge is learned.

View on arXivView PDF

Code Implementations(1)

41PythonSep 3, 20224 years ago

Similar Papers

Cite this paper

@article{xie2022lowresources,
  title  = {Low-Resources Project-Specific Code Summarization},
  author = {Rui Xie and Tianxiang Hu and Wei Ye and Shikun Zhang},
  year   = {2022},
  eprint = {2210.11843},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.11843}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.11843.svg)](https://codeofpaper.com/paper/2210.11843)

Discussion