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

迈向用于零样本提示优化的分层多智能体工作流

Towards Hierarchical Multi-Agent Workflows for Zero-Shot Prompt Optimization

Australian National University(澳大利亚国立大学);Cisco(思科公司)

Yuchi Liu, Jaskirat Singh, Gaowen Liu, Ali Payani, Liang Zheng

AI总结:

针对现有提示词优化方法在无限制场景中依赖人工或泛化性差的问题,提出分层多智能体工作流(HMAW),让LLMs自主分层设计提示词,无需训练且任务无关,实验验证其能提升LLMs性能。

摘要:

大型语言模型(LLMs)在响应用户问题方面已取得重大进展,支持众多多样化应用。然而,LLM输出质量严重依赖提示词设计,优质提示词可能使LLM正确回答极具挑战性的问题。因此,近期研究开发了多种提示词改进策略,包括手动编写和域内优化。但它们在无限制场景中的有效性存疑:前者依赖针对特定问题的人类设计,后者通常对未见过的场景泛化性差。为解决这些问题,我们让LLMs自主设计最佳提示词。具体而言,我们构建分层LLM结构,先以分层方式生成含精准指令和准确措辞的提示词,再用该提示词生成用户查询的最终答案。我们将此流程称为分层多智能体工作流(HMAW)。与现有方法不同,HMAW无人类限制、无需训练,且完全任务无关,能适应不同任务细节。通过多基准的定量和定性实验,我们验证了该方法虽简单,但能生成详细且合适的提示词,进一步提升当前LLMs的性能。

英文摘要:

Large language models (LLMs) have shown great progress in responding to user questions, allowing for a multitude of diverse applications. Yet, the quality of LLM outputs heavily depends on the prompt design, where a good prompt might enable the LLM to answer a very challenging question correctly. Therefore, recent works have developed many strategies for improving the prompt, including both manual crafting and in-domain optimization. However, their efficacy in unrestricted scenarios remains questionable, as the former depends on human design for specific questions and the latter usually generalizes poorly to unseen scenarios. To address these problems, we give LLMs the freedom to design the best prompts according to themselves. Specifically, we include a hierarchy of LLMs, first constructing a prompt with precise instructions and accurate wording in a hierarchical manner, and then using this prompt to generate the final answer to the user query. We term this pipeline Hierarchical Multi-Agent Workflow, or HMAW. In contrast with prior works, HMAW imposes no human restriction and requires no training, and is completely task-agnostic while capable of adjusting to the nuances of the underlying task. Through both quantitative and qualitative experiments across multiple benchmarks, we verify that despite its simplicity, the proposed approach can create detailed and suitable prompts, further boosting the performance of current LLMs.

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

↑