ELI5 in-context learning of language models
- User
ELI5 in-context learning of language models
- Assistant
Explain like I'm five: Imagine you have a big box of different toys, and you want to teach your toy robot how to play with them. You show the robot one toy at a time, and each time you show it a new toy, you tell the robot what to do with it. This is like how language models learn. They are given lots of examples of sentences, and each time they see a new sentence, they learn what words go together and how to use them. This helps them understand and create new sentences on their own.
- User
A few examples please.
- Assistant
Okay, here are some examples:
- Example 1: Learning to translate
Imagine you want to teach a language model to translate English to Spanish. You show it many examples like:
- "The cat is on the mat." - "El gato está en la alfombra."
- "I like to eat apples." - "Me gusta comer manzanas."
The model learns from these examples that "cat" translates to "gato", "mat" translates to "alfombra", and so on. Then, when you show it a new sentence like "The dog is barking", it can use what it learned to translate it to "El perro está ladrando".
- Example 2: Answering questions
You can also teach a language model to answer questions. You show it examples like:
- "What is the capital of France?" - "Paris"
- "What is the highest mountain in the world?" - "Mount Everest"
The model learns to connect questions with their answers. Then, when you ask it "What is the largest ocean?", it can use what it learned to answer "The Pacific Ocean".
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.