← Latest papers
💬 NLP

Towards Root Memories: Benchmarking and Enhancing Implicit Logical Memory Retrieval for Personalized LLMs

This paper introduces IMLogic, a benchmark for implicit logical memory retrieval, and proposes RootMem, a framework that enhances personalized LLMs by distilling long-term user histories into structured "root memories" to complement semantic retrieval with decision-preserving logic.

Original authors: Hongxun Ding, Xiang Yu, Chengbing Wang, Jianfei Xiao, Keqin Bao, Wenjie Wang, Xiangnan He

Published 2026-06-23
📖 4 min read☕ Coffee break read

Original authors: Hongxun Ding, Xiang Yu, Chengbing Wang, Jianfei Xiao, Keqin Bao, Wenjie Wang, Xiangnan He

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

The Problem: The "Surface-Level" Assistant

Imagine you have a very smart personal assistant who remembers everything you've ever said. Usually, this assistant works great. If you ask, "What's a good fish to buy?", it remembers you said you like "colorful fish" and suggests a tropical fish.

But sometimes, the assistant fails in a tricky way. It finds the memory that sounds most like your question, but it misses the hidden rule that actually matters.

The Scenario from the Paper:

  • You say: "I want to buy a huge, open-top fish tank for my studio!"
  • The Assistant's "Surface" Memory: "User loves colorful tropical fish." (This matches the words "fish" and "tank").
  • The Assistant's "Hidden" Memory: "User has an orange cat that is their crucial companion and lives in the studio."
  • The Mistake: The assistant suggests the open tank because it matches the "fish" keyword. It forgets the logical rule: Open tanks are dangerous for cats.
  • The Result: The assistant gives a dangerous, generic answer. It missed the "logic" because the words "cat" and "fish tank" don't usually appear together in a search.

The paper calls this the "Semantic Gap." The assistant is good at finding words that look alike, but bad at finding ideas that are logically connected but look different.

The Solution: "Root Memories"

To fix this, the authors created a new system called RootMem.

Think of your normal memories as a pile of loose photos. Some show you buying a fish, some show you playing with your cat. They are just sitting there.

RootMem is like a smart librarian who takes those loose photos and writes decision rules on index cards.

  • Instead of just saving the photo of the cat, the librarian writes a card: "Rule: If the user talks about open containers in the studio, remember the cat is there and safety comes first."
  • This card is a "Root Memory." It preserves the logic (the "why") behind the facts, not just the facts themselves.

How It Works (The Two-Step Process)

1. Distilling the Roots (Offline)
The system looks at your long history of chats and conversations. It doesn't just save them; it "distills" them. It asks: "What are the underlying rules that guide this person's decisions?"

  • It turns a messy history of "I have a cat" and "I work in a studio" into a structured Root Memory Unit: Constraint: Studio activities must be cat-safe.

2. The Router (Online)
When you ask a new question, the system does two things at once:

  • The Semantic Search: It looks for keywords (like "fish tank").
  • The Root Router: It checks the "Root Memory" index cards. It asks: "Does this question trigger any of the user's hidden rules?"
  • If you ask about the fish tank, the Router sees the "Studio" context and pulls up the "Cat Safety" rule.
  • The final answer combines both: "Great idea for the fish, but since you have a cat in the studio, you should get a closed tank instead to keep them safe."

The New Test: IMLogic

The authors realized that existing tests for AI memory weren't hard enough. They mostly asked, "Can the AI find the right fact?"

They built a new test called IMLogic (Implicit Logical Memory).

  • The Test: They created 2,200 tricky questions where the "right" answer depends on a memory that doesn't share any words with the question.
  • The Result: They tested the best existing AI memory systems on this new test. Most failed miserably (getting less than 44% right). They kept getting tricked by the "surface" words.
  • The Winner: When they added their RootMem system, the accuracy jumped to over 55%. It proved that having "Root Memories" helps the AI see the invisible logical connections.

Summary

  • Current AI: Good at finding words that match. Bad at finding hidden rules.
  • The Paper's Fix: Create "Root Memories"—structured rules that capture the logic of a user's life, not just their facts.
  • The Result: An AI that doesn't just remember what you said, but understands why it matters, preventing it from giving dangerous or illogical advice even when the keywords don't match.

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 →