Critical exception is omitted
Detect: Coverage checks find a required source fact absent.
Recover: Rebuild context or use targeted extraction before answering.
Test and reduce position-sensitive evidence loss in long prompts through selection, ordering, local extraction, and explicit coverage checks.
Lost in the middle describes a research-observed tendency for some models and tasks to use information less reliably when it appears deep inside long contexts. The effect depends on model, task, evidence density, and prompt construction. It should be treated as an evaluation risk, not a universal claim that every model always ignores its middle tokens.
Mitigation begins with reducing irrelevant context, then testing evidence placement. Useful strategies include ranking important passages early, keeping the current question clear, extracting local facts before synthesis, and checking coverage of required evidence. Duplicating every important fact at both ends can waste tokens and create conflicting copies when revisions change.
A prototype moves the same supporting passage among several prompt positions and compares answer correctness.
Production adds position-variation tests, evidence selection, source-aware ordering, and a check for missing required facts.
At scale, repeat evaluation after model or template changes and measure effects across document length, language, and multi-source reasoning tasks.
Holds evidence constant while varying its placement and surrounding distractors.
Removes irrelevant or redundant passages before ordering.
Places high-value evidence and clear task instructions deliberately.
Extracts supported facts from bounded sections when full-context synthesis is unreliable.
Checks whether all required evidence dimensions appear in the final answer.
flowchart LR
D["Long mixed document set"] --> S["Select relevant sections"]
S --> O["Evidence ordering"]
S --> L["Local cited extraction"]
O --> A["Answer synthesis"]
L --> A
A --> C["Coverage check"]
T["Position-variation tests"] --> OEvaluate identical questions with supporting evidence near the beginning, middle, and end.
Remove passages that do not support a required answer dimension.
Group coherent sources and place critical evidence according to measured model behavior.
Produce cited section-level facts before combining them into a larger synthesis.
Check missing constraints, exceptions, and source conflicts rather than answer fluency alone.
Repeat positional tests after changing the model, context budget, or assembly template.
Procurement · Illustrative enterprise scenario, not a reported customer outcome.
A procurement assistant compares obligations across a lengthy agreement and several schedules.
An exception located in the middle of the assembled context is repeatedly omitted from summaries.
Preserve the exception and show its source alongside the general obligation.
The pipeline selects relevant sections, extracts local obligation facts, and validates a coverage matrix before synthesis.
If a model upgrade regresses middle-position tests, the rollout remains on the previous evaluated configuration.
Measure exception coverage and positional sensitivity alongside context cost; adding more context can worsen the evidence-to-distractor ratio.
| Decision | Benefit | Cost |
|---|---|---|
| Reordering evidence | Can improve access to important passages. | Benefits vary by model and task. |
| Local extraction | Reduces the burden of one large synthesis. | Adds calls and can lose cross-section relationships. |
| Coverage validation | Makes omissions visible. | Requires explicit answer requirements and supporting labels. |
Detect: Coverage checks find a required source fact absent.
Recover: Rebuild context or use targeted extraction before answering.
Detect: Duplicated passages contain different revisions.
Recover: Deduplicate by source version and preserve one authoritative copy.
Test evidence use at different positions.
Measure ordering strategies and avoid unnecessary duplication.
Include multi-source conditions and exceptions.