Source-linked AI summary

CreaMem: A Scene-Aware Memory Architecture for Personalized Agents

Qixuan Sun, Yue Que, Bowei He, Jin Guo, Dihang Yang, Wenchang Situ, Chen Ma

arXiv:2609.08550v1cs.CL

TL;DR

Existing memory designs rarely organize around users’ life scenes or encode experiences from both episodic and trait perspectives. CreaMem partitions memory by scene and dual-encodes experiences, improving QA accuracy and multi-hop reasoning across two long-term memory benchmarks.

  • Problem

    Existing memory systems rarely organize around users’ life scenes or encode experiences from both episodic and trait-based perspectives.

    Source: §1 · p. 1
  • Method

    CreaMem partitions memory by life scene, stores each experience as an episodic and a scene-specific trait entry, and uses per-memory balanced sampling at retrieval.

    Source: §1 · p. 2
  • Results

    Across two long-term memory benchmarks, CreaMem improves overall QA accuracy and multi-hop reasoning, with ablations indicating cross-memory synergy accounts for most of the observed gain.

    Source: §1 · p. 2
  • Takeaways & Limitations

    Results suggest memory organization, rather than simply supplying more context, is a key lever for coherent long-term agents.

    Source: §5 · p. 9

    CreaMem’s fixed Life/Work/Interest taxonomy is coarse rather than universal or optimal, and may not transfer uniformly across users, cultures, or specialized domains.

    Source: Limitations · p. 9

Abstract

from arXiv · show

Long-term memory is a core capability for personalized LLM agents. To support it, existing memory systems organize information using various criteria such as topic segments or summary hierarchies. However, we identify two major limitations in these designs. First, they lack scene awareness: memories from unrelated life scenes share the same retrieval space, which inflates the search space and introduces cross-scene interference. Second, they encode each memory from a single perspective, making it difficult to retrieve complementary views of the same event. In this paper, we propose the CreaMem architecture, which enables scene-aware memory organization by partitioning memory into several Life Scene Memories to reduce cross-scene interference at retrieval. To go beyond the single perspective and achieve cross-memory synergy, entries are dual-coded from both episodic and trait-based perspectives within each memory. We further devise a permemory balanced sampling strategy at retrieval time. Extensive experiments on two long-term memory benchmarks show that CreaMem improves QA accuracy across all evaluation metrics, with particularly large gains on multi-hop reasoning performance, validating scene-aware partitioning and cross-memory synergy. To enhance reproducibility, we release our code in a public GitHub repository.

1 Introduction

CreaMem organizes long-term personal-agent memory by users’ life scenes and stores each experience in episodic and scene-specific trait forms, combining both views at retrieval. It addresses cross-scene interference and the limitations of single-perspective encoding.

  • The introduction frames memory organization and retrieval as central to coherent long-term behavior because retaining information alone does not ensure the right information can be retrieved across extended interactions (Packer et al., 2023; Park et al., 2023).Source: §1 · p. 1
  • Existing systems use flat storage, explicit structures, or specialized memory components, but none organize by life scenes and few encode experiences from both episodic and trait-based perspectives.Source: §1 · p. 1
  • Each experience becomes an episodic timeline entry and a trait entry in its relevant scene, preserving context-dependent preferences and offering complementary evidence for broader queries.A temporal query can use the episodic entry alone, while a broader query can draw on both the event and its scene-specific trait.Source: §1 · p. 2
  • Across two long-term memory benchmarks, CreaMem improves overall QA accuracy and multi-hop reasoning, while ablations attribute most gains to cross-memory synergy rather than any single component.Source: §1 · p. 2
  • CreaMem partitions memory into Life, Work, and Interest scenes plus Episodic Memory, and uses per-memory balanced sampling to combine timeline and scene-specific views in returned context.A Meta Memory Manager routes each incoming message to the relevant scene memory and adds a paired Episodic Memory entry; retrieval queries all memories.Source: §1 · p. 2

2 Related Work

Related work situates CreaMem among LLM-agent memory systems and cognitive theories of memory organization, motivating scene-based partitioning and complementary episodic and trait-based representations.

2.1 Memory for LLM Agents

  • Fixed-length context struggles with long-term coherence, while full-context methods scale poorly as dialogue histories exceed the context window (Wang et al., 2024; Guo et al., 2024; Wu et al., 2026; Gao et al., 2024; Liu et al., 2024; Paulsen, 2025).Source: §2.1 · p. 2
  • Flat-storage and structured memory methods still retrieve from a single pool, where unrelated contexts compete for retrieval slots (Lewis et al., 2020; Wang et al., 2025; Sarthi et al., 2024; Pan et al., 2025).The passage also describes knowledge graphs and note-based links as structures that retain this single-pool limitation.Source: §2.1 · p. 2
  • Memory-partitioning architectures organize components by temporal scale or cognitive function, but leave scene interference and single-perspective encoding unaddressed (Kang et al., 2025; Wang and Chen, 2025).Source: §2.1 · p. 2

2.2 Cognitive Foundations

  • Conway’s Self-Memory System organizes autobiographical memories by lifetime contexts, while Tulving’s account describes episodic and semantic memory as complementary perspectives that cooperate in retrieval (Conway and Pleydell-Pearce, 2000; Conway, 2005; Tulving, 1972, 2002).Source: §2.2 · p. 3
  • CreaMem applies these ideas by storing each experience as a timeline entry in Episodic Memory and a trait entry in the relevant Life Scene Memory.Source: §2.2 · p. 3

3 CreaMem

CreaMem organizes long-term personal-agent memory by life scene and combines timeline-based episodic records with scene-specific trait perspectives at retrieval.

3.1 Overview Architecture

  • CreaMem comprises episodic, life-scene, and holistic profile memories; incoming messages are routed to scene memories and paired with timeline entries.The Meta Memory Manager writes each experience from temporal and trait perspectives.Source: §3.1 · p. 3

3.2 Memory Components

  • Time-anchored event narratives complement scene-conditional traits across personal, work, and leisure domains, alongside a stable cross-scene profile and question-driven component selection.The Meta Memory Manager can route one message to multiple relevant scenes; the Planner LLM selects components for a question.Source: §3.2 · pp. 3–4

3.3 Memory Storage

  • Incoming messages are classified and routed broadly across relevant components; LLM extractors propose entries that embedding lookup helps merge with existing entries or insert into SQLite.When scene classification is uncertain, multiple components may be triggered to prevent silent information loss.Source: §3.3 · p. 4

3.4 Memory Retrieval

  • For each selected memory, CreaMem applies BM25 and cosine-similarity retrieval, combines per-memory candidates so each memory contributes the same number, then globally reranks the deduplicated pool with Reciprocal Rank Fusion.The Planner LLM selects relevant memories and a set of 3 to 6 retrieval keywords.Source: §3.4 · pp. 4–5

4 Experiments

CreaMem leads both benchmarks; experiments probe its organization and encoding choices, retrieval budget, taxonomy coverage, and remaining retrieval and evidence-combination failures.

4.1 Evaluation Setup

  • Evaluation uses LoCoMo’s 1,540 questions and LongMemEval-S’s 500 questions, with GPT-4o judging 4o-Judge accuracy and GPT-4o-mini as the shared backbone for method comparisons.LoCoMo covers Single-hop, Multi-hop, Open-domain, and Temporal questions; additional metrics include Token F1, BLEU-4, ROUGE-1/2/L, and BertScore.Source: §4.1 · p. 5

4.2 Main Results

  • CreaMem achieves the best performance on LoCoMo and LongMemEval-S across 4o-Judge accuracy, F1, BLEU-4, ROUGE-1/2/L, and BertScore.The strongest baselines are HippoRAG 2 on LoCoMo and MemGAS on LongMemEval-S.Source: Table 1 · p. 6, §4.2 · p. 7

4.4 Hyperparameter Analysis

  • At k=30, 4o-Judge accuracy peaks and declines by k=40 as token cost grows nearly linearly; the same non-monotone pattern occurs for F1, ROUGE-1/2/L, and BertScore.The study adopts k=20 to match baseline token budgets, despite marginally higher LoCoMo accuracy at k=30.Source: Figure 2 · p. 6, §4.1 · p. 6, §4.4 · p. 8

4.2 Main Results

  • Structured baselines retain a shared ceiling because unrelated scenes compete in one pool; CreaMem matches strong-baseline token use on LoCoMo and uses an order of magnitude fewer tokens than Full History on LongMemEval-S.The reported gains are attributed to memory organization and retrieval rather than a larger context budget.Source: §4.2 · p. 7

4.3 Ablation Study

  • 2.3 points separate 3-scene from 1-scene under identical content and retrieval budget, while 3-scene provides the best balance among tested partition counts.Coarser partitions make unrelated scenes compete for retrieval slots, whereas finer partitions over-fragment memory and dilute per-memory information density.Source: §4.3 · p. 8
  • 75.1% overall, 9.2 points above Episodic only, is achieved by Full System; its advantage exceeds 11 points on Temporal questions despite Episodic only using 42% more tokens.The comparison holds retrieval budget constant; a multi-hop case shows that removing either episodic or scene-level evidence can yield incomplete or temporally ungrounded answers.Source: Figure 3 · p. 7, Figure 4 · p. 7, §4.3 · p. 8

4.5 Architectural Validation

  • A sample of 1,000 LoCoMo dialogue turns shows consistently high Life/Work/Interest coverage and strong agreement between GPT-4o and three human raters.The reported coverage gaps arise from turns difficult to assign to a scene, such as greetings or small talk.Source: §4.5 · p. 8, Table 2 · p. 8

4.6 Failure Analysis

  • CreaMem’s remaining failures involve incomplete retrieval of linked entries and failure to combine retrieved evidence, motivating dialogue-turn links, segment fallback, and explicit evidence combination.In the examples, SeCom answers correctly when it retains a contiguous dialogue segment, while MemoryOS answers correctly when CreaMem fails to connect retrieved entries.Source: §4.6 · pp. 8–9

5 Conclusion

CreaMem organizes long-term memory by life scenes and dual-codes experiences, achieving consistent accuracy and multi-hop reasoning gains at comparable token cost on LoCoMo and LongMemEval-S.

  • CreaMem achieves consistent accuracy and multi-hop reasoning gains on LoCoMo and LongMemEval-S at comparable token cost.The conclusion attributes these gains to memory organization rather than supplying more context.Source: §5 · p. 9
  • CreaMem partitions memory by users’ life scenes alongside Episodic and Core Memory, then combines dual-coded experience views through per-memory balanced sampling.The architecture is motivated by autobiographical memory organization and dual coding in cognitive psychology.Source: §5 · p. 9
  • The conclusion suggests that organizing memory, rather than supplying more context, is the key lever for coherent long-term agents.Source: §5 · p. 9

Limitations

CreaMem’s fixed scene taxonomy may not transfer uniformly, and its retrieval process adds latency and token costs. Evaluation of LLM-extraction memory systems also faces challenges in accounting for write-time costs, measuring retrieval alignment, and standardizing extraction behavior.

Limitations

  • The fixed Life/Work/Interest taxonomy is coarse and may not transfer uniformly across users, cultures, or specialized domains.Future work will investigate configurable or automatically induced scene partitions that adapt to individual users while retaining interpretable routing.Source: Limitations · p. 9
  • End-to-end latency averages 2.9 seconds per query for CreaMem, compared with 1.98 seconds for A-Mem.A sufficiency check can trigger a second retrieval round, improving recall at the cost of additional latency and tokens; proposed mitigations include query-adaptive pruning, asynchronous retrieval, and learned stopping criteria.Source: Limitations · p. 9
  • Evaluation remains challenging because write-time costs vary across methods, retrieval metrics assume direct alignment with reference evidence, and extraction depends on prompt and model choice.The passages identify batching granularity, module prompts, and stored-entry abstraction level as sources of write-time differences; standardized accounting, source-aligned retrieval evaluation, and method-agnostic extraction protocols remain future directions.Source: Limitations · p. 9

