清晨好,您是今天最早来到科研通的研友!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您科研之路漫漫前行!

On the Effectiveness of Large Language Models in Domain-Specific Code Generation

计算机科学 领域特定语言 代码生成 程序设计语言 编码(集合论) 领域(数学分析) 数学 计算机安全 钥匙(锁) 数学分析 集合(抽象数据类型)
作者
Xiaodong Gu,Meng Chen,Yalan Lin,Y. S. Hu,Hongyu Zhang,Chengcheng Wan,Zhao Wei,Yong Xu,Juhong Wang
出处
期刊:ACM Transactions on Software Engineering and Methodology [Association for Computing Machinery]
被引量:14
标识
DOI:10.1145/3697012
摘要

Large language models (LLMs) such as ChatGPT have shown remarkable capabilities in code generation. Despite significant achievements, they rely on enormous training data to acquire a broad spectrum of open-domain knowledge. Besides, their evaluation revolves around open-domain benchmarks like HumanEval, which primarily consist of programming contests. Therefore, it is hard to fully characterize the intricacies and challenges associated with particular domains (e.g., web, game, and math). In this paper, we conduct an in-depth study of the LLMs in domain-specific code generation. Our results demonstrate that LLMs exhibit sub-optimal performance in generating domain-specific code, due to their limited proficiency in utilizing domain-specific libraries. We further observe that incorporating API knowledge as prompts can empower LLMs to generate more professional code. Based on these findings, we further investigate how to effectively incorporate API knowledge into the code generation process. We experiment with three strategies for incorporating domain knowledge, namely, external knowledge inquirer, chain-of-thought prompting, and chain-of-thought fine-tuning. We refer to these strategies as a new code generation approach called DomCoder . Experimental results show that all strategies of DomCoder improve the effectiveness of domain-specific code generation under certain settings.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
8秒前
9秒前
顾矜应助Jun采纳,获得30
13秒前
17秒前
西瓜发布了新的文献求助10
24秒前
nav完成签到 ,获得积分10
25秒前
Jun完成签到,获得积分20
34秒前
Alex-Song完成签到 ,获得积分0
39秒前
wbqdssl发布了新的文献求助10
58秒前
烟花应助淡定亦丝采纳,获得10
58秒前
timesever完成签到,获得积分10
1分钟前
斯文败类应助wbqdssl采纳,获得10
1分钟前
哎健身完成签到 ,获得积分10
1分钟前
宋艳芳完成签到,获得积分10
1分钟前
JOJO完成签到 ,获得积分10
1分钟前
踏实乌冬面完成签到,获得积分10
1分钟前
xyx1995完成签到,获得积分10
1分钟前
住在魔仙堡的鱼完成签到 ,获得积分10
1分钟前
CodeCraft应助xyx1995采纳,获得10
1分钟前
Hello应助小化采纳,获得10
1分钟前
1分钟前
1分钟前
1分钟前
1分钟前
1分钟前
淡定亦丝发布了新的文献求助10
1分钟前
脑洞疼应助西瓜采纳,获得10
1分钟前
wbqdssl发布了新的文献求助10
1分钟前
King完成签到 ,获得积分10
1分钟前
CipherSage应助科研通管家采纳,获得10
2分钟前
Singularity应助科研通管家采纳,获得20
2分钟前
Singularity应助科研通管家采纳,获得20
2分钟前
一个爱打乒乓球的彪完成签到 ,获得积分10
2分钟前
Akim应助wbqdssl采纳,获得10
2分钟前
打打应助stanfordlee采纳,获得10
2分钟前
杨永佳666完成签到 ,获得积分10
2分钟前
Bethune124完成签到 ,获得积分10
2分钟前
眯眯眼的安雁完成签到 ,获得积分10
2分钟前
不知名小伙完成签到 ,获得积分10
2分钟前
2分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Organometallic Chemistry of the Transition Metals 800
Chemistry and Physics of Carbon Volume 18 800
The Organometallic Chemistry of the Transition Metals 800
The formation of Australian attitudes towards China, 1918-1941 640
Signals, Systems, and Signal Processing 610
全相对论原子结构与含时波包动力学的理论研究--清华大学 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6440875
求助须知:如何正确求助?哪些是违规求助? 8254747
关于积分的说明 17572012
捐赠科研通 5499129
什么是DOI,文献DOI怎么找? 2900102
邀请新用户注册赠送积分活动 1876725
关于科研通互助平台的介绍 1716916