paper-with-me

Papers

A Prompt Learning Framework for Source Code Summarization

2023-12-26 · Tingting Xu, Yun Miao, Chunrong Fang, Hanwei Qian, Xia Feng, Zhenpeng Chen, Chong Wang, Jian Zhang, Weisong Sun, Zhenyu Chen, Yang Liu

(Source) code summarization is the task of automatically generating natural language summaries (also called comments) for given code snippets. Recently, with the successful application of large language models (LLMs) in numerous fields, software engineering researchers have also attempted to adapt LLMs to solve code summarization tasks. The main adaptation schemes include instruction prompting, task-oriented (full-parameter) fine-tuning, and parameter-efficient fine-tuning (PEFT). However, instruction prompting involves designing crafted prompts and requires users to have professional domain knowledge, while task-oriented fine-tuning requires high training costs, and effective, tailored PEFT methods for code summarization are still lacking. This paper proposes an effective prompt learning framework for code summarization called PromptCS. It no longer requires users to rack their brains to design effective prompts. Instead, PromptCS trains a prompt agent that can generate continuous prompts to unleash the potential for LLMs in code summarization. Compared to the human-written discrete prompt, the continuous prompts are produced under the guidance of LLMs and are therefore easier to understand by LLMs. PromptCS is non-invasive to LLMs and freezes the parameters of LLMs when training the prompt agent, which can greatly reduce the requirements for training resources. Our comprehensive experimental results show that PromptCS significantly outperforms instruction prompting schemes (including zero-shot learning and few-shot learning) on all four widely used metrics, and is comparable to the task-oriented fine-tuning scheme. In some base LLMs, e.g., StarCoderBase-1B and -3B, PromptCS even outperforms the task-oriented fine-tuning scheme. More importantly, the training efficiency of PromptCS is faster than the task-oriented fine-tuning scheme, with a more pronounced advantage on larger LLMs.

📄 PDF Abstract BibTeX arXiv:2312.16066

Code (1)

wssun/promptcs 공식 구현 pytorch

Tasks

Code SummarizationFew-Shot Learningparameter-efficient fine-tuningPrompt LearningSource Code SummarizationZero-Shot Learning

Methods 이 논문이 사용한 방법론

BASE 설명 없음

Similar Papers 제목 키워드 기반

V2Xum-LLM: Cross-Modal Video Summarization with Temporal Prompt Instruction Tuning

2024-04-18 · Hang Hua, Yunlong Tang, Chenliang Xu, Jiebo Luo

Video summarization aims to create short, accurate, and cohesive summaries of longer videos. Despite the existence of various video summarization datasets, a notable limitation is their limited amount of source videos, w…

Text SummarizationVideo Summarization

Source Code Summarization in the Era of Large Language Models

2024-07-09 · Weisong Sun, Yun Miao, Yuekang Li, Hongyu Zhang 외

To support software developers in understanding and maintaining programs, various automatic (source) code summarization techniques have been proposed to generate a concise natural language summary (i.e., comment) for a g…

Code SummarizationSource Code Summarization

Prompted Aspect Key Point Analysis for Quantitative Review Summarization

2024-07-19 · An Quang Tang, Xiuzhen Zhang, Minh Ngoc Dinh, Erik Cambria

Key Point Analysis (KPA) aims for quantitative summarization that provides key points (KPs) as succinct textual summaries and quantities measuring their prevalence. KPA studies for arguments and reviews have been reporte…

In-Context LearningSentiment Analysis

Salient Information Prompting to Steer Content in Prompt-based Abstractive Summarization

2024-10-03 · Lei Xu, Mohammed Asad Karim, Saket Dingliwal, Aparna Elangovan

Large language models (LLMs) can generate fluent summaries across domains using prompting techniques, reducing the need to train models for summarization applications. However, crafting effective prompts that guide LLMs …

Abstractive Text SummarizationHallucinationSentenceText Summarization

PromptSum: Parameter-Efficient Controllable Abstractive Summarization

2023-08-06 · Mathieu Ravaut, Hailin Chen, Ruochen Zhao, Chengwei Qin 외

Prompt tuning (PT), a parameter-efficient technique that only tunes the additional prompt embeddings while keeping the backbone pre-trained language model (PLM) frozen, has shown promising results in language understandi…

Abstractive Text SummarizationLanguage ModelingLanguage Modelling