Chapter 6 IV.6
Prompting and In-Context Learning
In-context learning is task inference at run time, and calling it learning obscures that nothing is updated.
Task inference at run time, not learning: the parameters do not move.
How this chapter is built
M1Definitional
Mathematics defines, and stops there. At most three displayed equations, no derivations.
Five strands, not one. Mathematics is the spine; the other four are the body. A chapter cannot pay its way out of teaching with problems, nor out of problems with teaching.
Before you start
The problem
A model that has never been trained on a task can perform it from three examples in its context. Whatever is happening, it is not gradient descent, and the distinction matters for what can and cannot be relied on.
What this chapter covers
- Zero-shot
- Few-shot
- Chain-of-thought
- Structured prompting
- Tool use
- Reasoning prompts
Apparatus
The mathematics this chapter leans on, held in Book 0 so it can be assumed here without being taught here. Not a gate — follow a link when a step stops making sense.
Notation
- TSequence length in tokens
- 𝔼Expectation
Propositions
Not yet written. The topics above are the plan for this chapter; each will become a proposition with its own figure.
Worked problems
0/1 problems0/1 variants0/3 exercisesowes 4 more
Not yet written. At M1 this chapter owes 1 worked problems across 1 distinct variants, and 3 exercises, every one with a published solution. The build enforces that from the day the chapter is marked published.