LLM In-Context Recall is Prompt Dependent
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
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 351
Built on by
Citing papers per year: 2024: 7; 2025: 7; 2026: 1.
15 papers.
Sort:
By area:
- 2024Summary of a Haystack: A Challenge to Long-Context LLMs and RAG Systemscited by 87
- 2024Efficient Solutions For An Intriguing Failure of LLMs: Long Context Window Does Not Mean LLMs Can Analyze Long Sequences Flawlesslycited by 23
- 2025Language Models' Factuality Depends on the Language of Inquirycited by 14
- 2025SynthTRIPs: A Knowledge-Grounded Framework for Benchmark Query Generation for Personalized Tourism Recommenderscited by 8
- 2024Attention Instruction: Amplifying Attention in the Middle via Promptingcited by 6
- 2025Statistical Advantage of Softmax Attention: Insights from Single-Location Regressioncited by 6
- 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"cited by 5
- 2024RAGSys: Item-Cold-Start Recommender as RAG Systemcited by 4
- 2024Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Modelscited by 4
- 2025Teaching LLMs Music Theory with In-Context Learning and Chain-of-Thought Prompting: Pedagogical Strategies for Machinescited by 2
- 2025UrzaGPT: LoRA-Tuned Large Language Models for Card Selection in Collectible Card Gamescited by 2
- 2025A Survey on Training-free Alignment of Large Language Modelscited by 2
- 2026Contractual Deepfakes: Can Large Language Models Generate Contracts?10 Feb 2026
- 2025Statistical Advantage of Softmax Attention: Insights from Single-Location Regression26 Sep 2025
- 2025A Survey on Training-free Alignment of Large Language Models12 Aug 2025
- 2025UrzaGPT: LoRA-Tuned Large Language Models for Card Selection in Collectible Card Games11 Aug 2025
- 2025SynthTRIPs: A Knowledge-Grounded Framework for Benchmark Query Generation for Personalized Tourism Recommenders12 Apr 2025
- 2025Teaching LLMs Music Theory with In-Context Learning and Chain-of-Thought Prompting: Pedagogical Strategies for Machines28 Mar 2025
- 2025Language Models' Factuality Depends on the Language of Inquiry25 Feb 2025
- 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"9 Feb 2025
- 2024Rank It, Then Ask It: Input Reranking for Maximizing the Performance of LLMs on Symmetric Tasks30 Nov 2024
- 2024Testing Uncertainty of Large Language Models for Physics Knowledge and Reasoning18 Nov 2024
- 2024Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Models6 Sep 2024
- 2024Efficient Solutions For An Intriguing Failure of LLMs: Long Context Window Does Not Mean LLMs Can Analyze Long Sequences Flawlessly3 Aug 2024
3 more
- 2025A Survey on Training-free Alignment of Large Language Models12 Aug 2025
- 2024Efficient Solutions For An Intriguing Failure of LLMs: Long Context Window Does Not Mean LLMs Can Analyze Long Sequences Flawlesslycited by 23
- 2025Language Models' Factuality Depends on the Language of Inquirycited by 14
- 2025SynthTRIPs: A Knowledge-Grounded Framework for Benchmark Query Generation for Personalized Tourism Recommenderscited by 8
- 2024Attention Instruction: Amplifying Attention in the Middle via Promptingcited by 6
- 2025Statistical Advantage of Softmax Attention: Insights from Single-Location Regressioncited by 6
- 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"cited by 5
- 2024Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Modelscited by 4
- 2025UrzaGPT: LoRA-Tuned Large Language Models for Card Selection in Collectible Card Gamescited by 2
- 2024Rank It, Then Ask It: Input Reranking for Maximizing the Performance of LLMs on Symmetric Taskscited by 0
- 2026Contractual Deepfakes: Can Large Language Models Generate Contracts?cited by 0
- 2026Contractual Deepfakes: Can Large Language Models Generate Contracts?10 Feb 2026
- 2025Statistical Advantage of Softmax Attention: Insights from Single-Location Regression26 Sep 2025
- 2025UrzaGPT: LoRA-Tuned Large Language Models for Card Selection in Collectible Card Games11 Aug 2025
- 2025SynthTRIPs: A Knowledge-Grounded Framework for Benchmark Query Generation for Personalized Tourism Recommenders12 Apr 2025
- 2025Language Models' Factuality Depends on the Language of Inquiry25 Feb 2025
- 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"9 Feb 2025
- 2024Rank It, Then Ask It: Input Reranking for Maximizing the Performance of LLMs on Symmetric Tasks30 Nov 2024
- 2024Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Models6 Sep 2024
- 2024Efficient Solutions For An Intriguing Failure of LLMs: Long Context Window Does Not Mean LLMs Can Analyze Long Sequences Flawlessly3 Aug 2024
- 2024Attention Instruction: Amplifying Attention in the Middle via Prompting24 Jun 2024