Log inStart free
LESSON 29.25 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Lost in the middle

Watch a model miss the answer when it sits in the middle of the prompt.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 29.25 · LONG CONTEXT10 DOCS · 1,000 TOKENS · GOLD IN SLOT 5
01
Stage 1 of 5 · The prompt
A retriever puts 10 documents before the question. The gold document in slot 5 holds the answer.
Explain it simply

You see the prompt as a row of boxes, one box per document, with the question at the far right. Only the gold document in slot 5 holds the answer. The bars show how well each document matches the question. The gold bar is the tallest, so a perfect reader would always pick it.

10 document boxes and a question box. The gold document is in slot 5. Its relevance bar is 0.93, the tallest. The next best is 0.91.

The reader is one attention score with a bias set by hand, not a trained model.
documents, relevanceposition biasattention, accuracywrong pick, gold not picked
questiongoldslot12345678910token 0token 1,000relevance to the question0.490.630.380.530.930.620.470.630.910.47the prompt · relevancer gold 0.93 · best other 0.91questiongoldslot12345678910token 0token 1,000relevance to the question0.490.630.380.530.930.620.470.630.910.47the prompt · relevancer gold 0.93 · best other 0.91
Toy: 5 to 20 documents of 100 tokens, 400 seeded questions
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
rj=relevance of document j\sy{r}{data}{r_j} = \text{relevance of document } j
rgold=0.93,max⁡otherr=0.91r_{\text{gold}} = 0.93,\quad \max_{\text{other}} r = 0.91

Each document has a relevance to the question.

Common mix-ups

MYTHA model reads every part of its prompt equally well.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If the gold document moves from the middle to the last slot, does accuracy go up or down?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.