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

Authors: Pengfei Liu, Weizhe Yuan, Jinlan Fu, Zhengbao Jiang, Hiroaki Hayashi, Graham Neubig

Submitted to arXiv on 28 Jul. 2021
License: CC BY-SA 4.0
Abstract

This paper 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 paper 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 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 http://pretrain.nlpedia.ai/ including constantly-updated survey, and paperlist.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close
    Prompt-Based Learning in Natural Language Processing from 2020 to 2022, a Survey
    Kai Wang, Jia · Du, Bao-Feng Li et al. · 2023 · IEEE International Conference on Network Infrastructure and Digital Content · cited 3 times · Not summarized yet
    Abstract

    Prompt-based learning is a new paradigm of natural language processing by adding “prompt information” to input and adjusting downstream tasks to text generation tasks without significantly changing the structure and parameters of the pre-training language model. In this paper, the improvement of prompt-based learning in recent years is systematically sorted out along several dimensions, to display a clear vein for the development and improvement of prompt-based learning that has been done for beginners of prompt-based learning, help and enlighten prompt-based learning work in the future.

  2. Very close
    A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applications
    Pranab Sahoo, Ayush Kumar Singh, Sriparna Saha et al. · 2024 · Artificial Intelligence · preprint, not peer reviewed · cited 1,100 times · AI summary available
    Abstract

    Prompt engineering has emerged as an indispensable technique for extending the capabilities of large language models (LLMs) and vision-language models (VLMs). This approach leverages task-specific instructions, known as prompts, to enhance model efficacy without modifying the core model parameters. Rather than updating the model parameters, prompts allow seamless integration of pre-trained models into downstream tasks by eliciting desired model behaviors solely based on the given prompt. Prompts can be natural language instructions that provide context to guide the model or learned vector representations that activate relevant knowledge. This burgeoning field has enabled success across vario…

  3. Very close
    A Survey of Graph Prompting Methods: Techniques, Applications, and Challenges
    Xuansheng Wu, Kaixiong Zhou, Mingchen Sun et al. · 2023 · Machine Learning · preprint, not peer reviewed · cited 16 times · AI summary available
    Abstract

    The recent "pre-train, prompt, predict training" paradigm has gained popularity as a way to learn generalizable models with limited labeled data. The approach involves using a pre-trained model and a prompting function that applies a template to input samples, adding indicative context and reformulating target tasks as the pre-training task. However, the design of prompts could be a challenging and time-consuming process in complex tasks. The limitation can be addressed by using graph data, as graphs serve as structured knowledge repositories by explicitly modeling the interaction between entities. In this survey, we review prompting methods from the graph perspective, where prompting functi…

  4. Very close
    Efficient Prompting Methods for Large Language Models: A Survey
    Kai-Yan Chang, Songcheng Xu, Chenglong Wang et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 71 times · Not summarized yet
    Abstract

    Prompting is a mainstream paradigm for adapting large language models to specific natural language processing tasks without modifying internal parameters. Therefore, detailed supplementary knowledge needs to be integrated into external prompts, which inevitably brings extra human efforts and computational burdens for practical applications. As an effective solution to mitigate resource consumption, Efficient Prompting Methods have attracted a wide range of attention. We provide mathematical expressions at a high level to deeply discuss Automatic Prompt Engineering for different prompt components and Prompt Compression in continuous and discrete spaces. Finally, we highlight promising future …

  5. Very close
    A Brief History of Prompt: Leveraging Language Models. (Through Advanced Prompting)
    Golam Md Muktadir · 2023 · Computation and Language · cited 21 times · AI summary available
    Abstract

    This paper presents a comprehensive exploration of the evolution of prompt engineering and generation in the field of natural language processing (NLP). Starting from the early language models and information retrieval systems, we trace the key developments that have shaped prompt engineering over the years. The introduction of attention mechanisms in 2015 revolutionized language understanding, leading to advancements in controllability and context-awareness. Subsequent breakthroughs in reinforcement learning techniques further enhanced prompt engineering, addressing issues like exposure bias and biases in generated text. We examine the significant contributions in 2018 and 2019, focusing on…

  6. Very close
    OpenPrompt: An Open-source Framework for Prompt-learning
    Ning Ding, Sheng-Ding Hu, Weilin Zhao et al. · 2021 · Annual Meeting of the Association for Computational Linguistics · cited 354 times · Not summarized yet
    Abstract

    Prompt-learning has become a new paradigm in modern natural language processing, which directly adapts pre-trained language models (PLMs) to cloze-style prediction, autoregressive modeling, or sequence to sequence generation, resulting in promising performances on various tasks. However, no standard implementation framework of prompt-learning is proposed yet, and most existing prompt- learning codebases, often unregulated, only provide limited implementations for specific scenarios. Since there are many details such as templating strategy, initializing strategy, verbalizing strategy, etc., that need to be considered in prompt-learning, practitioners face impediments to quickly adapting the d…

  7. Very close
    The Prompt Report: A Systematic Survey of Prompting Techniques
    Sander Schulhoff, Michael Ilie, Nishant Balepur et al. · 2024 · Computation and Language · cited 272 times · AI summary available
    Abstract

    Generative Artificial Intelligence (GenAI) systems are being increasingly deployed across all parts of industry and research settings. Developers and end users interact with these systems through the use of prompting or prompt engineering. While prompting is a widespread and highly researched concept, there exists conflicting terminology and a poor ontological understanding of what constitutes a prompt due to the area's nascency. This paper establishes a structured understanding of prompts, by assembling a taxonomy of prompting techniques and analyzing their use. We present a comprehensive vocabulary of 33 vocabulary terms, a taxonomy of 58 text-only prompting techniques, and 40 techniques f…

  8. Very close
    MetaPrompting: Learning to Learn Better Prompts
    Yutai Hou, Hongyuan Dong, Xinghao Wang et al. · 2022 · Computation and Language · cited 55 times · AI summary available
    Abstract

    Prompting method is regarded as one of the crucial progress for few-shot nature language processing. Recent research on prompting moves from discrete tokens based ``hard prompts'' to continuous ``soft prompts'', which employ learnable vectors as pseudo prompt tokens and achieve better performance. Though showing promising prospects, these soft-prompting methods are observed to rely heavily on good initialization to take effect. Unfortunately, obtaining a perfect initialization for soft prompts requires understanding of inner language models working and elaborate design, which is no easy task and has to restart from scratch for each new task. To remedy this, we propose a generalized soft prom…

Prior work it builds on

  1. Close Used in depth by this paper A method it uses
    Eliciting Knowledge from Language Models Using Automatically Generated Prompts
    Taylor Shin, Yasaman Razeghi, Robert L Logan IV et al. · 2020 · Conference on Empirical Methods in Natural Language Processing · cited 583 times · Not summarized yet
    Abstract

    The remarkable success of pretrained language models has motivated the study of what kinds of knowledge these models learn during pretraining. Reformulating tasks as fill-in-the-blanks problems (e.g., cloze tests) is a natural approach for gauging such knowledge, however, its usage is limited by the manual effort and guesswork required to write suitable prompts. To address this, we develop AutoPrompt, an automated method to create prompts for a diverse set of tasks, based on a gradient-guided search. Using AutoPrompt, we show that masked language models (MLMs) have an inherent capability to perform sentiment analysis and natural language inference without additional parameters or finetuning,…

  2. Close Used in depth by this paper A method it uses
    KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction
    Xiang Chen, Ningyu Zhang, Ning-Yu Zhang et al. · 2021 · The Web Conference · cited 525 times · Not summarized yet
    Abstract

    Recently, prompt-tuning has achieved promising results for specific few-shot classification tasks. The core idea of prompt-tuning is to insert text pieces (i.e., templates) into the input and transform a classification task into a masked language modeling problem. However, for relation extraction, determining an appropriate prompt template requires domain expertise, and it is cumbersome and time-consuming to obtain a suitable label word. Furthermore, there exists abundant semantic and prior knowledge among the relation labels that cannot be ignored. To this end, we focus on incorporating knowledge among relation labels into prompt-tuning for relation extraction and propose a Knowledge-aware …

  3. Close
    Learning How to Ask: Querying LMs with Mixtures of Soft Prompts
    Guanghui Qin, J. Eisner · 2021 · North American Chapter of the Association for Computational Linguistics · cited 616 times · Not summarized yet
    Abstract

    Natural-language prompts have recently been used to coax pretrained language models into performing other AI tasks, using a fill-in-the-blank paradigm (Petroni et al., 2019) or a few-shot extrapolation paradigm (Brown et al., 2020). For example, language models retain factual knowledge from their training corpora that can be extracted by asking them to “fill in the blank” in a sentential prompt. However, where does this prompt come from? We explore the idea of learning prompts by gradient descent—either fine-tuning prompts taken from previous work, or starting from random initialization. Our prompts consist of “soft words,” i.e., continuous vectors that are not necessarily word type embeddin…

  4. Close Used in depth by this paper
    GPT Understands, Too
    Xiao Liu, Yanan Zheng, Zheng-Xiao Du et al. · 2021 · AI Open · cited 1,483 times · Not summarized yet
    Abstract

    Prompting a pretrained language model with natural language patterns has been proved effective for natural language understanding (NLU). However, our preliminary study reveals that manual discrete prompts often lead to unstable performance -- e.g., changing a single word in the prompt might result in substantial performance drop. We propose a novel method P-Tuning that employs trainable continuous prompt embeddings in concatenation with discrete prompts. Empirically, P-Tuning not only stabilizes training by minimizing the gap between various discrete prompts, but also improves performance by a sizeable margin on a wide range of NLU tasks including LAMA and SuperGLUE. P-Tuning is generally ef…

  5. Close
    PTR: Prompt Tuning with Rules for Text Classification
    Xu Han, Weilin Zhao, Ning Ding et al. · 2021 · AI Open · cited 612 times · Not summarized yet
    Abstract

    Fine-tuned pre-trained language models (PLMs) have achieved awesome performance on almost all NLP tasks. By using additional prompts to fine-tune PLMs, we can further stimulate the rich knowledge distributed in PLMs to better serve downstream tasks. Prompt tuning has achieved promising results on some few-class classification tasks such as sentiment classification and natural language inference. However, manually designing lots of language prompts is cumbersome and fallible. For those auto-generated prompts, it is also expensive and time-consuming to verify their effectiveness in non-few-shot scenarios. Hence, it is still challenging for prompt tuning to address many-class classification tas…

