mlsanityData to 7 Oct 2026

Needle in the Haystack for Memory Based Large Language Models

arXiv 2407.01437 ↗First posted 1 Jul 2024cs.CL cs.AI cs.LGcited by 32

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

  1. 2020Longformer: The Long-Document Transformercited by 3,362
  2. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  3. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
  4. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
  5. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
  6. 2020Optimus: Organizing Sentences via Pre-trained Modeling of a Latent Spacecited by 114
  7. 2020Rewriting a Deep Generative Modelcited by 105
  8. 2020Memory Transformercited by 74
  9. 2024Larimar: Large Language Models with Episodic Memory Controlcited by 53
  10. 2024In Search of Needles in a 11M Haystack: Recurrent Memory Finds What LLMs Misscited by 36
  11. 2024TransformerFAM: Feedback attention is working memorycited by 21

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 21; 2026: 9.

32 papers.

Sort:

By area:

  1. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
  2. 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systemscited by 170
  3. 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scalecited by 163
  4. 2025T*: Re-thinking Temporal Search for Long-Form Video Understandingcited by 82
  5. 2024LLMs Will Always Hallucinate, and We Need to Live With Thiscited by 77
  6. 2026AMA-Bench: Evaluating Long-Horizon Memory for Agentic Applicationscited by 46
  7. 2025Beyond the Final Answer: Evaluating the Reasoning Trajectories of Tool-Augmented Agentscited by 20
  8. 2026Evaluating Long-Horizon Memory for Multi-Party Collaborative Dialoguescited by 16
  9. 2024Distance between Relevant Information Pieces Causes Bias in Long-Context LLMscited by 15
  10. 2025BLAB: Brutally Long Audio Benchcited by 11
  11. 2025Context Is What You Need: The Maximum Effective Context Window for Real World Limits of LLMscited by 11
  12. 2025Tool-Augmented Spatiotemporal Reasoning for Streamlining Video Question Answering Taskcited by 10
20 more
  1. 2025The Lucie-7B LLM and the Lucie Training Dataset: Open resources for multilingual language generationcited by 9
  2. 2025Evaluating the Sensitivity of LLMs to Prior Contextcited by 9
  3. 2025Prompt-MII: Meta-Learning Instruction Induction for LLMscited by 8
  4. 2026Towards Natural Personalization: Evaluating Long-Horizon Preference Following in Personalized User-LLM Interactionscited by 8
  5. 2025From Tools to Teammates: Evaluating LLMs in Multi-Session Coding Interactionscited by 7
  6. 2026M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modelingcited by 7
  7. 2025Video-LevelGauge: Investigating Contextual Positional Bias in Large Video Language Modelscited by 6
  8. 2025K2-V2: A 360-Open, Reasoning-Enhanced LLMcited by 3
  9. 2026Mi:dm 2.0 Korea-centric Bilingual Language Modelscited by 3
  10. 2025SCOPE: Stochastic and Counterbiased Option Placement for Evaluating Large Language Modelscited by 2
  11. 2025Mask-Enhanced Autoregressive Prediction: Pay Less Attention to Learn Morecited by 1
  12. 2025Pause-Tuning for Long-Context Comprehension: A Lightweight Approach to LLM Attention Recalibrationcited by 1
  13. 2025PromptDistill: Query-based Selective Token Retention in Intermediate Layers for Efficient Large Language Model Inferencecited by 1
  14. 2026Can an Actor-Critic Optimization Framework Improve Analog Design?cited by 1
  15. 2026From Facts to Insights: A Persona-Driven Dual Memory Framework and Dataset for Role-Playing Agentscited by 1
  16. 2025Assessing Consciousness-Related Behaviors in Large Language Models Using the Maze Testcited by 0
  17. 2025Active Learning and Explainable AI for Multi-Objective Optimization of Spin Coated Polymerscited by 0
  18. 2025CareMedEval dataset: Evaluating Critical Appraisal and Reasoning in the Biomedical Fieldcited by 0
  19. 2026Can Open-Weight Models Compete on Financial Text Comprehension?cited by 0
  20. 2026ProxyFormer: A Dual-Stream Proxy Architecture for Ultra-Long Context and High-Resolution Generationcited by 0