What is zero-shot learning?
Zero-shot learning is when a model performs a task it was given only instructions for, with no examples of that task in the prompt or in task-specific training.
Also called: zero-shot prompting, zero-shot
How it works
A zero-shot prompt describes the task in plain words, such as "Label this message as a scam or not a scam", and gives the input. The model relies on what it learned in general training to produce an answer.
Large foundation models are often good at zero-shot tasks that look like common language problems. They are weaker on tasks that depend on private context, such as your company's own categories or thresholds.
Why it matters for fraud and risk
Zero-shot is a fast way to get a first read on new data before any labels exist. A team can sort a backlog of reports into rough groups, spot themes in complaints or check whether a website describes the business it claims to run.
Because there are no examples, the model's idea of "suspicious" is its own, not yours. Results should be treated as a starting point for review, not a decision, until they have been measured against labeled cases.
Zero-shot vs few-shot
- Zero-shot: fastest to set up, no examples needed, less consistent on niche tasks.
- Few-shot: a handful of examples, usually more accurate and better at matching your format.
- Fine-tuning: many examples and a training step, best for stable high-volume tasks.
Example
A hypothetical platform receives a sudden wave of user reports in many languages. A zero-shot prompt sorts them into themes overnight. One theme, fake delivery fee messages, stands out, and the team builds a labeled set from it for a more accurate model.
Related terms
- Few-shot promptingFew-shot prompting is a way of guiding a language model by including a small number of worked examples of the task in the prompt, before the new input it should handle.
- In-context learningIn-context learning is a language model's ability to pick up a task from instructions and examples placed in the prompt, without any change to the model's weights.
- Foundation modelA foundation model is a large AI model trained on broad data that can be adapted to many tasks, such as chat, classification or summarization, without training a new model from scratch.
- Fine-tuningFine-tuning is further training of an existing model on a smaller, task-specific dataset so it performs better on that task or follows a particular style or format.
- Prompt engineeringPrompt engineering is the practice of writing and testing the instructions, context and examples given to an AI model so that it produces accurate, useful and consistent output.