arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.16673cs.SEcs.AIcs.IR
收藏

探索用于代码解释的大型语言模型

Exploring Large Language Models for Code Explanation

Bosch Research and Technology Centre(博世研究与技术中心);Bosch Global Software Technologies(博世全球软件技术公司)

Paheli Bhattacharya, Manojit Chakraborty, Kartheek N S N Palepu, Vikas Pandey, Ishan Dindorkar, Rakesh Rajpurohit, Rishabh Gupta

AI总结:

本文研究使用大型语言模型为代码片段生成自然语言摘要,发现代码专用LLM优于通用LLM,且零样本方法在训练与测试分布差异大的数据集上表现更好。

摘要:

通过解释性文本自动化代码文档在代码理解方面具有显著益处。大型语言模型(LLMs)在自然语言处理领域取得了显著进展,尤其是在代码生成和代码摘要等软件工程任务中。本研究专门探讨了使用各种大型语言模型为代码片段生成自然语言摘要的任务。研究结果表明,代码大型语言模型优于通用大型语言模型,并且在处理训练集与测试集分布不同的数据集时,零样本方法能产生更优的结果。

英文摘要:

Automating code documentation through explanatory text can prove highly beneficial in code understanding. Large Language Models (LLMs) have made remarkable strides in Natural Language Processing, especially within software engineering tasks such as code generation and code summarization. This study specifically delves into the task of generating natural-language summaries for code snippets, using various LLMs. The findings indicate that Code LLMs outperform their generic counterparts, and zero-shot methods yield superior results when dealing with datasets with dissimilar distributions between training and testing sets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