mlsanityData to 7 Oct 2026

Human-inspired Episodic Memory for Infinite Context LLMs

arXiv 2407.09450 ↗First posted 12 Jul 2024cs.AI cs.CL cs.LGcited by 62

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have shown remarkable capabilities, but still struggle with processing extensive contexts, limiting their ability to maintain coherence and accuracy over long sequences. In contrast, the human brain excels at organising and retrieving episodic experiences across vast temporal scales, spanning a lifetime. In this work, we introduce EM-LLM, a novel approach that integrates key aspects of human episodic memory and event cognition into LLMs with no fine-tuning, enabling them to handle practically infinite context lengths while maintaining computational efficiency. EM-LLM organises sequences of tokens into coherent episodic events using a combination of Bayesian surprise and graph-theoretic boundary refinement in an online fashion. When needed, these events are retrieved through a two-stage memory process, combining similarity-based and temporally contiguous retrieval for efficient, human-inspired access to relevant information. Experiments on the LongBench and ∞-Bench benchmarks demonstrate EM-LLM's superior performance, consistently outperforming the state-of-the-art retrieval model InfLLM across various baseline LLMs. In addition, EM-LLM outperforms its popular counterpart, RAG, in a wide range of tasks, while requiring similar resources. Notably, EM-LLM's performance even surpasses full-context models in most tasks, while successfully performing retrieval across 10 million tokens -- a scale computationally infeasible for such models. Finally, our analysis reveals strong correlations between EM-LLM's event segmentation and human-perceived events, suggesting parallels between this artificial system and its biological counterpart, thereby offering a novel computational framework for exploring human memory mechanisms.

Key facts. Cited by 62 papers in the map (data through 7 Oct 2026). Builds on 63 of its 107 references that are in the map. First posted on arXiv 12 Jul 2024.

Builds on

63 of 107 references.

References · 63

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  5. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  6. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  7. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  8. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  9. 2017Billion-scale similarity search with GPUscited by 2,477
  10. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  11. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  12. 2017Gradient Episodic Memory for Continual Learningcited by 1,871
38 more
  1. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  2. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  3. 2018Efficient Lifelong Learning with A-GEMcited by 1,044
  4. 2020Dark Experience for General Continual Learning: a Strong, Simple Baselinecited by 895
  5. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  6. 2018Hierarchical Graph Representation Learning with Differentiable Poolingcited by 786
  7. 2019GNNExplainer: Generating Explanations for Graph Neural Networkscited by 735
  8. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  9. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  10. 2014Neural Turing Machinescited by 630
  11. 2022MTEB: Massive Text Embedding Benchmarkcited by 623
  12. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  13. 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
  14. 2020Hopfield Networks is All You Needcited by 461
  15. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  16. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
  17. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
  18. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
  19. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
  20. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  21. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
  22. 2016Variational Deep Embedding: An Unsupervised and Generative Approach to Clusteringcited by 219
  23. 2022Memorizing Transformerscited by 219
  24. 2018Statistical Aspects of Wasserstein Distancescited by 202
  25. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
  26. 2023Augmenting Language Models with Long-Term Memorycited by 186
  27. 2017Neural Episodic Controlcited by 148
  28. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  29. 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
  30. 2023Scaling Laws of RoPE-based Extrapolationcited by 124
  31. 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
  32. 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 115
  33. 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 109
  34. 2016Model-Free Episodic Controlcited by 100
  35. 2022Deep Hierarchical Planning from Pixelscited by 96
  36. 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
  37. 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
  38. 2022Efficient Long-Text Understanding with Short-Text Modelscited by 71

50 most cited of 63 All 63 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 27; 2026: 30.

62 papers.

Sort:

By area:

  1. 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memorycited by 253
  2. 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
  3. 2025A Survey of Context Engineering for Large Language Modelscited by 120
  4. 2025Memento: Fine-tuning LLM Agents without Fine-tuning LLMscited by 119
  5. 2025Streaming Video Question-Answering with In-context Video KV-Cache Retrievalcited by 112
  6. 2025Mem-α: Learning Memory Construction via Reinforcement Learningcited by 49
  7. 2025Rethinking Memory in LLM based Agents: Representations, Operations, and Emerging Topicscited by 36
  8. 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agentscited by 35
  9. 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approachescited by 18
  10. 2025Pre-Storage Reasoning for Episodic Memory: Shifting Inference Burden to Memory for Personalized Dialoguecited by 17
  11. 2026HiMem: Hierarchical Long-Term Memory for LLM Long-Horizon Agentscited by 16
  12. 2025Episodic Memories Generation and Evaluation Benchmark for Large Language Modelscited by 14
