在SE研究中使用基于transformer的模型的承诺和风险。

IF 6.3 1区 计算机科学 Q1 COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE
Yan Xiao , Xinyue Zuo , Xiaoyue Lu , Jin Song Dong , Xiaochun Cao , Ivan Beschastnikh
{"title":"在SE研究中使用基于transformer的模型的承诺和风险。","authors":"Yan Xiao ,&nbsp;Xinyue Zuo ,&nbsp;Xiaoyue Lu ,&nbsp;Jin Song Dong ,&nbsp;Xiaochun Cao ,&nbsp;Ivan Beschastnikh","doi":"10.1016/j.neunet.2024.107067","DOIUrl":null,"url":null,"abstract":"<div><div>Many Transformer-based pre-trained models for code have been developed and applied to code-related tasks. In this paper, we analyze 519 papers published on this topic during 2017–2023, examine the suitability of model architectures for different tasks, summarize their resource consumption, and look at the generalization ability of models on different datasets.</div><div>We examine three representative pre-trained models for code: CodeBERT, CodeGPT, and CodeT5, and conduct experiments on the four topmost targeted software engineering tasks from the literature: Bug Fixing, Bug Detection, Code Summarization, and Code Search.</div><div>We make four important empirical contributions to the field. First, we demonstrate that encoder-only models (CodeBERT) can outperform encoder–decoder models for general-purpose coding tasks, and showcase the capability of decoder-only models (CodeGPT) for certain generation tasks. Second, we study the most frequently used model-task combinations in the literature and find that less popular models can provide higher performance. Third, we find that CodeBERT is efficient in understanding tasks while CodeT5’s efficiency is unreliable on generation tasks due to its high resource consumption. Fourth, we report on poor model generalization for the most popular benchmarks and datasets on Bug Fixing and Code Summarization tasks.</div><div>We frame our contributions in terms of promises and perils, and document the numerous practical issues in advancing future research on transformer-based models for code-related tasks.</div></div>","PeriodicalId":49763,"journal":{"name":"Neural Networks","volume":"184 ","pages":"Article 107067"},"PeriodicalIF":6.3000,"publicationDate":"2024-12-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Promises and perils of using Transformer-based models for SE research\",\"authors\":\"Yan Xiao ,&nbsp;Xinyue Zuo ,&nbsp;Xiaoyue Lu ,&nbsp;Jin Song Dong ,&nbsp;Xiaochun Cao ,&nbsp;Ivan Beschastnikh\",\"doi\":\"10.1016/j.neunet.2024.107067\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Many Transformer-based pre-trained models for code have been developed and applied to code-related tasks. In this paper, we analyze 519 papers published on this topic during 2017–2023, examine the suitability of model architectures for different tasks, summarize their resource consumption, and look at the generalization ability of models on different datasets.</div><div>We examine three representative pre-trained models for code: CodeBERT, CodeGPT, and CodeT5, and conduct experiments on the four topmost targeted software engineering tasks from the literature: Bug Fixing, Bug Detection, Code Summarization, and Code Search.</div><div>We make four important empirical contributions to the field. First, we demonstrate that encoder-only models (CodeBERT) can outperform encoder–decoder models for general-purpose coding tasks, and showcase the capability of decoder-only models (CodeGPT) for certain generation tasks. Second, we study the most frequently used model-task combinations in the literature and find that less popular models can provide higher performance. Third, we find that CodeBERT is efficient in understanding tasks while CodeT5’s efficiency is unreliable on generation tasks due to its high resource consumption. Fourth, we report on poor model generalization for the most popular benchmarks and datasets on Bug Fixing and Code Summarization tasks.</div><div>We frame our contributions in terms of promises and perils, and document the numerous practical issues in advancing future research on transformer-based models for code-related tasks.</div></div>\",\"PeriodicalId\":49763,\"journal\":{\"name\":\"Neural Networks\",\"volume\":\"184 \",\"pages\":\"Article 107067\"},\"PeriodicalIF\":6.3000,\"publicationDate\":\"2024-12-24\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Neural Networks\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0893608024009961\",\"RegionNum\":1,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Neural Networks","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0893608024009961","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0

摘要

已经开发了许多基于transformer的预训练代码模型,并将其应用于与代码相关的任务。在本文中,我们分析了2017-2023年期间发表的关于该主题的519篇论文,检查了模型架构对不同任务的适用性,总结了它们的资源消耗,并研究了模型在不同数据集上的泛化能力。我们研究了三个代表性的预训练代码模型:CodeBERT、CodeGPT和CodeT5,并对文献中最具针对性的四个软件工程任务进行了实验:Bug修复、Bug检测、代码总结和代码搜索。我们对这个领域做出了四个重要的实证贡献。首先,我们证明了纯编码器模型(CodeBERT)在通用编码任务中优于编码器-解码器模型,并展示了纯解码器模型(CodeGPT)在某些生成任务中的能力。其次,我们研究了文献中最常用的模型-任务组合,发现不太流行的模型可以提供更高的性能。第三,我们发现CodeBERT在理解任务方面是高效的,而CodeT5由于其高资源消耗,在生成任务方面的效率是不可靠的。第四,我们报告了在Bug修复和代码总结任务中最流行的基准测试和数据集的糟糕模型泛化。我们根据承诺和风险来构建我们的贡献,并记录了在推进基于代码相关任务的基于转换器的模型的未来研究中的许多实际问题。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Promises and perils of using Transformer-based models for SE research
Many Transformer-based pre-trained models for code have been developed and applied to code-related tasks. In this paper, we analyze 519 papers published on this topic during 2017–2023, examine the suitability of model architectures for different tasks, summarize their resource consumption, and look at the generalization ability of models on different datasets.
We examine three representative pre-trained models for code: CodeBERT, CodeGPT, and CodeT5, and conduct experiments on the four topmost targeted software engineering tasks from the literature: Bug Fixing, Bug Detection, Code Summarization, and Code Search.
We make four important empirical contributions to the field. First, we demonstrate that encoder-only models (CodeBERT) can outperform encoder–decoder models for general-purpose coding tasks, and showcase the capability of decoder-only models (CodeGPT) for certain generation tasks. Second, we study the most frequently used model-task combinations in the literature and find that less popular models can provide higher performance. Third, we find that CodeBERT is efficient in understanding tasks while CodeT5’s efficiency is unreliable on generation tasks due to its high resource consumption. Fourth, we report on poor model generalization for the most popular benchmarks and datasets on Bug Fixing and Code Summarization tasks.
We frame our contributions in terms of promises and perils, and document the numerous practical issues in advancing future research on transformer-based models for code-related tasks.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Neural Networks
Neural Networks 工程技术-计算机:人工智能
CiteScore
13.90
自引率
7.70%
发文量
425
审稿时长
67 days
期刊介绍: Neural Networks is a platform that aims to foster an international community of scholars and practitioners interested in neural networks, deep learning, and other approaches to artificial intelligence and machine learning. Our journal invites submissions covering various aspects of neural networks research, from computational neuroscience and cognitive modeling to mathematical analyses and engineering applications. By providing a forum for interdisciplinary discussions between biology and technology, we aim to encourage the development of biologically-inspired artificial intelligence.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信