Pith. sign in

REVIEW 4 cited by

A Prompt Learning Framework for Source Code Summarization

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2312.16066 v2 pith:JKGY2XK5 submitted 2023-12-26 cs.SE cs.AI

classification cs.SEcs.AI
keywords llmscodefine-tuningpromptcssummarizationprompttask-orientedlearning
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

(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.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Multi-Agent LLM Collaboration for Unit Test Generation via Human-Testing-Inspired Workflows

    cs.SE 2026-07 conditional novelty 6.0 of 10

    A three-agent LLM workflow plus a test-specialized knowledge graph generates unit tests that beat prior LLM and search-based tools on coverage and mutation score.

  2. Can the Rookies Cut the Tough Cookie? Exploring the Use of LLMs for SQL Equivalence Checking

    cs.DB 2024-12 conditional novelty 6.0 of 10

    LLMs, especially GPT-4, can classify SQL query equivalence on complex real-world assignment queries far beyond formal tools' coverage, but they systematically over-predict equivalence.

  3. A Large-scale Empirical Study on Fine-tuning Large Language Models for Unit Testing

    cs.SE 2024-12 reject novelty 5.0 of 10

    A broad benchmark of fine-tuned LLMs across three unit-testing tasks shows strong gains on assertion and test evolution, but not on test generation.

  4. Resource-Efficient & Effective Code Summarization

    cs.SE 2025-02 conditional novelty 4.0 of 10

    QLoRA fine-tuning outperforms full fine-tuning for code summarization on CodeXGLUE while cutting GPU memory by roughly two-thirds.

Pith tools