Few-shot learning lets a GPT-like language model perform a new task from a minimal number of examples supplied in the input, without retraining or task-specific architecture changes. section 1.4
Few-shot learning fits into the LLM workflow as follows:
- A pretrained model performs text completion and uses example inputs to infer the target task. section 1.3
- Examples are placed directly in the prompt, unlike fine-tuning, which trains further on labeled data. section 1.4 section 1.3
- Zero-shot learning omits task-specific examples, while few-shot learning includes a small number of them. section 1.4
Figure 1.6 In addition to text completion, GPT-like LLMs can solve various tasks based on their inputs without needing retraining, fine-tuning, or task-specific model architecture changes. Sometimes it is helpful to provide examples of the target within the input, which is known as a few-shot setting. However, GPT-like LLMs are also capable of carrying out tasks without a specific example, which is called zero-shot setting.
Compare zero-shot and few-shot prompting, including how target examples appear in the input without model retraining. section 1.4

















