Memory Matters More: Event-Centric Memory as a Logic Map for Agent Searching and Reasoning

Yuyang Hu, Jiongnan Liu, Jiejun Tan, Yutao Zhu, Zhicheng DouarXiv 2026

TL;DR

CompassMem is a novel event-centric memory framework that structures an LLM agent's past experiences into a hierarchical Event Graph connected by explicit logical relations like causality and temporal order. By treating this graph as a "logic map" for multi-agent navigation rather than relying on flat semantic similarity search, CompassMem significantly improves an agent's ability to perform complex, long-horizon reasoning.

What Problem Does This Paper Address?

When large language model (LLM) agents operate over long periods, they require a reliable memory mechanism to recall past interactions and make informed decisions. However, standard retrieval-augmented generation (RAG) frameworks typically store memories as flat, disconnected text snippets.

Even when structured memory is introduced, existing methods struggle with two major limitations:

  1. Lack of Logical Connections: They fail to capture essential relationships between experiences, such as what caused an event or the chronological sequence of actions.
  2. Passive Retrieval: They rely on simple semantic similarity matching (e.g., vector embeddings), treating memory as a static database rather than an active guide for the reasoning process.

As a result, agents frequently fail at tasks requiring multi-hop or temporal reasoning over long horizons.

Figure 1: Comparison among CompassMem and the traditional agent memory framework.

Methods

Inspired by cognitive science's Event Segmentation Theory, which states that humans naturally parse continuous experiences into discrete events, the authors propose CompassMem. The framework consists of two main phases:

1. Incremental Hierarchical Memory Construction

  • Event Segmentation: Continuous text streams (dialogues or documents) are segmented into coherent event nodes containing an observation span, temporal info, a semantic summary, and involved participants.
  • Relation Extraction: An LLM identifies pairwise logical relations (e.g., causal, temporal, motivation, part-of) between these event nodes to construct an Event Graph.
  • Topic Evolution: To prevent the agent from getting trapped in narrow local semantic loops during retrieval, a coarse-grained topic layer is maintained above the events using K-means clustering.

Instead of a single-shot vector search, memory retrieval is treated as an active graph traversal executed by three specialized LLM agents:

  • Planner: Decomposes the user's query into a set of concrete subgoals and tracks progress using a binary satisfaction vector. It can also refine queries if gaps are detected.
  • Explorer: Multiple explorers run in parallel, using the graph's topology to navigate from node to node. At each node, the explorer decides whether to SKIP the node, EXPAND it (retain it as evidence), or trigger an ANSWER (terminate the path).
  • Responder: Synthesizes the final answer using only the distilled evidence collected by the explorers.
Overview of the CompassMem framework showing memory construction and multi-path search.

Datasets

The authors evaluated CompassMem on two long-context reasoning benchmarks:

  • LoCoMo: A very long-term conversational dialogue dataset consisting of 10 extended conversations (averaging ~600 turns and ~16K tokens each). It tests single-hop, multi-hop, open-domain, and temporal reasoning.
  • NarrativeQA: A narrative understanding benchmark based on books and movie scripts. The authors randomly sampled 10 long documents (averaging ~60,000 tokens) and evaluated them using 298 question-answer pairs.

Key Insights and Ideas

  • Topology Carries Logic: The core philosophy of CompassMem is that graph edges should actively constrain and guide exploration. Following explicit causal or temporal links allows agents to discover globally relevant evidence that simple semantic similarity searches would miss.
  • Decoupled Construction and Search: A fascinating scaling insight from the paper is that memory can be constructed offline using a high-capacity model (like Qwen2.5-32B) and successfully navigated online by a smaller, lightweight model. This makes high-quality structured memory accessible to smaller deployment footprints.
  • Events Over Chunks: Segmenting text by semantic events rather than arbitrary fixed-token chunks preserves narrative integrity, preventing critical context from being sliced in half.

Key Results

CompassMem consistently outperformed both flat and graph-based baselines (including RAG, Mem0, MemoryOS, HippoRAG, A-Mem, and CAM) across multiple backbone models (GPT-4o-mini and Qwen2.5-14B/8B).

  • LoCoMo Benchmark: Using GPT-4o-mini, CompassMem improved the average F1 score to 52.18% (compared to HippoRAG's 47.92%). Notably, it achieved a massive breakthrough on temporal questions, jumping to 57.96% F1 vs. HippoRAG's 48.93%.
  • NarrativeQA Benchmark: CompassMem surpassed the strongest competitor (CAM) by over 5% F1 on GPT-4o-mini and more than 8% F1 on Qwen2.5-14B.
  • Efficiency: Despite the multi-agent traversal mechanism consuming more tokens, CompassMem demonstrated a significantly lower memory construction time compared to Mem0 and MemoryOS, proving its practical viability.
Efficiency-performance trade-off across different memory frameworks.

Limitations and Future Work

  • Pipeline Dependency: The quality of the logic map heavily relies on the initial event segmentation and relation extraction steps. The current implementation uses a naive LLM prompting pipeline, which could be prone to noise or missed connections.
  • Benchmark Scope: The evaluation was limited to two long-text QA benchmarks. Future work should explore how CompassMem performs in more dynamic agent environments, such as interactive operating systems or multi-agent simulation games.

Summary updated

BibTeX
@misc{hu2026memory,
  author = {Yuyang Hu and Jiongnan Liu and Jiejun Tan and Yutao Zhu and Zhicheng Dou},
  title = {{Memory Matters More: Event-Centric Memory as a Logic Map for Agent Searching and Reasoning}},
  year = {2026},
  eprint = {2601.04726},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.04726},
}
Figure