亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

The Prompt Alchemist: Automated LLM-Tailored Prompt Optimization for Test Case Generation

炼金术 考试(生物学) 计算机科学 历史 地质学 艺术史 古生物学
作者
Shuzheng Gao,Chaozheng Wang,Cuiyun Gao,Xiao‐Dong Jiao,Chun Yong Chong,Shan Gao,Michael R. Lyu
出处
期刊:Cornell University - arXiv
标识
DOI:10.48550/arxiv.2501.01329
摘要

Test cases are essential for validating the reliability and quality of software applications. Recent studies have demonstrated the capability of Large Language Models (LLMs) to generate useful test cases for given source code. However, the existing work primarily relies on human-written plain prompts, which often leads to suboptimal results since the performance of LLMs can be highly influenced by the prompts. Moreover, these approaches use the same prompt for all LLMs, overlooking the fact that different LLMs might be best suited to different prompts. Given the wide variety of possible prompt formulations, automatically discovering the optimal prompt for each LLM presents a significant challenge. Although there are methods on automated prompt optimization in the natural language processing field, they are hard to produce effective prompts for the test case generation task. First, the methods iteratively optimize prompts by simply combining and mutating existing ones without proper guidance, resulting in prompts that lack diversity and tend to repeat the same errors in the generated test cases. Second, the prompts are generally lack of domain contextual knowledge, limiting LLMs' performance in the task.

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
boliboli发布了新的文献求助20
5秒前
finerain7发布了新的文献求助10
8秒前
简单完成签到 ,获得积分10
13秒前
19秒前
morena发布了新的文献求助10
24秒前
量子星尘发布了新的文献求助10
24秒前
34秒前
finerain7发布了新的文献求助10
39秒前
40秒前
明理从露完成签到 ,获得积分10
40秒前
42秒前
45秒前
ambition发布了新的文献求助10
46秒前
46秒前
47秒前
小洋发布了新的文献求助10
51秒前
minhdh完成签到,获得积分10
53秒前
1分钟前
伊戈达拉一个大拉完成签到 ,获得积分10
1分钟前
矮小的猕猴桃完成签到,获得积分10
1分钟前
yuyu发布了新的文献求助10
1分钟前
搜集达人应助boliboli采纳,获得10
1分钟前
脑洞疼应助科研通管家采纳,获得10
1分钟前
天天快乐应助科研通管家采纳,获得10
1分钟前
鬼见愁应助科研通管家采纳,获得10
1分钟前
科研通AI2S应助科研通管家采纳,获得10
1分钟前
悄悄是心上的肖肖完成签到 ,获得积分10
1分钟前
Lighten完成签到 ,获得积分10
1分钟前
boliboli完成签到,获得积分10
1分钟前
1分钟前
斯文败类应助Folium采纳,获得30
1分钟前
1分钟前
level完成签到 ,获得积分10
1分钟前
finerain7发布了新的文献求助10
1分钟前
1分钟前
zhongu发布了新的文献求助10
1分钟前
量子星尘发布了新的文献求助10
1分钟前
1分钟前
笨笨完成签到,获得积分10
1分钟前
高分求助中
(禁止应助)【重要!!请各位详细阅读】【科研通的精品贴汇总】 10000
Semantics for Latin: An Introduction 1099
Biology of the Indian Stingless Bee: Tetragonula iridipennis Smith 1000
War and Peace in the Borderlands of Myanmar: The Kachin Ceasefire, 1994-2011 800
Robot-supported joining of reinforcement textiles with one-sided sewing heads 740
2024-2030年中国石英材料行业市场竞争现状及未来趋势研判报告 500
镇江南郊八公洞林区鸟类生态位研究 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 4142579
求助须知:如何正确求助?哪些是违规求助? 3678827
关于积分的说明 11627640
捐赠科研通 3372472
什么是DOI,文献DOI怎么找? 1852347
邀请新用户注册赠送积分活动 915140
科研通“疑难数据库(出版商)”最低求助积分说明 829672