Papers that cite it

  1. Close
    Why Johnny Can’t Prompt: How Non-AI Experts Try (and Fail) to Design LLM Prompts
    J.D. Zamfirescu-Pereira, Richmond Y. Wong, Björn Hartmann et al. · 2023 · CHI Conference on Human Factors in Computing Systems · cited 1,022 times · Not summarized yet
    Abstract

    Pre-trained large language models (“LLMs”) like GPT-3 can engage in fluent, multi-turn instruction-taking out-of-the-box, making them attractive materials for designing natural language interactions. Using natural language to steer LLM outputs (“prompting”) has emerged as an important design technique potentially accessible to non-AI-experts. Crafting effective prompts can be challenging, however, and prompt-based interactions are brittle. Here, we explore whether non-AI-experts can successfully engage in “end-user prompt engineering” using a design probe—a prototype LLM-based chatbot design tool supporting development and systematic evaluation of prompting strategies. Ultimately, our probe …

  2. Close
    Learning to Prompt for Vision-Language Models
    Kaiyang Zhou, Jingkang Yang, Chen Change Loy et al. · 2021 · Computer Vision and Pattern Recognition · cited 3,375 times · AI summary available
    Abstract

    Vision-language pre-training has recently emerged as a promising alternative for representation learning. It shifts from the tradition of using images and discrete labels for learning a fixed set of weights, seen as visual concepts, to aligning images and raw text for two separate encoders. Such a paradigm benefits from a broader source of supervision and allows zero-shot transfer to downstream tasks since visual concepts can be diametrically generated from natural language, known as prompt. In this paper, we identify that a major challenge of deploying such models in practice is prompt engineering. This is because designing a proper prompt, especially for context words surrounding a class n…

  3. Very close
    RLPE: Teaching LLMs to Prompt with Reinforcement Learning
    Rahul Singhal, Karime Maamari, Pradyumna Tambwekar · 2026 · Not summarized yet
    Abstract

    Prompting is a widely used method for adapting general-purpose LLMs to domain-specific tasks. Effective prompts can be tedious to create manually, so prompt writing is increasingly handed to LLMs, with recent work training LLMs to write prompts for other models. These techniques either write prompts without observing how the task model behaves, blind to the failure modes the prompt should address, or must run alongside the task LLM at inference time, adding overhead to every query. Neither reflects how prompt engineering is often practiced. To close this gap, we introduce Reinforcement Learned Prompt Engineering (RLPE), which trains a model to analyze traces of a separate task model and writ…

  4. Close
    A Cross-Domain Evaluation of Prompting Techniques for Large Language Models
    Kevin Krazius, Tim Schlippe, P. Libbrecht · 2026 · cited 1 time · Not summarized yet
    Abstract

    Prompt engineering has become a central mechanism for guiding the behavior of Large Language Models (LLMs) across a wide range of reasoning and language understanding tasks [1], [2]. However, existing studies frequently evaluate prompting techniques using different LLMs, datasets, or task settings, making direct comparisons across methods and domains difficult [3]. Consequently, in this paper we present a controlled cross-domain evaluation of Zero-Shot prompting, Few-Shot prompting, Retrieval-Augmented Generation (RAG), and automatic prompt optimization based on a PE2-inspired optimization pipeline [4]-[6]. All experiments were conducted with the same LLM and evaluated on six benchmark datas…

  5. Close
    Evaluating Prompt Engineering Techniques for LLaMA-3: A Study of Zero-Shot, Few-Shot, and Chain-of-Thought Prompts Across Reasoning and Classification Tasks
    Darren Astle Travasso, Aboozar Taherkhani · 2026 · Information · Not summarized yet
    Abstract

    Prompt engineering has emerged as a practical and resource-efficient alternative to fine-tuning large language models (LLMs), particularly as these methods have a lower computation cost than fine-tuning. In this paper, three widely adopted prompting techniques—Zero-Shot, Few-Shot, and Chain-of-Thought (CoT)—were assessed. While these prompting strategies are well established, practitioners still lack clear guidance on when each technique should be preferred, which types of tasks they fail to support reliably, and how performance trade-offs may affect the practical use of LLM-based systems. These techniques are tested across three benchmark tasks: sentiment classification (SST-2), multiple-ch…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 6 November 2026.

The illustrated guide to the papers around a paper