Preprint
Machine Learning
Featured

Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing

Pengfei Liu(Carnegie Mellon University), Weizhe Yuan(Carnegie Mellon University), Jinlan Fu(National University of Singapore), Zhengbao Jiang(Carnegie Mellon University), Hiroaki Hayashi(Carnegie Mellon University), Graham Neubig(Carnegie Mellon University)
September 14, 2022ACM Computing Surveys5,570 citations

5.6k

Citations

313

Influential Citations

ACM Computing Surveys

Venue

2022

Year

Abstract

This article surveys and organizes research works in a new paradigm in natural language processing, which we dub “prompt-based learning.” Unlike traditional supervised learning, which trains a model to take in an input x and predict an output y as P ( y|x ), prompt-based learning is based on language models that model the probability of text directly. To use these models to perform prediction tasks, the original input x is modified using a template into a textual string prompt x′ that has some unfilled slots, and then the language model is used to probabilistically fill the unfilled information to obtain a final string x̂ , from which the final output y can be derived. This framework is powerful and attractive for a number of reasons: It allows the language model to be pre-trained on massive amounts of raw text, and by defining a new prompting function the model is able to perform few-shot or even zero-shot learning, adapting to new scenarios with few or no labeled data. In this article, we introduce the basics of this promising paradigm, describe a unified set of mathematical notations that can cover a wide variety of existing work, and organize existing work along several dimensions, e.g., the choice of pre-trained language models, prompts, and tuning strategies. To make the field more accessible to interested beginners, we not only make a systematic review of existing works and a highly structured typology of prompt-based concepts but also release other resources, e.g., a website NLPedia–Pretrain including constantly updated survey and paperlist.

Analysis

Why This Paper Matters

This survey, published in ACM Computing Surveys with over 5,500 citations, is a landmark paper that defined and systematized the emerging paradigm of prompt-based learning in natural language processing. At a time when the field was shifting from fine-tuning large pre-trained models to more efficient adaptation methods, this paper provided a clear, unified framework that researchers and practitioners could use to understand and compare different approaches. It made the concept of prompting—where a pre-trained language model is guided to perform a task by a textual template—accessible to a broad audience, accelerating adoption across NLP applications.

The paper matters because it addressed a critical need: the lack of a common vocabulary and taxonomy for prompt-based methods. By introducing consistent mathematical notation and organizing work along dimensions like prompt design and tuning strategy, it enabled systematic progress. For Neura Market's audience of AI practitioners, this paper is essential reading because it explains how to leverage pre-trained models for few-shot or zero-shot learning without task-specific fine-tuning, a capability that directly reduces data annotation costs and deployment time.

Technical Contributions

The paper's key innovations include:

  • Formalization of prompt-based learning: It defines the process as modifying input x into a prompt x' with unfilled slots, using a language model to fill them probabilistically, and deriving output y from the filled string.
  • Unified mathematical notation: A consistent framework (e.g., P(y|x) vs. P(x')) that covers diverse methods like cloze prompts, prefix prompts, and verbalizers.
  • Taxonomy of prompt engineering: Categorization of prompts by shape (e.g., cloze vs. prefix), source (manual vs. automated), and tuning strategy (e.g., discrete vs. continuous prompts).
  • Comprehensive survey of pre-trained LMs and tuning strategies: Coverage of models like BERT, GPT, T5, and methods like prompt tuning, prefix tuning, and parameter-efficient fine-tuning.
  • Resource release: NLPedia-Pretrain, a living website with an updated paper list, aiding community access.

Results

As a survey, the paper does not present new experimental results. However, it synthesizes findings from hundreds of prior works, showing that prompt-based methods achieve competitive performance with fine-tuning while using far fewer labeled examples. For instance, it highlights that GPT-3's in-context learning with a few examples can match or exceed fine-tuned BERT on several tasks. The paper also notes that prompt design significantly impacts performance, with automated prompt search often outperforming manual templates.

Significance

This survey has had a profound impact on the AI field. It helped catalyze the shift from fine-tuning to prompting, which is now a standard technique in large language model (LLM) applications. The paper's taxonomy influenced subsequent research on instruction tuning, chain-of-thought prompting, and in-context learning. For practitioners, it provides a practical guide to deploying LLMs with minimal labeled data, enabling rapid prototyping and cost savings. The paper remains highly cited and is a foundational reference for anyone working with modern NLP systems.