Needle in the Haystack for Memory Based Large Language Models
Not on the map. Why?
Abstract (arXiv)
Current large language models (LLMs) often perform poorly on simple fact retrieval tasks. Here we investigate if coupling a dynamically adaptable external memory to a LLM can alleviate this problem. For this purpose, we test Larimar, a recently proposed language model architecture which uses an external associative memory, on long-context recall tasks including passkey and needle-in-the-haystack tests. We demonstrate that the external memory of Larimar, which allows fast write and read of an episode of text samples, can be used at test time to handle contexts much longer than those seen during training. We further show that the latent readouts from the memory (to which long contexts are written) control the decoder towards generating correct outputs, with the memory stored off of the GPU. Compared to existing transformer-based LLM architectures for long-context recall tasks that use larger parameter counts or modified attention mechanisms, a relatively smaller size Larimar is able to maintain strong performance without any task-specific training or training on longer contexts.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 11 of its 16 references that are in the map. First posted on arXiv 1 Jul 2024.
Builds on
11 of 16 references.
References · 11
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2020Optimus: Organizing Sentences via Pre-trained Modeling of a Latent Spacecited by 114
- 2020Rewriting a Deep Generative Modelcited by 105
- 2020Memory Transformercited by 74
- 2024Larimar: Large Language Models with Episodic Memory Controlcited by 53
- 2024In Search of Needles in a 11M Haystack: Recurrent Memory Finds What LLMs Misscited by 36
- 2024TransformerFAM: Feedback attention is working memorycited by 21
Built on by
Citing papers per year: 2024: 2; 2025: 21; 2026: 9.
32 papers.
Sort:
By area:
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systemscited by 170
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scalecited by 163
- 2025T*: Re-thinking Temporal Search for Long-Form Video Understandingcited by 82
- 2024LLMs Will Always Hallucinate, and We Need to Live With Thiscited by 77
- 2026AMA-Bench: Evaluating Long-Horizon Memory for Agentic Applicationscited by 46
- 2025Beyond the Final Answer: Evaluating the Reasoning Trajectories of Tool-Augmented Agentscited by 20
- 2026Evaluating Long-Horizon Memory for Multi-Party Collaborative Dialoguescited by 16
- 2024Distance between Relevant Information Pieces Causes Bias in Long-Context LLMscited by 15
- 2025BLAB: Brutally Long Audio Benchcited by 11
- 2025Context Is What You Need: The Maximum Effective Context Window for Real World Limits of LLMscited by 11
- 2025Tool-Augmented Spatiotemporal Reasoning for Streamlining Video Question Answering Taskcited by 10
20 more
- 2025The Lucie-7B LLM and the Lucie Training Dataset: Open resources for multilingual language generationcited by 9
- 2025Evaluating the Sensitivity of LLMs to Prior Contextcited by 9
- 2025Prompt-MII: Meta-Learning Instruction Induction for LLMscited by 8
- 2026Towards Natural Personalization: Evaluating Long-Horizon Preference Following in Personalized User-LLM Interactionscited by 8
- 2025From Tools to Teammates: Evaluating LLMs in Multi-Session Coding Interactionscited by 7
- 2026M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modelingcited by 7
- 2025Video-LevelGauge: Investigating Contextual Positional Bias in Large Video Language Modelscited by 6
- 2025K2-V2: A 360-Open, Reasoning-Enhanced LLMcited by 3
- 2026Mi:dm 2.0 Korea-centric Bilingual Language Modelscited by 3
- 2025SCOPE: Stochastic and Counterbiased Option Placement for Evaluating Large Language Modelscited by 2
- 2025Mask-Enhanced Autoregressive Prediction: Pay Less Attention to Learn Morecited by 1
- 2025Pause-Tuning for Long-Context Comprehension: A Lightweight Approach to LLM Attention Recalibrationcited by 1
- 2025PromptDistill: Query-based Selective Token Retention in Intermediate Layers for Efficient Large Language Model Inferencecited by 1
- 2026Can an Actor-Critic Optimization Framework Improve Analog Design?cited by 1
- 2026From Facts to Insights: A Persona-Driven Dual Memory Framework and Dataset for Role-Playing Agentscited by 1
- 2025Assessing Consciousness-Related Behaviors in Large Language Models Using the Maze Testcited by 0
- 2025Active Learning and Explainable AI for Multi-Objective Optimization of Spin Coated Polymerscited by 0
- 2025CareMedEval dataset: Evaluating Critical Appraisal and Reasoning in the Biomedical Fieldcited by 0
- 2026Can Open-Weight Models Compete on Financial Text Comprehension?cited by 0
- 2026ProxyFormer: A Dual-Stream Proxy Architecture for Ultra-Long Context and High-Resolution Generationcited by 0
- 2026ProxyFormer: A Dual-Stream Proxy Architecture for Ultra-Long Context and High-Resolution Generation24 Aug 2026
- 2026Can Open-Weight Models Compete on Financial Text Comprehension?9 Aug 2026
- 2026From Facts to Insights: A Persona-Driven Dual Memory Framework and Dataset for Role-Playing Agents25 May 2026
- 2026Can an Actor-Critic Optimization Framework Improve Analog Design?25 Mar 2026
- 2026M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modeling15 Mar 2026
- 2026Towards Natural Personalization: Evaluating Long-Horizon Preference Following in Personalized User-LLM Interactions4 Mar 2026
- 2026AMA-Bench: Evaluating Long-Horizon Memory for Agentic Applications26 Feb 2026
- 2026Evaluating Long-Horizon Memory for Multi-Party Collaborative Dialogues1 Feb 2026
- 2026Mi:dm 2.0 Korea-centric Bilingual Language Models14 Jan 2026
- 2025Tool-Augmented Spatiotemporal Reasoning for Streamlining Video Question Answering Task11 Dec 2025
- 2025K2-V2: A 360-Open, Reasoning-Enhanced LLM5 Dec 2025
- 2025CareMedEval dataset: Evaluating Critical Appraisal and Reasoning in the Biomedical Field5 Nov 2025
20 more
- 2025Prompt-MII: Meta-Learning Instruction Induction for LLMs19 Oct 2025
- 2025Beyond the Final Answer: Evaluating the Reasoning Trajectories of Tool-Augmented Agents3 Oct 2025
- 2025Context Is What You Need: The Maximum Effective Context Window for Real World Limits of LLMs21 Sep 2025
- 2025Active Learning and Explainable AI for Multi-Objective Optimization of Spin Coated Polymers10 Sep 2025
- 2025Video-LevelGauge: Investigating Contextual Positional Bias in Large Video Language Models27 Aug 2025
- 2025Assessing Consciousness-Related Behaviors in Large Language Models Using the Maze Test22 Aug 2025
- 2025SCOPE: Stochastic and Counterbiased Option Placement for Evaluating Large Language Models24 Jul 2025
- 2025Evaluating the Sensitivity of LLMs to Prior Context29 May 2025
- 2025BLAB: Brutally Long Audio Bench5 May 2025
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems30 Apr 2025
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr 2025
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scale19 Apr 2025
- 2025T*: Re-thinking Temporal Search for Long-Form Video Understanding3 Apr 2025
- 2025PromptDistill: Query-based Selective Token Retention in Intermediate Layers for Efficient Large Language Model Inference30 Mar 2025
- 2025The Lucie-7B LLM and the Lucie Training Dataset: Open resources for multilingual language generation15 Mar 2025
- 2025From Tools to Teammates: Evaluating LLMs in Multi-Session Coding Interactions19 Feb 2025
- 2025Mask-Enhanced Autoregressive Prediction: Pay Less Attention to Learn More11 Feb 2025
- 2025Pause-Tuning for Long-Context Comprehension: A Lightweight Approach to LLM Attention Recalibration1 Feb 2025
- 2024Distance between Relevant Information Pieces Causes Bias in Long-Context LLMs18 Oct 2024
- 2024LLMs Will Always Hallucinate, and We Need to Live With This9 Sep 2024
- 2025T*: Re-thinking Temporal Search for Long-Form Video Understandingcited by 82
- 2025Beyond the Final Answer: Evaluating the Reasoning Trajectories of Tool-Augmented Agentscited by 20
- 2025Tool-Augmented Spatiotemporal Reasoning for Streamlining Video Question Answering Taskcited by 10
- 2025K2-V2: A 360-Open, Reasoning-Enhanced LLMcited by 3
- 2025CareMedEval dataset: Evaluating Critical Appraisal and Reasoning in the Biomedical Fieldcited by 0
- 2025Tool-Augmented Spatiotemporal Reasoning for Streamlining Video Question Answering Task11 Dec 2025
- 2025K2-V2: A 360-Open, Reasoning-Enhanced LLM5 Dec 2025
- 2025CareMedEval dataset: Evaluating Critical Appraisal and Reasoning in the Biomedical Field5 Nov 2025
- 2025Beyond the Final Answer: Evaluating the Reasoning Trajectories of Tool-Augmented Agents3 Oct 2025
- 2025T*: Re-thinking Temporal Search for Long-Form Video Understanding3 Apr 2025
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scalecited by 163
- 2024LLMs Will Always Hallucinate, and We Need to Live With Thiscited by 77
- 2026Evaluating Long-Horizon Memory for Multi-Party Collaborative Dialoguescited by 16
- 2024Distance between Relevant Information Pieces Causes Bias in Long-Context LLMscited by 15
- 2025BLAB: Brutally Long Audio Benchcited by 11
- 2025Context Is What You Need: The Maximum Effective Context Window for Real World Limits of LLMscited by 11
- 2025The Lucie-7B LLM and the Lucie Training Dataset: Open resources for multilingual language generationcited by 9
- 2025Evaluating the Sensitivity of LLMs to Prior Contextcited by 9
- 2025Prompt-MII: Meta-Learning Instruction Induction for LLMscited by 8
- 2026Towards Natural Personalization: Evaluating Long-Horizon Preference Following in Personalized User-LLM Interactionscited by 8
- 2025From Tools to Teammates: Evaluating LLMs in Multi-Session Coding Interactionscited by 7
- 2026M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modelingcited by 7
12 most cited of 23 All 23 (JSON)
- 2026ProxyFormer: A Dual-Stream Proxy Architecture for Ultra-Long Context and High-Resolution Generation24 Aug 2026
- 2026Can Open-Weight Models Compete on Financial Text Comprehension?9 Aug 2026
- 2026From Facts to Insights: A Persona-Driven Dual Memory Framework and Dataset for Role-Playing Agents25 May 2026
- 2026Can an Actor-Critic Optimization Framework Improve Analog Design?25 Mar 2026
- 2026M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modeling15 Mar 2026
- 2026Towards Natural Personalization: Evaluating Long-Horizon Preference Following in Personalized User-LLM Interactions4 Mar 2026
- 2026Evaluating Long-Horizon Memory for Multi-Party Collaborative Dialogues1 Feb 2026
- 2026Mi:dm 2.0 Korea-centric Bilingual Language Models14 Jan 2026
- 2025Prompt-MII: Meta-Learning Instruction Induction for LLMs19 Oct 2025
- 2025Context Is What You Need: The Maximum Effective Context Window for Real World Limits of LLMs21 Sep 2025
- 2025Active Learning and Explainable AI for Multi-Objective Optimization of Spin Coated Polymers10 Sep 2025
- 2025Video-LevelGauge: Investigating Contextual Positional Bias in Large Video Language Models27 Aug 2025
12 newest of 23 All 23 (JSON)