Pith. sign in

REVIEW 1 cited by

Context-aware Code Summary Generation

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 2408.09006 v1 pith:YEKF6QCO submitted 2024-08-16 cs.SE

classification cs.SE
keywords codeapproachmodelexistslanguagemethodsummariessummarization
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Code summary generation is the task of writing natural language descriptions of a section of source code. Recent advances in Large Language Models (LLMs) and other AI-based technologies have helped make automatic code summarization a reality. However, the summaries these approaches write tend to focus on a narrow area of code. The results are summaries that explain what that function does internally, but lack a description of why the function exists or its purpose in the broader context of the program. In this paper, we present an approach for including this context in recent LLM-based code summarization. The input to our approach is a Java method and that project in which that method exists. The output is a succinct English description of why the method exists in the project. The core of our approach is a 350m parameter language model we train, which can be run locally to ensure privacy. We train the model in two steps. First we distill knowledge about code summarization from a large model, then we fine-tune the model using data from a study of human programmer who were asked to write code summaries. We find that our approach outperforms GPT-4 on this task.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

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

  1. Simple and Effective Baselines for Code Summarisation Evaluation

    cs.CL 2025-05 conditional novelty 5.0 of 10

    Asking an LLM to rate a code summary directly correlates with human judgments as well as or better than n-gram, learned, and embedding metrics, even without a reference summary.

Pith tools