arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.14201cs.LGmath.OC
收藏

从最优控制视角看提示工程

Prompt Engineering Through the Lens of Optimal Control

Peking University(北京大学)

Yifan Luo, Yiming Tang, Chengfeng Shen, Zhennan Zhou, Bin Dong

AI总结:

本研究提出面向大语言模型多轮交互的最优控制框架,系统化现有提示工程方法并支持集成方法、多智能体协作场景,为更有效可解释的提示工程提供理论基础与新视角。

摘要:

提示工程(PE)已成为引导大语言模型(LLM)解决复杂任务的关键技术,其提升人机交互效率与效果的潜力凸显了它的重要性。随着任务日益复杂,近期的先进PE方法已突破单轮交互的局限,转向多轮交互,以实现与LLM更深入、更细致的交互。本文提出了一个专为LLM多轮交互设计的最优控制框架,该框架提供了统一的数学结构,不仅能系统化现有PE方法,还为严谨的分析性改进奠定了基础。此外,我们将该框架扩展至涵盖基于集成方法和多智能体协作的PE,从而扩大了适用范围。通过采用最优控制视角,我们为现有PE方法提供了新的见解,并指出了值得未来研究的理论挑战。同时,本工作为开发更有效、更具可解释性的PE方法奠定了基础。

英文摘要:

Prompt Engineering (PE) has emerged as a critical technique for guiding Large Language Models (LLMs) in solving intricate tasks. Its importance is highlighted by its potential to significantly enhance the efficiency and effectiveness of human-machine interaction. As tasks grow increasingly complex, recent advanced PE methods have extended beyond the limitations of single-round interactions to embrace multi-round interactions, which allows for a deeper and more nuanced engagement with LLMs. In this paper, we propose an optimal control framework tailored for multi-round interactions with LLMs. This framework provides a unified mathematical structure that not only systematizes the existing PE methods but also sets the stage for rigorous analytical improvements. Furthermore, we extend this framework to include PE via ensemble methods and multi-agent collaboration, thereby enlarging the scope of applicability. By adopting an optimal control perspective, we offer fresh insights into existing PE methods and highlight theoretical challenges that warrant future research. Besides, our work lays a foundation for the development of more effective and interpretable PE methods.

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

↑