Peak-End Rule: Users Only Remember the Peak and the End
Nobel laureate Kahneman found that how people remember an experience is almost entirely set by the most intense moment (the peak) and the final moment (the end) — average level and duration barely matter. This rule answers a budget question directly: where in a session should you spend the most expensive model and the most optimization effort. This lesson has five experiments — play them one by one.
One 10-turn AI session, each turn scored 0 to 10. Open the four plots in turn and watch how average score (what engineering dashboards measure) and memory score (what users keep — roughly the average of peak and end, from Kahneman) diverge. Focus on plot ③: highest average of the four, lowest memory score.
The original evidence for the peak-end rule is a paper whose title is already a dare: Kahneman, Fredrickson, Schreiber & Redelmeier, 1993, in Psychological Science — When More Pain Is Preferred to Less: Adding a Better End. Subjects went through two cold-water trials, then answered one question: if you must do one again, which do you pick? Guess how most people chose.
One hand in 14°C water for a full 60 seconds, then done — towel off.
Same 60 seconds at 14°C, then 30 more seconds as the water quietly rose to 15°C: still unpleasant, just less biting.
Behind this is the split Kahneman keeps returning to in Thinking, Fast and Slow: the experiencing self lives every second (B objectively suffers 30 extra seconds), while the remembering self scores only the peak and end frames. Only the latter shows up to vote. In 1996 Redelmeier and Kahneman repeated the finding with real colonoscopy patients: procedures from 4 to 69 minutes, post-hoc pain ratings barely tracked duration, and tracked peak pain and the last three minutes tightly. The phenomenon has a name: duration neglect.
Watching ready-made plots isn't enough — building one yourself is what sticks. Below are 10 nodes in a session; tap a node to cycle good (+2) / mid (0) / bad (−2), and the two scores on the right update live. The challenge: build a curve with average score below 0 and memory score maxed at +2.0. When you hit it, the badge lights up.
If memory score only honors peak and end, inference budget should follow memory weight. Suppose a session has ¥100 of inference budget — drag three sliders across first interaction / middle / wrap-up (locked to sum to 100) and watch memory score and the verdict shift. One hidden rule up front: the middle has a semantic-cache floor at quality 5.0 — that's why it can be cheap. The cost track covered this when it taught tiered routing.
Budget done — now flow. Same Agent task: “generate a quarterly report and publish it externally.” Two wrap-up arrangements: A leaves external publish as the tenth-step finale; B moves validation to step one, persists intermediate artifacts as they go, and step ten only packages delivery plus a summary. Tap the version you think has the higher memory score.
✅ What this lesson wants to share
- Memory score ≠ average score: users archive only the peak and end frames — nobody remembers the average
- Make the peak: spend the flagship model on onboarding and high-value moments; a cache-speed reply counts as a peak too
- Protect the end: validation up front, intermediate artifacts persisted — never make the last step the most failure-prone action in the whole chain
- Save freely in the middle: cheap models plus a semantic-cache floor — move the savings to both ends to buy memory score