Skip to main content
QUICK REVIEW

[Paper Review] Prompting Frameworks for Large Language Models: A Survey

Xiaoxia Liu, Jingyi Wang|arXiv (Cornell University)|Nov 21, 2023
Topic ModelingComputer Science15 citations
TL;DR

This paper surveys prompting frameworks for large language models, defines a Prompting Framework (PF) with a four-layer lifecycle, and provides a taxonomy and landscape analysis of PF approaches.

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.

Motivation & Objective

  • Introduce the concept of Prompting Frameworks (PF) and standard terminology.
  • categorize existing PFs into a structured taxonomy (LLM-SH, LLM-LNG, LLM-RSTR).
  • Analyze strengths, limitations, and applicability of PFs across domains.
  • Summarize current tools and provide practical recommendations for real-world use.
  • Promote a community resource hub (GitHub) to track developments in PFs.

Proposed method

  • Conduct a systematic literature and repository survey of prompting frameworks and related tools.
  • Define and elaborate the PF lifecycle across Data Level, Base Level, Execute Level, and Service Level.
  • Classify PFs into three main types (LLM-SH, LLM-LNG, LLM-RSTR) and discuss their inter-operability.
  • Evaluate representative works and architectures to extract design principles and trade-offs.
  • Compile and maintain a GitHub repository with PF-related works and tooling for ongoing tracking.

Experimental results

Research questions

  • RQ1What is a Prompting Framework and what are its core properties and lifecycle levels?
  • RQ2How can prompting frameworks be categorized to capture their design goals and use cases?
  • RQ3What are the strengths, limitations, and domain applicability of major PF types (LLM-SH, LLM-LNG, LLM-RSTR)?
  • RQ4What practical recommendations emerge for deploying PFs in real-world LLM-enabled tasks?
  • RQ5What resources and tooling exist, and how can they be organized to support research and industry adoption?

Key findings

  • PFs enable LLMs to interact with the external world, addressing data lag and external tool access.
  • PFs can be organized into a four-layer lifecycle (Data, Base, Execute, Service) guiding interaction and scheduling.
  • Three PF categories (LLM-SH, LLM-LNG, LLM-RSTR) capture different interaction philosophies and are often combinable in practice.
  • A substantial landscape exists with numerous open-source projects and tools, necessitating standardized terminology and a central repository.
  • The authors identified and analyzed about 49 open-source projects and selected around 30 representative works for in-depth discussion.
  • A GitHub repository is maintained to facilitate ongoing tracking and collaboration in PF research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.