arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.13449cs.CL
收藏

Minstrel:面向非AI专家的多智能体协作结构化提示词生成

Minstrel: Structural Prompt Generation with Multi-Agents Coordination for Non-AI Experts

Northeastern University(东北大学);Wuhan University(武汉大学);Zhejiang University(浙江大学);Shenyang Aerospace University(沈阳航空航天大学)

Ming Wang, Yuanzhong Liu, Xiaoyu Liang, Yijie Huang, Daling Wang, Xiaocui Yang, Sijia Shen, Shi Feng, Xiaoming Zhang, Chaofeng Guan, Yifei Zhang

AI总结:

针对非AI专家编写高质量提示词困难的问题,提出结构化提示词框架LangGPT与多智能体系统Minstrel,通过反思机制自动生成结构化提示词,显著提升了LLMs性能并验证了其易用性。

摘要:

LLMs在多个领域展现了出色的性能。然而,为非AI专家制定高质量提示词以辅助其工作是一项挑战。现有的提示词工程研究提出了较为分散的优化原则,并设计了依赖经验的提示词优化器。遗憾的是,这些工作缺乏结构化设计,导致学习成本高昂,且不利于提示词的迭代更新,尤其是对非AI专家而言。受结构化可重用编程语言的启发,我们提出了LangGPT,一个结构化提示词设计框架。此外,我们引入了Minstrel,一个带有反思机制的多生成智能体系统,用于自动化生成结构化提示词。实验和案例研究表明,由Minstrel生成或手动编写的结构化提示词显著提升了LLMs的性能。此外,我们通过在线社区的用户调查分析了结构化提示词的易用性。

英文摘要:

LLMs have demonstrated commendable performance across diverse domains. Nevertheless, formulating high-quality prompts to assist them in their work poses a challenge for non-AI experts. Existing research in prompt engineering suggests somewhat scattered optimization principles and designs empirically dependent prompt optimizers. Unfortunately, these endeavors lack a structural design, incurring high learning costs and it is not conducive to the iterative updating of prompts, especially for non-AI experts. Inspired by structured reusable programming languages, we propose LangGPT, a structural prompt design framework. Furthermore, we introduce Minstrel, a multi-generative agent system with reflection to automate the generation of structural prompts. Experiments and the case study illustrate that structural prompts generated by Minstrel or written manually significantly enhance the performance of LLMs. Furthermore, we analyze the ease of use of structural prompts through a user survey in our online community.

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

↑