Paper commentary
Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing
Prompt-based learning surveys how prompting replaces task-specific training in NLP
- Problem Standard supervised learning trains a separate objective for each downstream task, so adapting a pre-trained model still needs task-specific training. The paper points to a newer paradigm that avoids this.
- Method The authors survey prompt-based learning, which reformulates each task as a template with empty slots that the pre-trained language model fills in. They organize existing work by pre-trained models, prompts, answers and tuning strategies.
- Results The authors organize existing prompting work into a typology of prompting concepts, with a unified set of mathematical notation covering a wide range of existing methods.
Why fine-tuning gave way to prompting
Early NLP systems depended on feature engineering, where researchers hand-picked salient features from raw data. Neural models moved that effort into architecture engineering, because the network design supplied the inductive bias. From 2017-2019 the field moved to pre-train and fine-tune, and the focus shifted to objective engineering. A pre-trained LM is adapted by adding parameters and training them with task-specific objectives.
The main body of the pre-trained model is usually fine-tuned too, though not always. The authors describe a second shift, in which downstream tasks are reformulated to look like the LM's original training. A post like "I missed the bus today" can be followed by the prompt "I felt so", and the model fills the blank with an emotion word.
The catch is that this approach needs prompt engineering, a search for the prompt that lets the LM solve the task. Even so, one LM trained without supervision can cover many tasks once it has a suitable set of prompts.
How a prompt turns an input into an output
A template turns the input x into a textual prompt x′ that has empty slots. The pre-trained LM then fills those slots, producing a final string \(\hat{x}\). The output y is derived from that filled string. Changing only the prompt lets the same LM take on a new task.
Answer engineering decides the candidate answers Z and how they map to the output space Y. Manual design crafts those answers by hand, often for a limited label space such as topic or emotion words. Automated answer search can broaden the answer space, for example through paraphrasing by back-translation. Continuous answer search, by contrast, gives each label a soft token that gradient descent optimizes.
Those label tokens learn their embeddings from scratch rather than reuse the LM's own embeddings.
Which pre-training objectives suit which prompts
A pre-trained LM is usually trained to predict the probability of a text x. A standard LM does this one token at a time, usually from left to right. Denoising objectives first corrupt the input with a noising function and then predict the original sentence.
Corrupted Text Reconstruction computes loss only on the noised parts, while Full Text Reconstruction uses the whole input. This matters for prompts, because left-to-right models suit prefix prompts and reconstruction objectives suit cloze prompts. Models trained with standard LM or FTR objectives fit text generation, while classification can use a model trained with any of these objectives.
Noising operations include masking, replacement, deletion, permutation and rotation of tokens or spans. The noise can also target entities, so a model can be trained to predict entities especially well. Left-to-right representations use only the earlier words, while bidirectional ones draw on the whole sentence. Such conditioning is usually implemented through attention masking.
How the survey organizes prompting methods
The authors split existing work into pre-trained models, prompt engineering, answer engineering, multi-prompt learning and training strategies. Under training strategies, tuning-free prompting is paired with GPT-3 and BARTScore.
Multi-prompt learning uses several prompts for one input, in four forms: ensembling, augmentation, composition and decomposition. Prompt ensembling uses several unanswered prompts at inference time and combines their predictions. The authors also release a website, a paper list and tables of commonly used prompts.
Open challenges the authors name
The challenges the authors list include prompt design, answer engineering and the choice of tuning strategy. The choice of pre-trained model is another open question they list. Prompt engineering remains the main burden, since the prompt must be found for each task.
Paper info
- Authors
- Pengfei Liu, Weizhe Yuan, Jinlan Fu, Zhengbao Jiang, Hiroaki Hayashi, Graham Neubig
- Venue
- arXiv · Preprint
- First published
- 2021-7-28
- Added
- 2026-11-11
- Updated
- 2021-7-28
- Version
- v1
- arXiv
- 2107.13586
- Category
- cs.CL · cs.AI · cs.LG
- Original paper terms
- CC BY-SA 4.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Pengfei Liu, Weizhe Yuan, Jinlan Fu, Zhengbao Jiang, Hiroaki Hayashi, Graham Neubig (2021). Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing. arXiv:2107.13586v1. https://arxiv.org/abs/2107.13586v1
BibTeX
@misc{liu2021train,
title = {{Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing}},
author = {Pengfei Liu and Weizhe Yuan and Jinlan Fu and Zhengbao Jiang and Hiroaki Hayashi and Graham Neubig},
year = {2021},
eprint = {2107.13586},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2107.13586v1}
}