Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

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}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up