A vendor advertises 1M context with 100% needle-in-a-haystack. What has that actually proven, and how would you evaluate long context properly?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
It proves the model can retrieve one lexically distinctive span from an otherwise unrelated haystack. That is close to the easiest long-context task that exists. The needle is out-of-distribution against the filler, so attention finds it by contrast, not by comprehension. Saturating NIAH is necessary but very weak evidence. It is a smoke test, and treating it as a capability claim is the mistake.
Full worked answer
It proves the model can retrieve one lexically distinctive span from an otherwise unrelated haystack. That is close to the easiest long-context task that exists. The needle is out-of-distribution against the filler, so attention finds it by contrast, not by comprehension. Saturating NIAH is necessary but very weak evidence. It is a smoke test, and treating it as a capability claim is the mistake.
What it does not test:
- Multiple needles, and needles that must be combined across separated positions (multi-hop).
- Aggregation over the whole context: count, sort, or summarise every mention. Retrieval attention cannot shortcut this, and accuracy falls off a cliff much earlier here than on NIAH.
- Distractors. Real corpora are full of near-duplicate and contradictory passages. A single unique needle in unrelated filler is nothing like your actual documents.
- Negatives. Can the model say the fact is not present? A model trained to always find something will invent a needle, and NIAH never measures that.
- Reasoning over retrieved content rather than quoting it.
What I would actually build: an eval on our own documents at our real lengths, with multi-fact and multi-hop queries, hard distractors mined from the corpus, a meaningful share of unanswerable questions to get a false-positive rate, at least one full-context aggregation task, and a sweep across depth and length so I get a degradation curve rather than one number. The output I want is effective context: the length at which accuracy crosses our bar. Public suites worth borrowing structure from are RULER, which generates variable-difficulty synthetic tasks and consistently puts effective context well below advertised context, realistic-task suites in the LongBench family, and BABILong for multi-hop.
Then the economics. Prefill is quadratic and KV memory is linear in length. If effective context is 32k, paying to stuff 1M tokens is buying latency and cost to get a worse answer than good retrieval would give. Long context does not retire RAG; it changes the chunk size.
What a good answer covers
- It proves the model can retrieve one lexically distinctive span from an otherwise unrelated haystack
- That is close to the easiest long-context task that exists
- The needle is out-of-distribution against the filler, so attention finds it by contrast, not by comprehension
- Saturating NIAH is necessary but very weak evidence
- It is a smoke test, and treating it as a capability claim is the mistake
Interviewer follow-ups to expect
How would you construct hard distractors automatically from a customer's corpus?
What does an unanswerable-question false-positive rate tell you that accuracy does not?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep