Term
few-shot prompting
Meaning
A prompting method in which a model receives a prompt containing a few input-output examples of the target task, so that it picks up the task from these examples in context and without any weight updates.
How papers use it 8 papers
Self-Refine: Iterative Refinement with Self-Feedback
Use Used to guide the same base model to produce feedback and to incorporate that feedback into a refined output. Self-Refine's feedback and refinement prompts are few-shot prompts, even for models that already follow instructions well, so that the evaluation stays consistent across models.
BloombergGPT: A Large Language Model for Finance
Use Serves as the main adaptation setting for the financial and general evaluations. The public financial tasks are adapted to a few-shot setting with the number of shots chosen per task, for example 5 shots for FPB, FiQA SA and Headline, and the number of shots varies by task across the evaluations. The few-shot examples are drawn from the training split, and different shots are sampled for each test example unless stated otherwise.
Meaning A way of using a language model in which a small number of labeled task examples are placed in the prompt so the model can infer the task from them, with no change to the model's weights.
Program Synthesis with Large Language Models
Use The paper uses it as one of its two evaluation regimes for MBPP and MathQA-Python. Held-out example problems are concatenated into the prompt, and the pre-trained model is asked to complete the output. The largest model reaches 59.6% of MBPP problems with this approach, and it is the baseline against which fine-tuning is compared.
Meaning A prompting approach in which several solved example problems are placed before a new problem, and a pre-trained language model completes the solution for the new problem without any change to its weights.
STaR: Bootstrapping Reasoning With Reasoning
Use STaR starts from a small set of examples with rationales that is concatenated before each training question, so the model generates a rationale and answer for that question. In the CommonsenseQA experiments the few-shot prompt is built from 10 questions with edited rationales. The paper reports that including or omitting these prompts after the first outer-loop iteration had no substantial effect on rationalization results, and it uses few-shot prompts unless stated otherwise.
Meaning A way of using a pretrained language model by placing a few input-output examples in its prompt so that it can answer a new input by imitating the pattern, without updating its weights.
Prompting Is Programming: A Query Language for Large Language Models
Use Used in the chain-of-thought case study, where the prompt clause of the LMQL query contains two few-shot examples with reasoning steps before the question. The same few-shot examples are fed to the baseline program, so the comparison keeps the prompt fixed.
Meaning A prompting approach in which a language model is given a few task examples inside its context, without task-specific training, so it can perform the task by sequence completion.
Instruction-Following Evaluation for Large Language Models
Use Serves as the generation step within prompt synthesis. The generated candidate prompts are then reviewed and curated manually before they enter the benchmark.
Meaning A prompting technique in which a language model is given a small number of examples before it produces new output. Here it is used to generate new prompts that contain verifiable instructions.
Large Language Models Encode Clinical Knowledge
Use The base prompting setup for the MedQA, MedMCQA and PubMedQA results with Flan-PaLM.
Meaning Giving a model a few worked examples inside the prompt, without updating its weights.
Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Use Forms the basic setting of the paper. Both standard prompting and chain-of-thought prompting insert a few exemplars into the prompt, and the exemplars for chain-of-thought prompting are augmented with reasoning steps. The paper uses off-the-shelf models and does not finetune them.
Meaning A way of using a pretrained language model in which a small number of input-output examples are placed in the prompt, and the model is asked to answer a new input without any weight updates.