Human-like Episodic Memory for Infinite Context LLMs. Fountas, Z., Benfeghoul, M. A., Oomerjee, A., Christopoulou, F., Lampouras, G., Bou-Ammar, H., & Wang, J. arXiv, October, 2024.
Paper doi abstract bibtex 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 similaritybased and temporally contiguous retrieval for efficient and human-like 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 fullcontext 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 a bridge between this artificial system and its biological counterpart, thereby offering a novel computational framework for exploring human memory mechanisms.
@article{fountasHumanlikeEpisodicMemory2024a,
title = {Human-like {Episodic} {Memory} for {Infinite} {Context} {LLMs}},
url = {http://arxiv.org/abs/2407.09450},
doi = {10.48550/arXiv.2407.09450},
abstract = {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 similaritybased and temporally contiguous retrieval for efficient and human-like 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 fullcontext 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 a bridge between this artificial system and its biological counterpart, thereby offering a novel computational framework for exploring human memory mechanisms.},
language = {en},
urldate = {2025-01-28},
publisher = {arXiv},
author = {Fountas, Zafeirios and Benfeghoul, Martin A. and Oomerjee, Adnan and Christopoulou, Fenia and Lampouras, Gerasimos and Bou-Ammar, Haitham and Wang, Jun},
month = oct,
year = {2024},
keywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Machine Learning, Quantitative Biology - Neurons and Cognition},
}
Downloads: 0
{"_id":"epHGP9ivaPTYcRLea","bibbaseid":"fountas-benfeghoul-oomerjee-christopoulou-lampouras-bouammar-wang-humanlikeepisodicmemoryforinfinitecontextllms-2024","author_short":["Fountas, Z.","Benfeghoul, M. A.","Oomerjee, A.","Christopoulou, F.","Lampouras, G.","Bou-Ammar, H.","Wang, J."],"bibdata":{"bibtype":"article","type":"article","title":"Human-like Episodic Memory for Infinite Context LLMs","url":"http://arxiv.org/abs/2407.09450","doi":"10.48550/arXiv.2407.09450","abstract":"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 similaritybased and temporally contiguous retrieval for efficient and human-like 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 fullcontext 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 a bridge between this artificial system and its biological counterpart, thereby offering a novel computational framework for exploring human memory mechanisms.","language":"en","urldate":"2025-01-28","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Fountas"],"firstnames":["Zafeirios"],"suffixes":[]},{"propositions":[],"lastnames":["Benfeghoul"],"firstnames":["Martin","A."],"suffixes":[]},{"propositions":[],"lastnames":["Oomerjee"],"firstnames":["Adnan"],"suffixes":[]},{"propositions":[],"lastnames":["Christopoulou"],"firstnames":["Fenia"],"suffixes":[]},{"propositions":[],"lastnames":["Lampouras"],"firstnames":["Gerasimos"],"suffixes":[]},{"propositions":[],"lastnames":["Bou-Ammar"],"firstnames":["Haitham"],"suffixes":[]},{"propositions":[],"lastnames":["Wang"],"firstnames":["Jun"],"suffixes":[]}],"month":"October","year":"2024","keywords":"Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Machine Learning, Quantitative Biology - Neurons and Cognition","bibtex":"@article{fountasHumanlikeEpisodicMemory2024a,\n\ttitle = {Human-like {Episodic} {Memory} for {Infinite} {Context} {LLMs}},\n\turl = {http://arxiv.org/abs/2407.09450},\n\tdoi = {10.48550/arXiv.2407.09450},\n\tabstract = {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 similaritybased and temporally contiguous retrieval for efficient and human-like 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 fullcontext 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 a bridge between this artificial system and its biological counterpart, thereby offering a novel computational framework for exploring human memory mechanisms.},\n\tlanguage = {en},\n\turldate = {2025-01-28},\n\tpublisher = {arXiv},\n\tauthor = {Fountas, Zafeirios and Benfeghoul, Martin A. and Oomerjee, Adnan and Christopoulou, Fenia and Lampouras, Gerasimos and Bou-Ammar, Haitham and Wang, Jun},\n\tmonth = oct,\n\tyear = {2024},\n\tkeywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Machine Learning, Quantitative Biology - Neurons and Cognition},\n}\n\n\n\n","author_short":["Fountas, Z.","Benfeghoul, M. A.","Oomerjee, A.","Christopoulou, F.","Lampouras, G.","Bou-Ammar, H.","Wang, J."],"key":"fountasHumanlikeEpisodicMemory2024a","id":"fountasHumanlikeEpisodicMemory2024a","bibbaseid":"fountas-benfeghoul-oomerjee-christopoulou-lampouras-bouammar-wang-humanlikeepisodicmemoryforinfinitecontextllms-2024","role":"author","urls":{"Paper":"http://arxiv.org/abs/2407.09450"},"keyword":["Computer Science - Artificial Intelligence","Computer Science - Computation and Language","Computer Science - Machine Learning","Quantitative Biology - Neurons and Cognition"],"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"article","biburl":"https://bibbase.org/zotero/saurabhr","dataSources":["nxjWwW7fWbb5tfpKz"],"keywords":["computer science - artificial intelligence","computer science - computation and language","computer science - machine learning","quantitative biology - neurons and cognition"],"search_terms":["human","episodic","memory","infinite","context","llms","fountas","benfeghoul","oomerjee","christopoulou","lampouras","bou-ammar","wang"],"title":"Human-like Episodic Memory for Infinite Context LLMs","year":2024}