paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Few-shot training LLMs for project-specific code-summarization

面向项目特定代码摘要的 LLM 少样本训练
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 2/10 · 该论文聚焦用少样本训练 GPT Codex 做项目特定代码摘要,属于 LLM 在软件工程任务上的应用,但不涉及静态分析、Agentic 程序分析、浮点程序分析或贝叶斯程序分析,也未指向形式化验证或相关工业落地。其核心目标是提升 LLM/code summarization 效果,与用户主要研究方向匹配度很低。引用 231 inbox
Toufique Ahmed, Premkumar Devanbu
crossref: 2026-09-12

AI 速览

一句话:证明用少量项目特定样本训练 GPT Codex 即可在代码摘要任务上显著超越当前最优模型。

大型语言模型(如 GPT-3、Codex)在多项自然语言任务上达到最优性能,在代码任务上也展现出巨大潜力。其突出能力之一是少样本与零样本学习:仅需极少量示例即可学会执行任务。这一特性在软件工程中尤为契合,因为标识符命名、API、术语与编码模式等现象高度项目特定。然而项目特定数据往往十分有限,尤其在项目早期,因此 LLM 的少样本学习能力可能非常关键。本文研究使用大型 GPT Codex 模型进行少样本训练,并发现证据表明:利用项目特定训练数据,可以显著超越当前最先进的代码摘要模型。

问题
项目特定数据稀缺且项目特有命名、API 与编码惯例普遍存在,通用代码摘要模型难以捕捉这些项目特定信息。
方法
使用大型 GPT Codex 模型进行少样本训练,利用项目特定数据来适配代码摘要任务。
评估
通过实验将少样本训练后的 Codex 与当前最先进的代码摘要模型进行对比,发现前者显著更优。
原文摘要(Abstract)

Very large language models (LLMs), such as GPT-3 and Codex have achieved state-of-the-art performance on several natural-language tasks, and show great promise also for code. A particularly exciting aspect of LLMs is their knack for few-shot and zero-shot learning: they can learn to perform a task with very few examples. Few-shotting has particular synergies in software engineering, where there are a lot of phenomena (identifier names, APIs, terminology, coding patterns) that are known to be highly project-specific. However, project-specific data can be quite limited, especially early in the history of a project; thus the few-shot learning capacity of LLMs might be very relevant. In this paper, we investigate the use few-shot training with the very large GPT (Generative Pre-trained Transformer) Codex model, and find evidence suggesting that one can significantly surpass state-of-the-art models for code-summarization, leveraging project-specific training.

链接与引用

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

BibTeX
@inproceedings{paperbot7223,
  title = {Few-shot training LLMs for project-specific code-summarization},
  author = {Toufique Ahmed and Premkumar Devanbu},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3559555}
}