Pith. sign in

REVIEW 2 cited by

Evaluating Code Summarization Techniques: A New Metric and an Empirical Characterization

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.15475 v1 pith:QRRY4C2P submitted 2023-12-24 cs.SE

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

Several code summarization techniques have been proposed in the literature to automatically document a code snippet or a function. Ideally, software developers should be involved in assessing the quality of the generated summaries. However, in most cases, researchers rely on automatic evaluation metrics such as BLEU, ROUGE, and METEOR. These metrics are all based on the same assumption: The higher the textual similarity between the generated summary and a reference summary written by developers, the higher its quality. However, there are two reasons for which this assumption falls short: (i) reference summaries, e.g., code comments collected by mining software repositories, may be of low quality or even outdated; (ii) generated summaries, while using a different wording than a reference one, could be semantically equivalent to it, thus still being suitable to document the code snippet. In this paper, we perform a thorough empirical investigation on the complementarity of different types of metrics in capturing the quality of a generated summary. Also, we propose to address the limitations of existing metrics by considering a new dimension, capturing the extent to which the generated summary aligns with the semantics of the documented code snippet, independently from the reference summary. To this end, we present a new metric based on contrastive learning to capture said aspect. We empirically show that the inclusion of this novel dimension enables a more effective representation of developers' evaluations regarding the quality of automatically generated summaries.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

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

  1. On the Compression of Language Models for Code: An Empirical Study on CodeBERT

    cs.SE 2024-12 conditional novelty 5.0 of 10

    On CodeBERT, quantization best preserves effectiveness while cutting size, distillation best improves latency, and pruning only pays off in specific CPU configurations.

  2. Leveraging LLMs for Legacy Code Modernization: Challenges and Opportunities for LLM-Generated Documentation

    cs.LG 2024-11 conditional novelty 5.0 of 10

    On legacy MUMPS code, LLM-generated line comments are rated almost as good as human-written ones; on IBM assembly they are rated low, and standard automated metrics do not predict human quality scores.

Pith tools