38 more
  1. 2024Human-inspired Perspectives: A Survey on AI Long-term Memorycited by 12
  2. 2026VitaBench 2.0: Evaluating Personalized and Proactive Agents in Long-Term User Interactionscited by 11
  3. 2025Video-EM: Event-Centric Episodic Memory for Long-Form Video Understandingcited by 10
  4. 2024Assessing Episodic Memory in LLMs with Sequence Order Recall Taskscited by 9
  5. 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
  6. 2026Agent Memory Below the Prompt: Persistent Q4 KV Cache for Multi-Agent LLM Inference on Edge Devicescited by 8
  7. 2026Position: Modular Memory is the Key to Continual Learning Agentscited by 7
  8. 2025The Personalization Trap: How User Memory Alters Emotional Reasoning in LLMscited by 5
  9. 2025Al-Khwarizmi: Discovering Physical Laws with Foundation Modelscited by 4
  10. 2026ES-Mem: Event Segmentation-Based Memory for Long-Term Dialogue Agentscited by 4
  11. 2026Memory poisoning and secure multi-agent systemscited by 4
  12. 2026Instructing LLMs to Negotiate using Reinforcement Learning with Verifiable Rewardscited by 4
  13. 2025Bottlenecked Transformers: Periodic KV Cache Consolidation for Generalised Reasoningcited by 3
  14. 2025SuRe: Surprise-Driven Prioritised Replay for Continual LLM Learningcited by 3
  15. 2026CAST: Character-and-Scene Episodic Memory for Agentscited by 3
  16. 2026Stateless Yet Not Forgetful: Implicit Memory as a Hidden Channel in LLMscited by 3
  17. 2026The Y-Combinator for LLMs: Solving Long-Context Rot with λ-Calculuscited by 3
  18. 2024Mixture-of-PageRanks: Replacing Long-Context with Real-Time, Sparse GraphRAGcited by 2
  19. 2025Activation-aware Probe-Query: Effective Key-Value Retrieval for Long-Context LLMs Inferencecited by 2
  20. 2025Memory Helps, but Confabulation Misleads: Understanding Streaming Events in Videos with MLLMscited by 2
  21. 2025Memorization and Knowledge Injection in Gated LLMscited by 2
  22. 2025Untangling Component Imbalance in Hybrid Linear Attention Conversion Methodscited by 2
  23. 2026HiCI: Hierarchical Construction-Integration for Long-Context Attentioncited by 2
  24. 2026Simulating Human Memory with Language Modelscited by 2
  25. 2026Periodic RoPE for Infinite Context LLMscited by 2
  26. 2024HySem: A context length optimized LLM pipeline for unstructured tabular extractioncited by 1
  27. 2025Attention is All You Need Until You Need Retentioncited by 1
  28. 2025COSMIR: Chain Orchestrated Structured Memory for Iterative Reasoning over Long Contextcited by 1
  29. 2025Emergent Bayesian Behaviour and Optimal Cue Combination in LLMscited by 1
  30. 2026Why the Brain Consolidates: Predictive Forgetting for Optimal Generalisationcited by 1
  31. 2026Compute Globally, Materialize Locally: The Memory Contract of Sparse Event-KVcited by 1
  32. 2026Harness the Memory: A Holistic Evaluation of Memory Substrates in Memory Agentscited by 1
  33. 2026Where Should Experience Live? Hierarchical Hebbian Memory for Continual Vision Transformerscited by 1
  34. 2025Learn from the Past: Fast Sparse Indexing for Large Language Model Decodingcited by 0
  35. 2025PaceLLM: Brain-Inspired Large Language Models for Long-Context Understandingcited by 0
  36. 2025Titans Revisited: A Lightweight Reimplementation and Critical Analysis of a Test-Time Memory Modelcited by 0
  37. 2025Subjective Depth and Timescale Transformers: Learning Where and When to Computecited by 0
  38. 2026Revolutionizing Long-Term Memory in AI: New Horizons with High-Capacity and High-Speed Storagecited by 0

50 most cited of 62 All 62 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025EpMAN: Episodic Memory AttentioN for Generalizing to Longer Contexts
  2. 2025Beyond Semantics: How Temporal Biases Shape Retrieval in Transformer and State-Space Models
  3. 2025Mnemosyne: An Unsupervised, Human-Inspired Long-Term Memory Architecture for Edge-Based LLMs
  4. 2026REMem: Reasoning with Episodic Memory in Language Agent
  5. 2023Empowering Working Memory for Large Language Model Agents
  6. 2025Beyond Fact Retrieval: Episodic Memory for RAG with Generative Semantic Workspaces
  7. 2024Evaluating Very Long-Term Conversational Memory of LLM Agents
  8. 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing