"Lost-in-the-Middle" Effect: LLM Context Window's Blind Spot

Even with large context windows, LLMs often exhibit a "lost-in-the-middle" effect, where their attention mechanisms prioritize information at the beginning and end of the input, causing critical instructions or facts in the middle to be overlooked and degrading accuracy by over 30%.

The top 3

  1. Who First Documented the 'Lost-in-the-Middle' Effect?: The 'Lost-in-the-Middle' effect was first identified and documented by Liu et al. (2023) from Stanford, revealing a U-shaped performance curve where LLMs struggle with information in the middle of long contexts.
  2. Which LLMs Suffer Most from Middle Context Blind Spots?: The 'Lost-in-the-Middle' effect impacts nearly all LLMs, including GPT-3.5-turbo, GPT-4, Claude 1.3, Llama 2 variants, and Gemini 1.5 Pro, with accuracy drops of 15-25 percentage points for information placed in the middle.
  3. Top 3 Strategies to Overcome LLM 'Lost-in-the-Middle': Key mitigation strategies include placing critical information at prompt boundaries (beginning/end), using re-rankers to select few high-quality chunks, and employing hierarchical summarization for long documents.

Sources

Open the full topic