Aha.
正在载入中英对照阅读…

arXiv:2606.17838 · 中英对照阅读

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

Environment-Grounded Automated Prompt Optimization for LLM Game Agents

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

中文速览

让大语言模型在互动游戏里既看懂局面又选对动作并不容易,而靠人工反复改提示词既费力,也很难迁移到新任务。研究把智能体拆成两个部分:一个先从观察中提取任务相关信息,另一个据此选择动作;再让大语言模型分析游戏过程中的成败,提出针对性的提示词修改,并通过实际试玩筛选有效修改。测试显示,这种方法在 BabyAI 的五类任务上都提升了表现,而且不需要微调模型;在原智能体成功率为零的 PutNext 任务中,最高成功率达到 72.5%。这说明,只靠自动改进提示词、无需改模型权重或大量人工指导,也能显著增强大语言模型处理多步骤互动任务的能力。

摘要

交互式环境中的 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.

术语表

LLM agent
LLM 智能体
interactive environment
交互式环境
prompt engineering
提示工程
prompt optimization
提示优化
observation-to-action pipeline
观测到动作的处理流程
goal-conditioned descriptor agent
目标条件化描述智能体
action selection agent
动作选择智能体
LLM-driven evolutionary loop
LLM 驱动的进化循环
environment return
环境回报
behavior analyzer
行为分析器
prompt mutator
提示变异器
environment rollout
环境交互展开
BabyAI
BabyAI
BALROG
BALROG
RobustCoTAgent
RobustCoTAgent
multi-agent framework
多智能体框架
fine-tuning
微调
reinforcement learning (RL)
强化学习(RL)
monolithic agent
单体式智能体
descriptor agent
描述智能体
action selector
动作选择器
actor-critic separation
行动者—评论家分离
evolutionary algorithm
进化算法
agentic architecture
智能体架构
automatic prompt optimization
自动提示优化
textual gradients
文本梯度
black-box optimizer
黑盒优化器
failure attribution
失败归因
partially observable Markov decision process (POMDP)
部分可观测马尔可夫决策过程(POMDP)
meta-prompt
元提示