A Supplementary Analyses

Supplementary analyses find CreaMem leading several category-level and backbone comparisons while examining routing and extraction reliability, architectural ablations, and representative failure types.

Category-level and open-weight evaluation

  • CreaMem leads Overall, Multi-hop, and Temporal under matched GPT-4o-mini/GPT-4o, with 2.83- and 19.93-point strongest-baseline margins on Multi-hop and Temporal, and gains 5.97 points overall with Qwen3.6-35B-A3B.With Qwen3.6-35B-A3B, CreaMem also remains strongest on Multi-hop, Open-domain, and Temporal; SeCom leads Single-hop and MemoryOS leads Open-domain under the matched GPT-4o protocol, so dominance is not uniform.Source: A Supplementary Analyses · pp. 11–12

Routing, extraction, and taxonomy reliability

  • 67.94% exact-match routing across 998 jointly judged LoCoMo turns accompanies 94.79% partial match and 74.53/73.65 Micro/Macro-F1.At 40% synthetic misrouting, QA falls 1.23 points, from 54.61% to 53.38%. In a 500-memory audit, Gemini 3.1 Pro/GPT-4o find 90.40/93.60% of entries retain a supported central fact, while 9.60/6.40% contain an unsupported central claim. Among 107 vertical-domain LongMemEval-S turns, exact routing is 68.22% and at-least-one-scene coverage is 99.03%; coverage is broad, though routing and extraction errors remain.Source: A Supplementary Analyses · p. 12

Allocation and architectural ablations

  • 53.24% Full CreaMem exceeds 44.03% Episodic-only and 40.32–41.43% scene-only variants, while dynamic allocation improves only 0.26 points over balanced sampling.Dynamic allocation's 95% CI is [−0.78, 1.30] and adds 0.69 LLM calls per question; RRF changes overall accuracy by +0.06 and −0.91 points across two backbones, with both confidence intervals spanning zero. The analysis attributes the main gain to scene-aware dual encoding rather than allocation or fusion alone.Source: A Supplementary Analyses · p. 12

Representative failure cases

  • Table 5 distinguishes failures to retrieve linked or implicit evidence from failures to combine evidence already present in context.These representative cases separate retrieval failures from evidence-combination failures.Source: A Supplementary Analyses · p. 12

B Prompt Templates

The appendix outlines CreaMem’s retrieval-planning and scene-specific extraction prompts, while noting that additional prompts are available in the released code. It also reproduces the QA and judge prompts used by MemGAS (Xu et al., 2026).

QA and judge prompts

Retrieval planner

  • The retrieval planner extracts 3–6 keywords and selects memory components based on the question, falling back to all four components and the question itself on parse failure or empty output.It routes event or timestamp questions to episodic memory and trait, habit, or preference questions to relevant Life Scene Memories; it can include Core Memory when a user profile is needed.Source: B Prompt Templates · p. 12

Scene Memory Extractor

  • Life, Work, and Interest Memories share an extractor template whose scene definition varies, producing separate (content, importance_score) trait entries with importance_score ∈[0, 1].The scene definitions cover life matters such as health and family, work matters such as projects and career goals, and interests such as hobbies and travel.Source: B Prompt Templates · p. 14
  • Extraction rules require distilled trait inferences rather than raw events, separate entries for distinct facts, verbatim preservation of concrete details, and exclusion of content outside the assigned scene.Entries are inserted by default and updated only when existing information has genuinely changed.Source: B Prompt Templates · p. 14
Loading 2609.08550v1…