arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.00728cs.LG
收藏

基于大语言模型的序列决策中的元提示优化

Meta-Prompt Optimization for LLM-Based Sequential Decision Making

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));The Chinese University of Hong Kong(香港中文大学);Guangdong Lab of AI and Digital Economy (SZ)(广东省人工智能与数字经济实验室(深圳))

Mingze Kong, Zhiyong Wang, Yao Shu, Zhongxiang Dai

AI总结:

针对基于大语言模型的序列决策中因奖励非平稳导致的元提示优化难题,提出EXPO及扩展的EXPO-ES算法,可显著提升相关任务性能。

摘要:

大语言模型(LLM)近期被用作智能体来解决贝叶斯优化、多臂老虎机(MAB)等序列决策任务。这些研究通常通过向LLM提供固定的、人工设计的元提示,使其进行序列动作选择。然而,大量前期研究发现提示对LLM的性能有显著影响,因此需要一种自动优化基于LLM的智能体的元提示的方法。遗憾的是,基于LLM的序列决策过程中奖励观测的非平稳性使得元提示优化极具挑战性。为应对这一挑战,我们从对抗性老虎机算法中汲取灵感,该算法天生具备处理非平稳奖励观测的能力。在此基础上,我们提出用于提示优化的指数加权算法(EXPO),以自动优化基于LLM的智能体的元提示中的任务描述和元指令。我们还将EXPO扩展为额外优化元提示中的示例(即交互历史)以进一步提升性能,从而提出EXPO-ES算法。大量实验表明,我们的算法显著提升了基于LLM的序列决策的性能。

英文摘要:

Large language models (LLMs) have recently been employed as agents to solve sequential decision-making tasks such as Bayesian optimization and multi-armed bandits (MAB). These works usually adopt an LLM for sequential action selection by providing it with a fixed, manually designed meta-prompt. However, numerous previous works have found that the prompt has a significant impact on the performance of the LLM, which calls for a method to automatically optimize the meta-prompt for LLM-based agents. Unfortunately, the non-stationarity in the reward observations during LLM-based sequential decision-making makes meta-prompt optimization highly challenging. To address this challenge, we draw inspirations from adversarial bandit algorithms, which are inherently capable of handling non-stationary reward observations. Building on this foundation, we propose our EXPonential-weight algorithm for prompt Optimization} (EXPO) to automatically optimize the task description and meta-instruction in the meta-prompt for LLM-based agents. We also extend EXPO to additionally optimize the exemplars (i.e., history of interactions) in the meta-prompt to further enhance the performance, hence introducing our EXPO-ES algorithm. We use extensive experiments to show that our algorithms significantly improve the performance of LLM-based sequential decision-making.

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

↑