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

面向LLM游戏智能体的环境驱动自动提示优化

Environment-Grounded Automated Prompt Optimization for LLM Game Agents

Lamarr institute for ML and AI(拉马尔机器学习与人工智能研究所);TU Dortmund University(多特蒙德工业大学);Leibniz University Hannover(莱布尼茨汉诺威大学);L3S Research Center(L3S研究中心)

Rean Clive Fernandes, Lukas Fehring, Theresa Eimer, Marius Lindauer, Matthias Feurer

AI总结:

提出一种自动提示优化框架,将观察-动作管道分解为描述器和选择器,通过环境回报驱动的进化循环迭代优化提示,在BabyAI任务中显著提升成功率。

摘要:

交互环境中的LLM智能体对其提示高度敏感,但提示工程仍然是手动的、特定于任务的过程。我们为LLM智能体引入了一个自动提示优化框架,该框架将观察-动作管道分解为一个目标条件描述器智能体和一个动作选择智能体,并通过由环境回报引导的LLM驱动进化循环迭代地优化每个模块的提示。我们提出一个行为分析器,将情节结果归因于特定的提示组件,以及一个变异器,在通过环境回滚验证之前,对提示提出有针对性的修订。我们在BALROG基准测试中的所有五个BabyAI任务上进行了评估,在普通和引导提示初始化下,将我们的管道与BALROG的RobustCoTAgent进行了比较。优化在任务和条件下一致地提高了性能,无需更新模型权重。在PutNext(一个多步协调任务,RobustCoTAgent的成功率为0%)上,我们的框架使用相同的底层LLM和优化提示达到了高达72.5%的成功率。这些结果表明,多智能体框架结合自动提示优化,无需微调或大量人工监督即可增强LLM。

英文摘要:

LLM agents in interactive environments are highly sensitive to their prompts, yet prompt engineering remains a manual, task-specific process. We introduce an automated prompt optimization framework for LLM agents that decomposes the observation-to-action pipeline into a goal-conditioned descriptor agent and an action selection agent, and iteratively refines each module's prompt through an LLM-driven evolutionary loop guided by environment returns. We propose a behavior analyzer to attribute episode outcomes to specific prompt components, and a mutator to propose targeted revisions to the prompt, before validating them through environment rollouts. We evaluate on all five BabyAI tasks in the BALROG benchmark, comparing our pipeline against BALROG's RobustCoTAgent under both plain and guided prompt initializations. Optimization improves performance consistently across tasks and conditions, without requiring updates to the model weights. On PutNext, a multi-step coordination task where the RobustCoTAgent achieves 0% success, our framework reaches up to 72.5% success rate using the same underlying LLM with optimized prompts. These results suggest that a multi-agent framework, combined with automatic prompt optimization, enhances LLMs without the need for fine-tuning or extensive human supervision.

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

↑