arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.02400cs.SE
收藏

提示工程:为提示启用系统进行的软件工程

Promptware Engineering: Software Engineering for Prompt-Enabled Systems

Tsinghua University(清华大学);Nanyang Technological University(南洋理工大学);Peking University(北京大学);King’s College London(伦敦国王学院)

Zhenpeng Chen, Chong Wang, Weisong Sun, Xuanzhe Liu, Jie M. Zhang, Yang Liu

AI总结:

本文提出提示软件工程,旨在通过软件工程原则系统化解决提示开发中的挑战,提升提示启用系统的发展。

摘要:

大型语言模型(LLMs)日益被集成到软件应用中,催生了一类广泛的提示启用系统,其中提示作为主要的'编程'接口来指导系统行为。在此趋势的基础上,一种新的软件范式——提示软件(promptware)——应运而生,它将自然语言提示视为与LLMs交互的第一类软件产物。与传统的软件不同,后者依赖于形式化编程语言和确定性的运行时环境,提示软件基于模糊、非结构化且依赖上下文的自然语言,并在LLMs上运行,这些运行时环境是概率性的且非确定性的。这些根本性的差异引入了提示开发的独特挑战。实际上,提示开发仍然很大程度上是随意的,并且严重依赖于耗时的试错法,这一挑战我们称为提示软件危机。为了解决这一问题,我们提出了提示软件工程,一种新的方法论,将已建立的软件工程(SE)原则适应到提示开发中。借鉴传统SE数十年的成功经验,我们设想了一个涵盖提示需求工程、设计、实现、测试、调试、演进、部署和监控的系统框架。我们的框架将新兴的提示相关挑战重新置于SE生命周期中,提供了一种超越随意实践的指导原则。没有SE学科,提示开发很可能仍会陷入试错法。本文概述了提示软件工程的全面路线图,确定了关键的研究方向,并提供了可行的见解,以推进提示启用系统的发展。

英文摘要:

Large Language Models (LLMs) are increasingly integrated into software applications, giving rise to a broad class of prompt-enabled systems, in which prompts serve as the primary 'programming' interface for guiding system behavior. Building on this trend, a new software paradigm, promptware, has emerged, which treats natural language prompts as first-class software artifacts for interacting with LLMs. Unlike traditional software, which relies on formal programming languages and deterministic runtime environments, promptware is based on ambiguous, unstructured, and context-dependent natural language and operates on LLMs as runtime environments, which are probabilistic and non-deterministic. These fundamental differences introduce unique challenges in prompt development. In practice, prompt development remains largely ad hoc and relies heavily on time-consuming trial-and-error, a challenge we term the promptware crisis. To address this, we propose promptware engineering, a new methodology that adapts established Software Engineering (SE) principles to prompt development. Drawing on decades of success in traditional SE, we envision a systematic framework encompassing prompt requirements engineering, design, implementation, testing, debugging, evolution, deployment, and monitoring. Our framework re-contextualizes emerging prompt-related challenges within the SE lifecycle, providing principled guidance beyond ad-hoc practices. Without the SE discipline, prompt development is likely to remain mired in trial-and-error. This paper outlines a comprehensive roadmap for promptware engineering, identifying key research directions and offering actionable insights to advance the development of prompt-enabled systems.

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

↑