arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.08364cs.LGcs.AIcs.DM
收藏

Plum:使用元启发式的提示学习

Plum: Prompt Learning using Metaheuristic

The Hong Kong University of Science and Technology(香港科技大学);Texas A&M University(德克萨斯农工大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Rui Pan, Shuo Xing, Shizhe Diao, Wenhe Sun, Xiang Liu, Kashun Shum, Renjie Pi, Jipeng Zhang, Tong Zhang

AI总结:

本文提出Plum框架,将元启发式优化方法引入提示学习,通过测试爬山法、模拟退火、遗传算法等六种方法,实现自动、离散、黑盒、无梯度且可解释的通用提示优化,并在推理和图像生成任务中发现更易理解的提示。

摘要:

自从大型语言模型出现以来,提示学习已成为优化和定制这些模型的流行方法。诸如思维链(Chain-of-Thought)之类的特殊提示甚至揭示了这些模型中以前未知的推理能力。然而,发现有效提示的进展一直缓慢,这推动了对通用提示优化方法的渴望。不幸的是,现有提示学习方法中很少有能够同时满足真正“通用”的标准,即同时具备自动、离散、黑盒、无梯度和可解释性。在本文中,我们引入元启发式(metaheuristics)——离散非凸优化方法的一个分支,拥有超过100种可选方法——作为一种有前景的提示学习途径。在我们的范式内,我们测试了六种典型方法:爬山法、模拟退火、带/不带交叉的遗传算法、禁忌搜索以及和声搜索,展示了它们在白盒和黑盒提示学习中的有效性。此外,我们表明这些方法可用于发现以前在推理和图像生成任务中未知的、更易于人类理解的提示,从而为提示优化开辟了丰富多样的可能性。我们在\url{https://github.com/research4pan/Plum}中发布了所有代码。

英文摘要:

Since the emergence of large language models, prompt learning has become a popular method for optimizing and customizing these models. Special prompts, such as Chain-of-Thought, have even revealed previously unknown reasoning capabilities within these models. However, the progress of discovering effective prompts has been slow, driving a desire for general prompt optimization methods. Unfortunately, few existing prompt learning methods satisfy the criteria of being truly "general", i.e., automatic, discrete, black-box, gradient-free, and interpretable all at once. In this paper, we introduce metaheuristics, a branch of discrete non-convex optimization methods with over 100 options, as a promising approach to prompt learning. Within our paradigm, we test six typical methods: hill climbing, simulated annealing, genetic algorithms with/without crossover, tabu search, and harmony search, demonstrating their effectiveness in white-box and black-box prompt learning. Furthermore, we show that these methods can be used to discover more human-understandable prompts that were previously unknown in both reasoning and image generation tasks, opening the door to a cornucopia of possibilities in prompt optimization. We release all the codes in \url{https://github.com/research4pan/Plum}.

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

↑