Actress Milla Jovovich and software developer Ben Sigman have introduced MemPalace, an open-source AI memory system that reinvents the ancient method of loci (memory palace) for modern AI agents. By mapping this age-old cognitive technique to agent memory, MemPalace offers a breakthrough solution to the persistent problem of long-term memory in language models.

Revolutionizing Memory with AI
MemPalace combines the proven power of the memory palace technique—where information is stored in mental “locations” within familiar spaces—with cutting-edge AI technology. Unlike traditional memory models that rely on flat vector stores, MemPalace uses a hierarchical architecture to store data at multiple levels (wings, halls, rooms, etc.). This approach enables more efficient and accurate memory retrieval, improving long-term continuity in multi-session assistants.


Key to its innovation is AAAK, a compression method that reduces a 1,000-token passage to just 120 tokens, allowing models to preload significantly more context. This local-first system uses SQLite and ChromaDB for storage, ensuring both privacy and lower operational costs by avoiding cloud dependencies.
Key Features and Performance
MemPalace supports popular platforms like Claude, ChatGPT, and Cursor and boasts impressive performance metrics. The team claims a * R@5 score on LongMemEval (a memory retrieval benchmark), the first perfect score ever reported. Even without external API calls, it achieves a strong 96.6% R@5, proving the robustness of its architecture.

The system’s hierarchical approach improves retrieval accuracy by up to 34% over traditional flat search methods. MemPalace’s unique ability to compress and store data at different granularities ensures that context is retained over longer periods, addressing the critical problem of “forgetting” in AI systems.
| Approach | Tokens loaded | Annual cost |
|---|---|---|
| Paste everything | 19.5M — doesn't fit any context window | Impossible |
| LLM summaries | ~650K | ~$507/yr |
| MemPalace wake-up | ~170 tokens | ~$0.70/yr |
| MemPalace + 5 searches | ~13,500 tokens | ~$10/yr |
What’s Next?
The MemPalace team is focused on independent replication of its claims and further benchmarking to validate its performance. Key areas to watch include the fidelity of the compression method (especially on real user data), the latency of retrieval, and the growth of indexes for large-scale personal archives.
In an era of information overload, MemPalace represents a promising advancement in memory management for AI, merging ancient cognitive techniques with modern technology to tackle a critical problem in AI development.

