mlsanityData to 7 Oct 2026

LLM In-Context Recall is Prompt Dependent

arXiv 2404.08865 ↗First posted 13 Apr 2024cs.CL cs.LGcited by 15

Not on the map. Why?

Abstract (arXiv)

The proliferation of Large Language Models (LLMs) highlights the critical importance of conducting thorough evaluations to discern their comparative advantages, limitations, and optimal use cases. Particularly important is assessing their capacity to accurately retrieve information included in a given prompt. A model's ability to do this significantly influences how effectively it can utilize contextual details, thus impacting its practical efficacy and dependability in real-world applications. Our research analyzes the in-context recall performance of various LLMs using the needle-in-a-haystack method. In this approach, a factoid (the "needle") is embedded within a block of filler text (the "haystack"), which the model is asked to retrieve. We assess the recall performance of each model across various haystack lengths and with varying needle placements to identify performance patterns. This study demonstrates that an LLM's recall capability is not only contingent upon the prompt's content but also may be compromised by biases in its training data. Conversely, adjustments to model architecture, training strategy, or fine-tuning can improve performance. Our analysis provides insight into LLM behavior, offering direction for the development of more effective applications of LLMs.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 2 of its 9 references that are in the map. First posted on arXiv 13 Apr 2024.

Builds on

2 of 9 references.

References · 2

  1. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  2. 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 351

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 7; 2025: 7; 2026: 1.

15 papers.

Sort:

By area: