MARS:用于自动提示优化的多智能体自适应推理与苏格拉底引导
MARS: Multi-Agent Adaptive Reasoning with Socratic Guidance for Automated Prompt Optimization
AI总结:
针对现有自动提示优化(APO)方法存在的模板僵化和探索低效问题,提出MARS多智能体框架,通过POMDP建模和苏格拉底引导实现自适应优化,在多数据集上的优化性能、搜索效率和可解释性均优于现有方法。
摘要:
大型语言模型(LLMs)通常以问答范式运行,输入提示的质量对响应有关键影响。自动提示优化(APO)旨在克服手工制作提示的认知偏差,探索更广阔的提示设计空间。然而,现有APO方法常受限于僵化的模板结构和提示空间中的低效探索。为此,我们提出一种用于APO的多智能体自适应推理与苏格拉底引导框架(MARS)。MARS包含五个互补智能体,将优化过程表述为部分可观测马尔可夫决策过程(POMDP),通过显式状态建模和交互反馈实现自适应提示优化。具体而言,Planner智能体生成灵活的优化轨迹,Teacher-Critic-Student三元组通过文本空间中的伪梯度信号进行苏格拉底式对话以迭代优化提示,Target智能体在下游任务中执行提示以提供性能反馈。MARS将推理、反馈和状态转移整合到统一的隐藏状态演化过程中,同时提升优化的有效性和可解释性。在多个数据集上的广泛实验表明,MARS在优化性能、搜索效率和可解释性方面优于现有APO方法。
英文摘要:
Large language models (LLMs) typically operate in a question-answering paradigm, where the quality of the input prompt critically affects the response. Automated Prompt Optimization (APO) aims to overcome the cognitive biases of manually crafted prompts and explore a broader prompt design space. However, existing APO methods often suffer from rigid template structures and inefficient exploration in the prompt space. To this end, we propose a Multi-Agent Adaptive Reasoning with Socratic guidance framework (MARS) for APO. MARS consists of five complementary agents and formulates the optimization process as a Partially Observable Markov Decision Process (POMDP), enabling adaptive prompt refinement through explicit state modeling and interactive feedback. Specifically, a Planner agent generates flexible optimization trajectories, a Teacher-Critic-Student triad engages in Socratic-style dialogue to iteratively optimize the prompt based on pseudo-gradient signals in the text space, and a Target agent executes the prompt in downstream tasks to provide performance feedback. MARS integrates reasoning, feedback, and state transition into a unified hidden-state evolution process, improving both the effectiveness and interpretability of optimization. Extensive experiments on multiple datasets demonstrate that MARS outperforms existing APO methods in terms of optimization performance, search efficiency, and interpretability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。