paper-with-me

Papers

Automatic Code Summarization via ChatGPT: How Far Are We?

2023-05-22 · Weisong Sun, Chunrong Fang, Yudu You, Yun Miao, Yi Liu, Yuekang Li, Gelei Deng, Shenghan Huang, Yuchen Chen, Quanjun Zhang, Hanwei Qian, Yang Liu, Zhenyu Chen

To support software developers in understanding and maintaining programs, various automatic code summarization techniques have been proposed to generate a concise natural language comment for a given code snippet. Recently, the emergence of large language models (LLMs) has led to a great boost in the performance of natural language processing tasks. Among them, ChatGPT is the most popular one which has attracted wide attention from the software engineering community. However, it still remains unclear how ChatGPT performs in (automatic) code summarization. Therefore, in this paper, we focus on evaluating ChatGPT on a widely-used Python dataset called CSN-Python and comparing it with several state-of-the-art (SOTA) code summarization models. Specifically, we first explore an appropriate prompt to guide ChatGPT to generate in-distribution comments. Then, we use such a prompt to ask ChatGPT to generate comments for all code snippets in the CSN-Python test set. We adopt three widely-used metrics (including BLEU, METEOR, and ROUGE-L) to measure the quality of the comments generated by ChatGPT and SOTA models (including NCS, CodeBERT, and CodeT5). The experimental results show that in terms of BLEU and ROUGE-L, ChatGPT's code summarization performance is significantly worse than all three SOTA models. We also present some cases and discuss the advantages and disadvantages of ChatGPT in code summarization. Based on the findings, we outline several open challenges and opportunities in ChatGPT-based code summarization.

📄 PDF Abstract BibTeX arXiv:2305.12865

Code (0)

등록된 구현이 없습니다.

Tasks

Code Summarization

Methods 이 논문이 사용한 방법론

Test 설명 없음
CodeBERT 설명 없음

Similar Papers 제목 키워드 기반

Human-like Summarization Evaluation with ChatGPT

2023-04-05 · Mingqi Gao, Jie Ruan, Renliang Sun, Xunjian Yin 외

Evaluating text summarization is a challenging problem, and existing evaluation metrics are far from satisfactory. In this study, we explored ChatGPT's ability to perform human-like summarization evaluation using four hu…

Text Summarization

Is ChatGPT a Good NLG Evaluator? A Preliminary Study

2023-03-07 · Jiaan Wang, Yunlong Liang, Fandong Meng, Zengkui Sun 외

Recently, the emergence of ChatGPT has attracted wide attention from the computational linguistics community. Many prior studies have shown that ChatGPT achieves remarkable performance on various NLP tasks in terms of au…

nlg evaluationStory GenerationText Generation

Personalized Abstractive Summarization by Tri-agent Generation Pipeline

2023-05-04 · Wen Xiao, Yujia Xie, Giuseppe Carenini, Pengcheng He

Tailoring outputs from large language models, like ChatGPT, to implicit user preferences remains a challenge despite their impressive generative capabilities. In this paper, we propose a tri-agent generation pipeline com…

Abstractive Text SummarizationLanguage ModelingLanguage ModellingLarge Language Model

Information-Theoretic Distillation for Reference-less Summarization

2024-03-20 · JaeHun Jung, Ximing Lu, Liwei Jiang, Faeze Brahman 외

The current winning recipe for automatic summarization is using proprietary large-scale language models (LLMs) such as ChatGPT as is, or imitation learning from them as teacher models. While increasingly ubiquitous depen…

Imitation Learning

Hybrid Long Document Summarization using C2F-FAR and ChatGPT: A Practical Study

2023-06-01 · Guang Lu, Sylvia B. Larcher, Tu Tran

Text summarization is a downstream natural language processing (NLP) task that challenges the understanding and generation capabilities of language models. Considerable progress has been made in automatically summarizing…

ArticlesBenchmarkingBook summarizationDocument Summarization+2