EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizers

杠杆(统计) 人口 计算机科学 集合(抽象数据类型) 进化算法 过程(计算) 人工智能 机器学习 程序设计语言 社会学 人口学
作者
Qingyan Guo,Wang, Rui,Junliang Guo,Bei Li,Kaitao Song,Xu Tan,Guoqing Liu,Jiang Bian,Yujiu Yang
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:50
标识
DOI:10.48550/arxiv.2309.08532
摘要

Large Language Models (LLMs) excel in various tasks, but they rely on carefully crafted prompts that often demand substantial human effort. To automate this process, in this paper, we propose a novel framework for discrete prompt optimization, called EvoPrompt, which borrows the idea of evolutionary algorithms (EAs) as they exhibit good performance and fast convergence. To enable EAs to work on discrete prompts, which are natural language expressions that need to be coherent and human-readable, we connect LLMs with EAs. This approach allows us to simultaneously leverage the powerful language processing capabilities of LLMs and the efficient optimization performance of EAs. Specifically, abstaining from any gradients or parameters, EvoPrompt starts from a population of prompts and iteratively generates new prompts with LLMs based on the evolutionary operators, improving the population based on the development set. We optimize prompts for both closed- and open-source LLMs including GPT-3.5 and Alpaca, on 31 datasets covering language understanding, generation tasks, as well as BIG-Bench Hard (BBH) tasks. EvoPrompt significantly outperforms human-engineered prompts and existing methods for automatic prompt generation (e.g., up to 25% on BBH). Furthermore, EvoPrompt demonstrates that connecting LLMs with EAs creates synergies, which could inspire further research on the combination of LLMs and conventional algorithms.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
簌落发布了新的文献求助10
1秒前
初景的应助被Lip1900采纳,获得20
1秒前
1秒前
共享精神的应助被连敏锐采纳,获得10
2秒前
深情安青的应助被小五采纳,获得10
2秒前
4秒前
林墨风发布了新的文献求助10
4秒前
xing_xing的应助被Dan采纳,获得20
4秒前
5秒前
搜集达人的应助被pivot_literature采纳,获得10
5秒前
5秒前
7秒前
7秒前
科研通AI6.2的应助被linman采纳,获得10
7秒前
whb完成签到,获得积分10
8秒前
jiaoyangXu完成签到,获得积分10
8秒前
魂丹发布了新的文献求助10
10秒前
康子浩发布了新的文献求助10
11秒前
Ambi发布了新的文献求助10
11秒前
11秒前
12秒前
狐狸喜欢洽洽完成签到,获得积分10
13秒前
Hello的应助被huqin采纳,获得10
13秒前
情怀的应助被光工刘采纳,获得10
14秒前
14秒前
14秒前
斯文败类的应助被lwsxv采纳,获得10
15秒前
16秒前
LINTING完成签到,获得积分10
17秒前
felix发布了新的文献求助10
17秒前
嘻嘻发布了新的文献求助10
17秒前
felix发布了新的文献求助10
17秒前
18秒前
tangxiaofei完成签到 ,获得积分10
18秒前
香蕉觅云的应助被123采纳,获得10
19秒前
19秒前
小二郎的应助被犹豫的大碗采纳,获得10
19秒前
充电宝的应助被zhuo采纳,获得10
21秒前
felix发布了新的文献求助10
21秒前
星辰大海的应助被张毅杰采纳,获得10
21秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Aspects of Post-SPE Phonology 2000
Nanocomposite Removal of Pesticides from Wastewater 1000
Practical Manual of Forensic Psychophysiology: Methodology, Execution, and Fields of Application 800
Rosenblum, Global Change Biology 800
Final Report for the 2-D Test of Model 901 Rotor and Wing Airfoils (BSWT 592) 528
Berberine regulates the TLR4 signaling pathway to suppress hypoxia-induced proliferation and migration of pulmonary arterial smooth muscle cells 520
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 有机化学 物理 生物化学 化学工程 内科学 复合材料 催化作用 心理学 人工智能 细胞生物学 光电子学 无机化学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 7905863
求助须知:如何正确求助?哪些是违规求助? 9410823
关于积分的说明 20890247
捐赠科研通 7507181
什么是DOI,文献DOI怎么找? 3361585
关于科研通互助平台的介绍 2499677
邀请新用户注册赠送积分活动 2391884