Instructor notes: Frame the problem before naming the mechanism. Collect an initial prediction and retain it for the exit ticket.
Instructor notes: Connect every step to the next with a causal verb. Flag any merely decorative arrow.
Instructor notes: Re-display session 13’s S = [[11,12],[5,1]] and take a vote: “implementation bug or mathematical property?”. “Bug” usually wins — perfect: the beat shows the addition did exactly what it was told.
Instructor notes: Open by re-displaying S = [[11,12],[5,1]] from the previous session and ask “what should have happened?” before introducing any formula. The delta rule must land as an answer to a pain they already felt.
Instructor notes: Answer: attribution is lost — nothing says [11,12] = [2,3] + [9,9] rather than any other decomposition; a sum has infinitely many preimages, so addition is irreversible. Expected wrong answer: “subtract the old value” — you would need to still know it.
Instructor notes: Read both columns right to left: the same token produces two different memories. The only code difference is the prior read — have it underlined.
Instructor notes: Ask: “before correcting someone, what must you know?” — what they currently believe. The teaching analogy carries the beat: a memory is corrected like a learner, starting from its present answer.
Instructor notes: Have them compute v̂ = Sᵀk by hand for two keys, one of them misaligned. Do not comment on the second result: let the group discover that the read matches nothing stored.
Instructor notes: Answer: k=[0,1] reads [5,1], a genuinely stored value; k=[0.5,0.5] reads 0.5·[2,3] + 0.5·[5,1] = [3.5, 2] — no written value. Key choice decides whether “reading” means retrieving or blending. Expected wrong answer: renormalizing the blend to “recover” a value.
Instructor notes: Have e computed on two degenerate cases first: v̂ = v (nothing to do) and v̂ = 0 (write everything). The two extremes make the general case [7,6] immediately readable.
Instructor notes: Force the e=[0,0] case with a show of hands: “does memory write anything?” Half will say yes. That is the moment the difference from addition becomes visceral.
Instructor notes: Answer: e = [0,0], k eᵀ = [[0,0],[0,0]] — memory does NOTHING, and that is the desired behavior on a redundant token. Expected wrong answer: “it reinforces the association”, the reflex inherited from session 13’s addition.
Instructor notes: Announce “one formula, three dials” and have the roles identified before giving the breakdown: what localizes? what carries content? what sets the dose? The three answers (k, e, β) structure the beat.
Instructor notes: Elicit a prediction for S at β=0.5 before computing, then ask which β would cancel the error in one step. Move straight to case D: the answer “1” is wrong the moment ‖k‖≠1.
Instructor notes: Answer: β=1 → row 1 = [9,9]; β=0.5 → [5.5, 6]. Rule: (1 − β·‖k‖²) of the error remains — here ‖k‖² = 1, hence (1 − β). Expected wrong answer: generalizing (1 − β) to any key while forgetting ‖k‖²; case D refutes it two slides later.
Instructor notes: Hide the three captions and have them recovered. Then test the residual formula on case D: β = 1 but ‖k‖² = 2 → residual (1 − 2) = −1: the negative sign IS the overshoot.
Instructor notes: Flash question: “while you talk to an assistant, what is changing inside the machine?”. Collect answers loosely, then sort them into the two columns of the visual support.
Instructor notes: Draw two columns on the board, “changes every token” and “changes every gradient step”, and have them sort S, W_k, W_v, β, k. Fast-weight versus parameter confusion is what blocks sessions 16 and 17.
Instructor notes: Answer: no — W_k, W_v, W_β are frozen at inference. Sorting: S fast; k, v, β recomputed each token from slow parameters; the W_* slow. Expected wrong answer: filing β as a hyperparameter — the deck’s common error 2.
Instructor notes: Sort the objects the room named at the start of the beat into the table, then ask: “where does a chat correction live?”. Right column — a direct callback to beginner session 11.
Instructor notes: Show the two code snippets side by side for thirty seconds and vote: “same mechanism or not?”. Record the tally — it gets compared after the beat.
Instructor notes: Deliberately write the transposed formula on the board and see who objects. Close with a house rule: no formula is discussed unless its shapes are written next to it.
Instructor notes: Answer: the same mechanism transposed — declaring S’s shape, (d_k×d_v) or (d_v×d_k), settles it immediately; then check that write AND read use the same convention. Expected wrong answer: declaring the second code wrong because “the course formula” is the other one.
Instructor notes: Walk line by line. Locate an inconsistency at the first faulty step, not only on the final line.
Instructor notes: Have learners fill the final row before revealing it: that trade-off is what decides in production.
Instructor notes: Retain initial and final values. Do not allow simultaneous changes that make the delta impossible to attribute.
Instructor notes: For each claim, have the group produce the smallest counterexample before giving the correction.
Instructor notes: Separate verifiable mechanism, reported implementation choice, and experimental result. Evidence precision must match claim precision.
Instructor notes: Answers: v̂ = 0.707·[7,4] ≈ [4.95, 2.83], e ≈ [−3.95, −2.83]; since β·‖k‖² = 1, the read q = k lands exactly on [1,0] — case D’s overshoot disappears. BUT the correction writes into BOTH rows (k has no zero): the reads q=[1,0] and q=[0,1] get polluted. ‖k‖ = 1 guarantees exact replacement on THIS key; isolation of the others comes from orthogonality, not from the norm. Ten minutes, pairs.
Instructor notes: Rebuild the chain without looking at the slides, then fill the ticket in at most six lines. Compare with the opening prediction and name what actually changed.