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: Time a real chat by show of hands: “the first word takes two seconds, the next ones thirty milliseconds — why?”. The lived-experience question primes the beat better than the prefill/decode vocabulary.
Instructor notes: Have them mentally time both phases: “how many tokens in parallel at prefill? how many at decode?”. Until a learner states that asymmetry out loud, the rest of the session sounds like a gratuitous optimization.
Instructor notes: Answer: the triangle becomes 1×1, i.e. trivial — only the state read O = qᵀS plus the local term remains. The whole chunkwise machinery is a prefill optimization; decode gains nothing from it. Expected wrong answer: “a 4×4 with padding”.
Instructor notes: Act out the chain: eight learners, each may compute only after receiving the previous one’s slip. Point at the seven who are waiting: “that is the GPU”. The image lasts the whole session.
Instructor notes: Ask someone to perform all 8 updates out loud, one at a time. The felt tedium does the teaching better than any throughput chart.
Instructor notes: Answer: the state updates form a chain — parallelizing them as-is would change the result; but one at a time, each step offers only a vector-matrix product and the matrix units sit idle. Nuance to demand: the GPU is not “slow”, it is idle.
Instructor notes: Have the ▶ arrows counted in each regime: 7 versus 1. Then ask what the count becomes for 8,000 tokens and C = 64 — dividing the critical path is the only thing chunking buys.
Instructor notes: Ask: “what would it take for the right half of the board to work at the same time as the left?”. The spontaneous proposals — copy the past? resend everything? — set up the value of a single state S₄.
Instructor notes: Physically split the board into two zones and forbid the right half from looking left except through a sticky note labeled “S₄”. That spatial constraint is exactly what the code does.
Instructor notes: Answer: chunks {1-2}{3-4}{5-6}{7-8} → hand off S₂, S₄, S₆, three passes instead of one; o₅..o₈ = [3,5],[7,7],[4,5],[7,7], unchanged — chunking is exact, only the execution changes. Expected wrong answer: “finding” imaginary rounding differences.
Instructor notes: Set the trap before the solution: “in a block computed all at once, what stops t5 from reading t7?”. Honest answer: nothing — except the mask. Let the discomfort settle before showing the triangle.
Instructor notes: Erase one zero from the triangle and have the group hunt the bug. The expected answer is not “the number is wrong” but “token 5 read the future, and training will happily reward it”.
Instructor notes: Answer: different causes — (3,4) sits above the diagonal, forbidden by causality; k₃·k₄ = 0 is a COMPUTED zero that was allowed to be nonzero. If k₃·k₄ were 1, cell (4,3) — below the diagonal — would become 1, but (3,4) would stay masked. Expected wrong answer: “it is zero everywhere, same thing”.
Instructor notes: Have the two families of zeros colored differently before stating the rule. The check “do these two zeros share a cause?” returns exactly here — this slide is its preparation.
Instructor notes: Write S₄ = [[3,4],[5,5]] on the board and ask: “v₁ was [2,3] — where is it?”. The silence is the lesson: it is in there, but no longer separable. An explicit callback to session 13’s superposition.
Instructor notes: Have them write S₄ on a slip, flip the chunk-1 board over, then ask for o₅. What they spontaneously demand is exactly the information the state must carry.
Instructor notes: Answer: o₅ = q₅ᵀS₄ + v₅ = [3,4] + [0,1] = [3,5] — inherited term plus local term. Chunk 2 can no longer know HOW [3,4] decomposes into v₁ and v₃: attribution is lost at the boundary (superposition, session 13). Expected wrong answer: believing v₁ and v₃ are recoverable “somewhere” in S₄.
Instructor notes: Poll: “chunk of 4, of 64, of 4,096: any advance?”. Have them vote for a C before exposing the trade-off — voting forces everyone to pick a criterion, and the diverging criteria fuel the beat’s debate.
Instructor notes: Have them compute C² for C = 16, 64, 128 and compare against a stated SRAM budget. Close on “there is no good C, there is a good C for this GPU” — the only honest conclusion.
Instructor notes: Answer: C² goes from 4,096 to 16,384 — ×4 for one doubling. If SRAM overflows, the triangle spills into slow memory and every access costs an order of magnitude more: throughput drops despite half the transitions. Expected wrong answer: reasoning in FLOPs alone, without the memory hierarchy.
Instructor notes: Have the table extended to C = 128 with a fictional SRAM budget (e.g. 8,192 cells): the group must find on its own which C overflows. The final rule then states itself.
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: three hand-offs (S₂, S₄, S₆), each 2×2 — state size does not depend on C. S₂ = [[2,3],[5,1]]; S₄ = [[3,4],[5,5]] (identical to the trace); S₆ = [[3,5],[7,7]]. o₅..o₈ = [3,5],[7,7],[4,5],[7,7] — unchanged: chunking is exact (common error 1). What changes: transition count and triangle sizes (four 2×2 instead of two 4×4). Expected misconception: hunting for rounding differences. Twelve 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.