Related Work
Memory Palace and Method of Loci
The method of loci dates to ancient Greece, attributed to the poet Simonides of Ceos [13]. The technique involves:
- Visualizing a familiar location (the “palace”)
- Placing memorable images at specific locations (loci)
- Mentally walking through the palace to recall information
Modern studies confirm its effectiveness. [2] showed 2-3x improvement in recall when using the method of loci compared to rote memorization. [7] found that even brief training improved memory performance significantly.
LLM Memory Systems
Several approaches address LLM memory limitations:
- MemGPT [10]: Virtual context management inspired by OS memory paging, using tiered storage for long-term retention
- Self-RAG [1]: Adaptive retrieval with self-reflection, deciding when external knowledge is needed
- Context distillation: Compressing retrieved documents to fit context windows while preserving key information
Retrieval-Augmented Generation
RAG systems address LLM limitations by retrieving relevant documents before generation [8]. Key developments include:
Evaluation Benchmarks
Several benchmarks evaluate RAG and QA systems:
Gap in Literature
No existing LLM memory system combines:
- Mnemonic encoding principles with RAG retrieval
- Hierarchical indexing for context-efficient retrieval
- Embedded verification tokens for hallucination detection
- Multi-agent adversarial testing for quality assurance
Our work addresses this gap.
[1]
Asai, A. et al. 2023. Self-RAG: Learning to retrieve, generate, and critique through self-reflection. arXiv preprint arXiv:2310.11511. (2023).
[2]
Bower, G.H. 1970. Analysis of a mnemonic device: Modern psychology uncovers the powerful components of an ancient system for improving memory. American Scientist. 58, 5 (1970), 496–510.
[3]
Es, S. et al. 2023. RAGAS: Automated evaluation of retrieval augmented generation. arXiv preprint arXiv:2309.15217. (2023).
[4]
Friel, R. et al. 2024. RAGBench: Explainable benchmark for retrieval-augmented generation systems. arXiv preprint arXiv:2407.11005. (2024).
[5]
Karpukhin, V. et al. 2020. Dense passage retrieval for open-domain question answering. Proceedings of the 2020 conference on empirical methods in natural language processing (EMNLP) (2020), 6769–6781.
[6]
Khattab, O. and Zaharia, M. 2020. ColBERT: Efficient and effective passage search via contextualized late interaction over BERT. Proceedings of the 43rd international ACM SIGIR conference on research and development in information retrieval (2020), 39–48.
[7]
Legge, E.L.G. et al. 2012. Building a memory palace in minutes: Equivalent memory performance using virtual versus conventional environments with the method of loci. Acta Psychologica. 141, 3 (2012), 380–390.
[8]
Lewis, P. et al. 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems. 33, (2020), 9459–9474.
[9]
Monteiro, J. et al. 2024. RepLiQA: A question-answering dataset for benchmarking LLMs on unseen reference documents. arXiv preprint. (2024).
[10]
Packer, C. et al. 2023. MemGPT: Towards LLMs as operating systems. arXiv preprint arXiv:2310.08560. (2023).
[11]
Thakur, N. et al. 2021. BEIR: A heterogeneous benchmark for zero-shot evaluation of information retrieval models. arXiv preprint arXiv:2104.08663. (2021).
[12]
Yang, Z. et al. 2018. HotpotQA: A dataset for diverse, explainable multi-hop question answering. Proceedings of the 2018 conference on empirical methods in natural language processing (2018), 2369–2380.
[13]
Yates, F.A. 1966. The art of memory. University of Chicago Press.