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

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

Soumis à arXiv le 28 Jul. 2021
Licence : CC BY-SA 4.0
Résumé scientifique

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.

Les articles autour de lui, par date et par proximité

Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article

Comment lire cette carte ? Guide illustré

Les articles les plus proches Les travaux antérieurs sur lesquels il s’appuie Les articles qui le citent

Les articles autour de celui-ci

Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.

Les articles les plus proches

  1. Très proche
    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 · cité 3 fois · Pas encore résumé
    Résumé scientifique

    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. Très proche
    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, non relu par les pairs · cité 1 100 fois · Résumé IA disponible
    Résumé scientifique

    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. Très proche
    A Survey of Graph Prompting Methods: Techniques, Applications, and Challenges
    Xuansheng Wu, Kaixiong Zhou, Mingchen Sun et al. · 2023 · Machine Learning · preprint, non relu par les pairs · cité 16 fois · Résumé IA disponible
    Résumé scientifique

    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. Très proche
    Efficient Prompting Methods for Large Language Models: A Survey
    Kai-Yan Chang, Songcheng Xu, Chenglong Wang et al. · 2024 · arXiv.org · preprint, non relu par les pairs · cité 71 fois · Pas encore résumé
    Résumé scientifique

    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. Très proche
    A Brief History of Prompt: Leveraging Language Models. (Through Advanced Prompting)
    Golam Md Muktadir · 2023 · Computation and Language · cité 21 fois · Résumé IA disponible
    Résumé scientifique

    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. Très proche
    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 · cité 354 fois · Pas encore résumé
    Résumé scientifique

    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. Très proche
    The Prompt Report: A Systematic Survey of Prompting Techniques
    Sander Schulhoff, Michael Ilie, Nishant Balepur et al. · 2024 · Computation and Language · cité 272 fois · Résumé IA disponible
    Résumé scientifique

    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. Très proche
    MetaPrompting: Learning to Learn Better Prompts
    Yutai Hou, Hongyuan Dong, Xinghao Wang et al. · 2022 · Computation and Language · cité 55 fois · Résumé IA disponible
    Résumé scientifique

    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…

Les travaux antérieurs sur lesquels il s’appuie

  1. Proche Utilisé en profondeur par cet article Une méthode qu’il utilise
    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 · cité 583 fois · Pas encore résumé
    Résumé scientifique

    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. Proche Utilisé en profondeur par cet article Une méthode qu’il utilise
    KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction
    Xiang Chen, Ningyu Zhang, Ning-Yu Zhang et al. · 2021 · The Web Conference · cité 525 fois · Pas encore résumé
    Résumé scientifique

    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. Proche
    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 · cité 616 fois · Pas encore résumé
    Résumé scientifique

    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. Proche Utilisé en profondeur par cet article
    GPT Understands, Too
    Xiao Liu, Yanan Zheng, Zheng-Xiao Du et al. · 2021 · AI Open · cité 1 483 fois · Pas encore résumé
    Résumé scientifique

    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. Proche
    PTR: Prompt Tuning with Rules for Text Classification
    Xu Han, Weilin Zhao, Ning Ding et al. · 2021 · AI Open · cité 612 fois · Pas encore résumé
    Résumé scientifique

    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…

Les articles qui le citent

  1. Proche
    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 · cité 1 022 fois · Pas encore résumé
    Résumé scientifique

    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. Proche
    Learning to Prompt for Vision-Language Models
    Kaiyang Zhou, Jingkang Yang, Chen Change Loy et al. · 2021 · Computer Vision and Pattern Recognition · cité 3 375 fois · Résumé IA disponible
    Résumé scientifique

    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. Très proche
    RLPE: Teaching LLMs to Prompt with Reinforcement Learning
    Rahul Singhal, Karime Maamari, Pradyumna Tambwekar · 2026 · Pas encore résumé
    Résumé scientifique

    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. Proche
    A Cross-Domain Evaluation of Prompting Techniques for Large Language Models
    Kevin Krazius, Tim Schlippe, P. Libbrecht · 2026 · cité 1 fois · Pas encore résumé
    Résumé scientifique

    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. Proche
    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 · Pas encore résumé
    Résumé scientifique

    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…

Comment ces articles sont-ils trouvés ?

Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.

Mis à jour le 6 novembre 2026.

Le guide illustré des articles autour d’un article