← Back to Glossary

Zero-Shot Learning

Techniques

When an AI model performs a task correctly without being given any examples -- relying entirely on its training knowledge and your instructions.

Think of zero-shot learning like asking a well-educated friend to do something they have never specifically practiced. If you ask your friend who speaks French to translate a menu, they can probably do it even if they have never translated a menu before -- their general knowledge is enough.

Zero-shot learning means asking an AI to do something without providing any examples. You just describe what you want in plain language, and the model figures out how to do it based on what it learned during training. The "zero" means zero examples -- you are giving zero shots at showing what you want.

For example, if you ask ChatGPT "Translate this sentence into French" without showing it any example translations, that is zero-shot. The model can do it because it learned French during training. If you say "Classify this email as spam or not spam," the model understands what spam is and can make a judgment without you showing it examples of spam and non-spam emails first.

Zero-shot capability is one of the most impressive things about modern large language models. Older AI systems needed to be specifically trained for every single task. You needed a separate model for translation, another for summarization, another for classification. Today's LLMs can handle all of these tasks (and many more) zero-shot -- just tell them what you want in plain English.

The practical takeaway: always try zero-shot first because it is the simplest approach. Just ask for what you want. If the results are not quite right, then add examples (few-shot learning) or more detailed instructions. Many tasks work perfectly fine with zero-shot prompting, especially with the more capable models.

Real-World Examples

  • *Asking ChatGPT to summarize an article without showing it example summaries
  • *Telling Claude to 'Extract all dates from this document' with no formatting examples
  • *Asking Gemini to classify customer feedback as positive, negative, or neutral with no examples

Tools That Use This

ChatGPTFreemiumClaudeFreemiumGeminiFreemium

Related Terms

Few-Shot LearningPrompt EngineeringLarge Language ModelInference