← Latest papers
💬 NLP

Mnemis: Dual-Route Retrieval on Hierarchical Graphs for Long-Term LLM Memory

Mnemis is a novel memory framework that enhances long-term LLM retrieval by integrating fast, similarity-based System-1 search with a deliberate, top-down System-2 global selection mechanism on hierarchical graphs, achieving state-of-the-art performance on long-term memory benchmarks.

Original authors: Zihao Tang, Xin Yu, Ziyu Xiao, Zengxuan Wen, Zelin Li, Jiaxi Zhou, Hualei Wang, Haohua Wang, Haizhen Huang, Weiwei Deng, Feng Sun, Qi Zhang

Published 2026-04-13
📖 5 min read🧠 Deep dive

Original authors: Zihao Tang, Xin Yu, Ziyu Xiao, Zengxuan Wen, Zelin Li, Jiaxi Zhou, Hualei Wang, Haohua Wang, Haizhen Huang, Weiwei Deng, Feng Sun, Qi Zhang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to remember a story you told a friend a year ago.

If you just try to recall it, you might remember the big picture ("We went to the beach"), but you might forget the specific details ("Oh, right, Dave got a sunburn on his nose that day"). This is how most current AI memory systems work. They are fast and good at finding things that sound similar to your question, but they often miss the deep connections or the full story.

The paper introduces Mnemis (pronounced like "memory"), a new way for AI to remember things. It's built on the idea that human brains use two different thinking styles, and Mnemis uses both.

The Two Brains: System 1 vs. System 2

The authors compare the AI's memory to two types of thinking:

  1. System 1 (The Fast Reflex): This is your "gut feeling." If someone asks, "What did we eat for lunch?" your brain instantly jumps to "Pizza." It's fast, but it's based on surface-level similarity.

    • In AI terms: This is the Similarity Search. It looks for words that match your question. If you ask about "Dave," it finds every text mentioning "Dave."
    • The Problem: If you ask, "Which cities did Dave visit in 2023?" and the answer is buried in a long paragraph about a conference in Detroit, a simple search might miss it because the word "Detroit" isn't the main focus of the sentence.
  2. System 2 (The Deliberate Thinker): This is your "slow thinking." If you ask, "List every city Dave has ever visited," you don't just guess. You mentally walk through your memory: "Okay, he went to Boston... then he went to San Francisco... oh, and he mentioned a trip to Detroit." You are traversing your memory structure.

    • In AI terms: This is the Global Selection. It doesn't just look for keywords; it looks at the structure of the memory to find everything relevant, even if the words don't match perfectly.

The Mnemis Library Analogy

Imagine the AI's memory is a massive library.

Old Systems (The "Keyword" Librarian):
You ask the librarian, "I need a book about Dogs."
The librarian runs to the "Dogs" section, grabs the first three books, and hands them to you.

  • Result: You get books about dogs, but you miss the book about "Pet Care" that has a whole chapter on dogs, or the biography of a famous dog trainer. You only get what you explicitly asked for.

Mnemis (The "Master Librarian"):
Mnemis has two librarians working together:

  1. Librarian A (System 1): Runs to the "Dogs" section and grabs the most obvious books.
  2. Librarian B (System 2): Looks at the Map of the Library.
    • Librarian B sees a big sign: "Animals."
    • Under "Animals," there is a sign for "Pets."
    • Under "Pets," there is a sign for "Dogs."
    • But wait! There is also a sign for "Health" that connects to "Dogs" (because of vet visits).
    • Librarian B walks down the map, checking every branch that might be relevant. They find the "Pet Care" book and the "Dog Trainer" biography that Librarian A missed.

The Magic:
Mnemis combines the lists from both librarians. It gives you the fast, obvious answers plus the deep, structural answers.

How It Builds the Map (The Hierarchy)

To make System 2 work, Mnemis builds a special Hierarchical Graph. Think of this like organizing a messy closet:

  • Layer 0 (The Clothes): Individual items (a red shirt, blue jeans, a hat).
  • Layer 1 (The Hangers): Groups of items (Shirts, Pants, Accessories).
  • Layer 2 (The Drawers): Big categories (Summer Wear, Winter Wear).
  • Layer 3 (The Room): The whole concept (Clothing).

The cool part is that one item can belong to multiple groups. A "Red Hat" can be in the "Red Things" drawer and the "Hats" drawer. This is called Many-to-Many Mapping. It ensures that no matter how you ask the question, the AI can find the item through a different path.

Why Does This Matter?

The paper tested Mnemis on very hard memory puzzles (like remembering a 6-month-long conversation).

  • The Old Way: If you asked, "What health issue made Sam change his lifestyle?", the old AI might find a text saying "Sam had gastritis" and stop there.
  • The Mnemis Way: It uses System 2 to look at the "Health" branch of the map. It sees that "Gastritis" is under "Health Events," which is under "Physical Health," which is linked to "Weight Problems." It realizes the real root cause was his weight, not just the stomach ache. It finds the deeper truth.

The Result

By using both the Fast Reflex (finding similar words) and the Deliberate Thinker (walking the map of memory), Mnemis became the best at remembering things in the world, beating all other AI memory systems in their tests.

In short: Mnemis doesn't just search for keywords; it understands the story and the structure of the memory, allowing it to find the needle in the haystack even when you don't know exactly what the needle looks like.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →