paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Low-Resources Project-Specific Code Summarization

低资源项目特定代码摘要
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 2/10 · 该论文研究低资源项目特定代码摘要,属于软件工程/代码智能方向,但与用户的静态分析、形式化验证、浮点程序分析、贝叶斯程序分析等核心方向无关;也未涉及 LLM/Agent 改进静态分析或 Agentic 程序分析。引用 16 inbox
Rui Xie, Tianxiang Hu, Wei Ye, Shikun Zhang
crossref: 2026-09-12

AI 速览

一句话:提出元迁移学习方法,将轻量微调融入元学习,用于低资源项目特定代码摘要生成。

代码摘要旨在为代码片段生成自然语言描述,帮助开发者理解代码并减轻文档负担。现有神经模型多在大规模多项目独立代码-摘要对上训练和评估,在具体项目上的效果鲜有探索。实际中开发者更关心自己项目的摘要质量,但项目往往缺乏文档和历史代码-摘要对。为此,论文研究低资源项目特定代码摘要任务。为在有限训练样本下刻画项目特定知识,提出一种元迁移学习方法,将轻量微调机制融入元学习框架。在九个真实项目上的实验验证了该方法优于其他方法,并揭示了项目特定知识的学习方式。

问题
现有代码摘要模型多依赖大规模多项目数据,难以适应文档和历史代码-摘要对稀缺的具体项目;论文研究如何为低资源项目生成高质量、项目特定的代码摘要。
方法
提出一种元迁移学习方法,将轻量微调机制融入元学习框架,以有限训练样本捕获项目特定知识。
评估
在九个真实项目上进行实验,与多种替代方法比较,并分析项目特定知识的学习方式。
原文摘要(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. 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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot7159,
  title = {Low-Resources Project-Specific Code Summarization},
  author = {Rui Xie and Tianxiang Hu and Wei Ye and Shikun Zhang},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3556909}
}