Paper
18 November 2024 Exploring ChatGPT's code summarization capabilities: an empirical study
Kang Wang, Guohua Shen, Zhiqiu Huang, Xinbo Zhang
Author Affiliations +
Proceedings Volume 13403, International Conference on Algorithms, High Performance Computing, and Artificial Intelligence (AHPCAI 2024) ; 134032I (2024) https://doi.org/10.1117/12.3051717
Event: International Conference on Algorithms, High Performance Computing, and Artificial Intelligence, 2024, Zhengzhou, China
Abstract
Various automated code summarization techniques enhance the efficiency and accuracy of code annotations, enabling succinct natural language comments for code snippets. Recently, large language models (LLMs) have significantly improved natural language processing tasks. Among them, ChatGPT, based on the GPT-3.5 architecture, has gained widespread attention in academia and industry. Previous studies have also tested the ability of ChatGPT in code summarization, designing heuristic questions to explore an appropriate prompt that can guide ChatGPT to generate comments. In contrast, we have designed a more targeted and adaptive suggestion word strategy to study the impact of prompt design on model generation summary. Additionally, we have made extensive data fine-tuning to enhance ChatGPT's ability in code summarization tasks. The experimental results demonstrate that our prompt strategy has significantly improved the quality of code summaries generated by ChatGPT compared to previous studies, but still falls short of the SOTA model.
(2024) Published by SPIE. Downloading of the abstract is permitted for personal use only.
Kang Wang, Guohua Shen, Zhiqiu Huang, and Xinbo Zhang "Exploring ChatGPT's code summarization capabilities: an empirical study", Proc. SPIE 13403, International Conference on Algorithms, High Performance Computing, and Artificial Intelligence (AHPCAI 2024) , 134032I (18 November 2024); https://doi.org/10.1117/12.3051717
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Education and training

Data modeling

Performance modeling

Design

Computer programming languages

Data analysis

Deep learning

Back to Top