Skip to main content
QUICK REVIEW

[论文解读] Prompting Frameworks for Large Language Models: A Survey

Xiaoxia Liu, Jingyi Wang|arXiv (Cornell University)|Nov 21, 2023
Topic ModelingComputer Science被引用 15
一句话总结

本文综述了用于大型语言模型的 prompting 框架,定义了一个具有四层生命周期的 Prompting Framework(PF),并提供 PF 方法的分类法和景观分析。

ABSTRACT

Since the launch of ChatGPT, a powerful AI Chatbot developed by OpenAI, large language models (LLMs) have made significant advancements in both academia and industry, bringing about a fundamental engineering paradigm shift in many areas. While LLMs are powerful, it is also crucial to best use their power where "prompt'' plays a core role. However, the booming LLMs themselves, including excellent APIs like ChatGPT, have several inherent limitations: 1) temporal lag of training data, and 2) the lack of physical capabilities to perform external actions. Recently, we have observed the trend of utilizing prompt-based tools to better utilize the power of LLMs for downstream tasks, but a lack of systematic literature and standardized terminology, partly due to the rapid evolution of this field. Therefore, in this work, we survey related prompting tools and promote the concept of the "Prompting Framework" (PF), i.e. the framework for managing, simplifying, and facilitating interaction with large language models. We define the lifecycle of the PF as a hierarchical structure, from bottom to top, namely: Data Level, Base Level, Execute Level, and Service Level. We also systematically depict the overall landscape of the emerging PF field and discuss potential future research and challenges. To continuously track the developments in this area, we maintain a repository at https://github.com/lxx0628/Prompting-Framework-Survey, which can be a useful resource sharing platform for both academic and industry in this field.

研究动机与目标

  • 引入 Prompting Frameworks (PF)的概念及标准术语。
  • 将现有 PF 分类为结构化分类法(LLM-SH、LLM-LNG、LLM-RSTR)。
  • 分析 PF 的优点、局限性及在各领域的适用性。
  • 总结现有工具并为实际应用提供可操作建议。
  • 推动一个社区资源中心(GitHub),以跟踪 PF 的发展。

提出的方法

  • 对 prompting 框架及相关工具进行系统性的文献与代码库调研。
  • 定义并阐述 PF 生命周期在 数据层、基座层、执行层和服务层的划分。
  • 将 PF 分类为三大类型(LLM-SH、LLM-LNG、LLM-RSTR),并讨论它们的互操作性。
  • 评估具有代表性的工作与架构,提取设计原则与权衡。
  • 整理并维护一个 GitHub 仓库,汇集与 PF 相关的工作与工具,便于持续跟踪。

实验结果

研究问题

  • RQ1什么是 Prompting Frameworks 及其核心属性与生命周期层级?
  • RQ2如何对 prompting frameworks 进行分类,以捕捉其设计目标和使用场景?
  • RQ3主要 PF 类型(LLM-SH、LLM-LNG、LLM-RSTR)的优点、局限性与领域适用性有哪些?
  • RQ4在实际的 LLM 驱动任务中部署 PF 时,可以得到哪些实际建议?
  • RQ5存在哪些资源与工具,它们如何组织以支持研究与行业应用?

主要发现

  • PFs 使 LLM 能够与外部世界交互,解决数据滞后和外部工具访问的问题。
  • PFs 可以被组织成一个四层生命周期(数据、基座、执行、服务)来指导交互与调度。
  • 三大 PF 类别(LLM-SH、LLM-LNG、LLM-RSTR)捕捉了不同的交互哲学,在实际应用中常可组合使用。
  • 存在一个庞大的景观,开源项目与工具众多,需要标准化术语和一个中心仓库。
  • 作者识别并分析了约 49 个开源项目,选择约 30 个代表性工作进行深入讨论。
  • 维护一个 GitHub 仓库,以促进 PF 研究的持续跟踪与协作。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。