betaFeedback

WorksComputer Science

STARK: Moving towards Personalized Agents That Truly Learn and Remember

Abstract

Long-term memory is essential for personalized agentic systems that interact with users over long time periods, yet current architectures only capture what happened while leaving the reasoning of why it happened to be derived later by underlying LLMs. These events can, however, convey not only what a user experienced but also how that experience shaped their behavioral patterns. We introduce STARK, a dual-graph memory architecture which treats these events not just as nodes but also as edges between behavioral insights. STARK maintains an Episodic Graph which records interactions as temporally, causally, and semantically linked episodes; and an Insight Graph which represents LLM-extracted behavioral signals scored by how many events support them, connected by the very events that led to them. At inference, behavioral knowledge is retrieved directly from insight nodes grounded by event-as-edges, eliminating repeated episodic traversal. The event-as-edge structure also naturally enables projecting the knowledge graph into a relational embedding space where cross-user transfer becomes possible under shared contextual circumstances, allowing the system to infer missing insights for cold-start users. Evaluations show that STARK improves by 1.48 judge score on LongMemEval information extraction and 0.93 on LoCoMo open domain questions over state of the art. On the public LongLaMP abstract-generation benchmark, cross-user transfer improves open-ended judge scores by 0.7 points and ROUGE-L by 3 at 5% graph sparsity.

Introduction

As autonomous interactive agents are increasingly deployed to manage complex, long-running tasks such as workflow orchestration and support-ticket triage under evolving constraints [25, 8] (Wu et al. 2023), their effectiveness relies on accumulating knowledge across long-horizon interactions. For example, for a deal negotiation agent, a compliance constraint surfaced during negotiation in one quarter must inform procurement strategy in the next; a failed negotiation strategy must not be repeated in the future. Moreover, many of these agents are domain-specific, wherein users pursue structurally similar goals and exhibit convergent behavioral patterns, making cross-user knowledge transfer a natural consequence of shared goal distributions.

Recent persistent-memory systems partially address this by constructing knowledge graphs from interactions Rasmussen et al. [20]; Xu et al. 2025; Jiang et al. [9], but maintain a single flat graph per user where events, preferences, constraints, and goals coexist as undifferentiated nodes. This design has two consequences. First, behavioral signals (the durable, reusable insights into how a user tends to act and decide, namely their preferences, constraints, goals, and values, distilled from many individual episodes and distinct from the episodes themselves) remain distributed across episodic nodes rather than being represented explicitly, which forces the LLM to re-derive them at query time, redundantly and often inconsistently [21] (Gürzün et al. 2024). Second, each user’s graph is self-contained and provides no pathway for cross-user transfer. The common root cause is that these graphs capture what happened while leaving the reasoning behind why it happened to downstream inferencing.

We introduce STARK, a dual-graph memory architecture built around this distinction. Our core contributions are as follows:

  1. A dual-graph architecture that separates episodic events from behavioral knowledge. It is composed of an Episodic Graph with temporally, causally and semantically linked episodes and an Insight Graph that contains behavioral signals, each carrying evidence vectors from the episodes that support it. The two are joined by an event-as-edge bridge: episodic identifiers serve as typed edge labels in the Insight Graph, keeping every insight grounded in the episodes that produced it.

  1. A cross-user transfer mechanism for cold-start users. Insight nodes are embedded in a relational space where users with similar preference fingerprints cluster together, and link prediction over that space infers a new user’s likely signals without accessing another user’s raw interactions.

  1. We deploy STARK for a production vendor-negotiation assistant and evaluate it in an 8-week A/B pilot (N=40N=40 managers) cutting negotiation rounds per deal by 18% and cycle time by 15% (p<0.05p < 0.05).

Related Work

Memory-Augmented Generation: RAG (Lewis et al. 2020) treats knowledge as a static corpus, and write-back memories (MemoryBank [29], Generative Agents [19], MemGPT [18]) persist

Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved. interactions as flat text with no structure over the preferences, outcomes, or causal processes shaping behavior. Graph-based systems (GraphRAG [3], Zep [20], MAGMA [9], EverMemOS (Hu et al. 2026), A-MEM (Xu et al. 2025), Nemori (Ma, Nan, and Wu 2026)) add episodic structure but record only what happened, treating behavioral signals as incidental nodes; even MAGMA’s multiple graphs partition events rather than promoting signals to evidence-scored nodes, so neither links an insight to the experiences that formed it.

Preference Modeling: Mem0 [2] and MemoryOS [10] store weighted user facts, but RealPref [4] and PAL-Bench [7] show explicit extraction fails when preferences must be inferred from behavior. STARK closes this gap with evidence-scored insight nodes bound to their forming episodes by an event-as-edge bridge.

STARK Framework

Consider users U={u1,…,uN}U = \{u_1, \ldots, u_N\} interacting with an LLM agent over many sessions spanning long periods. For each uiu_i the agent observes a temporally ordered stream of conversations Ci={ci1,…,ciTi}C_i = \{c_i^1, \ldots, c_i^{T_i}\} of user-agent message pairs. The persistent-memory problem is to construct from CiC_i a structured memory Mi\mathcal{M}_i such that, given a query qq at any future step, the agent retrieves enough context to meaningfully advance the user’s underlying goal, from acquiring information to a measurable outcome such as resolving a ticket or closing a deal. Figure 2 illustrates the ingestion architecture, decomposing Mi=(GiE,GiI)\mathcal{M}_i = (\mathcal{G}_i^E, \mathcal{G}_i^I).

Detailed architecture of STARK ingestion framework

Figure 2. Detailed architecture of STARK ingestion framework. All conversations are first ingested into the dual graphs bridged by episodic events which are then used for obtaining the relational embedding space enabling cross-user insight transfer.

Figure 1 shows how STARK handles insights and facts about an account manager and assists them to negotiate deals.

From scattered multi-session dialogue to grounded cold-start personalization

Figure 1. From scattered multi-session dialogue to grounded cold-start personalization. In the example shown, Bob tries different strategies with vendors ACME and NEXUS. The graph built for Bob, helps Eve (a new account manager) to close deal with their vendor using proven techniques. Baseline graph buries preferences while our dual-graph memory separates episodes and insights (evidence-bearing nodes, strength shown as border thickness), with the same event as an edge label bridging them.

Episodic Graph

GEi=(VE,EE)\mathcal{G}_E^i = (V_E, E_E) captures the factual record of a user’s interactions. Canonical node types are {User,Event,Milestone,Organization}\{\mathrm{User}, \mathrm{Event}, \mathrm{Milestone}, \mathrm{Organization}\}, where Event nodes form the core, each a discrete interaction observed in conversation, and a Milestone marks a significant workflow or life-state change; the

vocabulary is open, extended on demand by induced types such as Activity, Person, or Decision. Edges are temporal (FOLLOWED_BY), causal (LED_TO, CAUSED), or action edges (domain-specific entity interactions, e.g. between users and the entities they act on, such as topics or artifacts), each carrying a timestamp t(e)t(e). Together they support temporal, causal, and entity-centric graph retrieval. We also provide qualitative extraction examples on the LongLaMP abstract-generation domain in Appendix A.8.

Insight Graph

While GEi\mathcal{G}_E^i records what happened, GIi=(VI,EI)\mathcal{G}_I^i = (V_I, E_I) captures the behavior behind why it happened, with the UseriUser^i node as the one fixed type anchoring each user to their signals.

Edges EIE_I carry two kinds of labels. Structural relations form a stable, closed set Rs={PREFERS,WANTS,VALUES,TRIED,AVOIDS,LEARNED}R_s = \{\mathrm{PREFERS}, \mathrm{WANTS}, \mathrm{VALUES}, \mathrm{TRIED}, \mathrm{AVOIDS}, \mathrm{LEARNED}\}; a Preference learned a Constraint, for instance, is a signal-to-signal edge expressible only because signals are nodes rather than edge attributes. Event-linked relations Re={id⁡(e):e∈VE}R_e = \{\operatorname{id}(e) : e \in V_E\} reuse episodic event identifiers as labels: an edge (va,eid,vb)∈EI(v_a, e_{id}, v_b) \in E_I means the relationship between vav_a and vbv_b was observed during event eide_{id}. This event-as-edge bridge enables bidirectional navigation between a signal and its originating events, anchoring each insight to its episodic provenance without merging the two graphs (Figure 2).

Evidence vectors: An agent must decide whether to act on an inferred signal, and the cost is asymmetric: a one-off, weakly supported guess is risky, whereas a signal reinforced across many successful episodes warrants confident action. Each non-user signal v∈VI∖VIUserv \in V_I \setminus V_I^{User} (with VIUserV_I^{User} the set of User nodes) carries an evidence vector that lets retrieval rank signals by their support,

ev(v)=(s(v),n(v),w(v),c(v)),(1)ev(v) = (s(v), n(v), w(v), c(v)), \tag*{(1)}

updated whenever a conversation reinforces or modifies the signal. The evidence count n(v)∈N+n(v) \in\mathbb{N}^{+} is the number of distinct supporting episodes, and the outcome weight w(v)=1∣R(v)∣∑j∈R(v)oj∈[0,1]w(v) = \frac{1}{|R(v)|}\sum_{j \in R(v)} o_j \in[0,1] records how often acting on the signal achieved the user’s goal, where R(v)R(v) is the set of resolved supporting episodes and each ojo_j is set at ingest from in-conversation markers of whether acting on the signal succeeded, such as whether a proposed approach was adopted or well received. Unresolved or partial episodes still count toward n(v)n(v) but are excluded from w(v)w(v) rather than scored as failures, so pending evidence does not deflate the outcome weight; when no episode is yet resolved, w(v)=0.5w(v)=0.5. Strength grows with evidence and a consistency bonus, s(v)=σ(αslog⁡2(1+n(v))+λs1w(v)>τw)s(v)=\sigma(\alpha_s\log_2(1+n(v))+\lambda_s\mathbb{1}_{w(v)>\tau_w}), with σ\sigma the sigmoid, αs\alpha_s the saturation rate, λs\lambda_s the bonus magnitude, and τw\tau_w the outcome-weight threshold; the log scaling yields diminishing returns. Confidence rewards volume but penalizes inconsistent outcomes, c(v)=σ(αcn(v)−λcw(v)(1−w(v)))c(v)=\sigma(\alpha_c n(v)-\lambda_c w(v)(1-w(v))), with αc\alpha_c scaling volume and λc\lambda_c the variance penalty w(1−w)w(1-w).

Contradictory signals: Conflicting signals persist as separate nodes with independent evidence vectors rather than being resolved prematurely: a “heavy data augmentation” PREFERS signal that improved results in one subarea (high ww) can coexist with an AVOIDS signal learned after it hurt results on a different task (low ww), disambiguated by the topic/subarea context on their bridging events. Retrieval surfaces both and resolves the conflict from this stored support, weighing evidence, query context, and recency rather than re-deriving it from raw history; when these leave the signals tied, STARK abstains and presents the trade-off to the user.

Cross-User Structural Transfer

Each user’s dual-graph is built independently, so every (GEi,GIi)(\mathcal{G}^{i}_{E},\mathcal{G}^{i}_{I}) is a self-contained island: a sparse-history user has almost no signals to retrieve, exactly when guidance is most needed. Yet STARK targets domain-specific settings whose users share a goal distribution and converge on recurring patterns. For example, among authors writing in the same research area, one author establishes that a particular method suits a class of problems, and the next author working on that problem class rediscovers the same relevant concepts from scratch. This is the same shared-goal structure that arises among account managers negotiating with a common vendor base in our deployment (§ 6).

We therefore project every user’s signal relations into one relational embedding space, learned from triples (h,r,t)(h,r,t) over the combined dual-graph, the union of all users’ (GEi,GIi)(\mathcal{G}^{i}_{E},\mathcal{G}^{i}_{I}), and read transfer off the geometry by user-level similarity matching and link prediction over missing signals.

Why a relation-aware embedding? Collaborative filtering {(citep)}(Koren, Bell, and Volinsky 2009) collapses every interaction into one interactions-with-edge, whereas our signals are heterogeneous: the same constraint node plays different geometric roles under PREFERS and under the collapsed SURFACED relation. We therefore use TransR {(citep)}(Lin et al. 2015), with entity embeddings e∈Rde\in\mathbb{R}^{d}, relation embeddings r∈Rkr\in\mathbb{R}^{k}, and per-relation projections Mr∈Rk×dM_r\in\mathbb{R}^{k\times d} that map entities into a relation-specific subspace before scoring f(h,r,t)=∥Mreh+r−Mret∥2f(h,r,t)=\lVert M_r e_h+r-M_r e_t\rVert_2. This projection, which a single-space model like TransE {(citep)}(Bordes et al. 2013) lacks, separates PREFERS from SURFACED and drives clustering, drawing two users who connect to the same signal under the same relation together. It holds only among users sharing a domain and goal distribution, so we claim no cross-domain transfer. We further compare TransR against RotatE and CompGCN in Appendix § 8.§ 4. We use standard TransR notation: in a triple (h,r,t)(h,r,t), tt is the tail entity and ee an entity embedding, distinct from the episodic timestamp t(e)t(e) and event ee.

Selective prefixing: The geometry produces transfer only if users share target nodes, so during triple extraction we prefix user-specific entities but leave behavioral-signal entities unprefixed, letting two users point at one shared signal node, the seam along which one user’s geometry becomes informative for another (evidence in Appendix § 8.§ 6). Event-linked labels in ReR_e appear mostly once, giving TransR no repeated examples to estimate MrM_r, so we collapse them to a single SURFACED relation while keeping RsR_s intact.

Preference footprints: The first mechanism finds behaviorally similar users so a user, especially a cold-start one, can borrow their signals. Raw user-node embeddings fail, as a user node connects overwhelmingly to unshared episodic edges, so we represent each user only by their shared-signal

Algorithm 1: Dual-Graph Retrieval

Require: Query qq, user graphs (GEi,GIi)(\mathcal{G}^{i}_{E}, \mathcal{G}^{i}_{I}), context budget BB, optional TransR model Ensure: Retrieved context X\mathcal{X}

  1. Extract entity mentions and query intent τ∈{behavioral,episodic,mixed}\tau\in\{\mathrm{behavioral},\mathrm{episodic},\mathrm{mixed}\} from qq via LLM, producing seed set SS

  2. if TransR model available then

  3. Augment GIi\mathcal{G}^{i}_{I} with TransR entity predictions

  4. Retrieve similar-user insights via preference fingerprints

  5. end if

  6. Insight retrieval: Look up SS in GIi\mathcal{G}^{i}_{I}; retrieve behavioral signal nodes ranked by rank⁡(v)=s(v)⋅c(v)⋅(0.5+w(v))\operatorname{rank}(v)=s(v)\cdot c(v)\cdot(0.5+w(v)), so failure-derived signals (w=0w=0) keep half weight

  7. Episodic retrieval: Look up SS in GEi\mathcal{G}^{i}_{E}; retrieve matching event nodes ranked by temporal recency and causal relevance

  8. Bridge traversal: For each retrieved behavioral signal, follow event-as-edge labels to GEi\mathcal{G}^{i}_{E}; retrieve originating events as provenance

  9. Context assembly: Allocate budget BB according to intent τ\tau: behavioral signals first when τ=behavioral\tau=\mathrm{behavioral}, episodic content first when τ=episodic\tau=\mathrm{episodic}, interleaved when τ=mixed\tau=\mathrm{mixed}. Truncate lowest-ranked results to fit BB. Cross-user signals are labeled separately.

  10. return X\mathcal{X}

edges, aggregated into a preference fingerprint:

fp⁡(u)=∑(u,r,p)∈Tuwrep∥∑(u,r,p)∈Tuwrep∥.(2)\operatorname{fp}(u)=\frac{\sum_{(u,r,p)\in T_u}w_r e_p}{\left\lVert\sum_{(u,r,p)\in T_u}w_r e_p\right\rVert}. \tag*{(2)}

where TuT_u holds the triples connecting uu to shared signal entities and wrw_r weights relation informativeness (prefers above tried). User similarity is the cosine between fingerprints, from which a user inherits candidate signals from its top-mm most similar users.

Entity-level link prediction: Fingerprint matching needs a few existing signals to anchor the comparison, which cold-start users lack, so the second mechanism asks which specific signal the user is missing, scoring each candidate against its best-fitting link to what the user holds, predicted⁡(u)=arg min⁡p∉Pexistingmin⁡r∈Rpf(seed,r,p)\operatorname{predicted}(u)=\operatorname*{arg\,min}_{p\notin P_{\mathrm{existing}}}\operatorname*{min}_{r\in R_p}f(\mathrm{seed},r,p), where seed iterates over PexistingP_{\mathrm{existing}} and Rp⊂RsR_p\subset R_s are the preference-relevant relations obtained during graph construction. When no signals exist, the user node itself is the seed under prefers and wants, so a brand-new user still inherits common domain signals.

The dual-graph structure enables a retrieval strategy that queries both graphs with distinct objectives: the Insight Graph for evidence-ranked behavioral knowledge, and the Episodic Graph for narrative context and temporal grounding. Algorithm 1 describes how the retrieval system works and how context is assembled at the end of it.

Experimental Setup

We evaluate on five public benchmarks. LoCoMo ([17]) and LongMemEval (Wu et al. 2025) target long-horizon memory (exercising the Episodic Graph via temporal, causal, and multi-hop retrieval); RealPref ([4]) and PAL-Bench ([7]) are preference-oriented (exercising the Insight Graph). Evidence search is active only where reliable outcome labels exist (RealPref, LoCoMo, LongMemEval); on PAL-Bench and LongLaMP, whose data record no reception signal, signals are ranked uniformly. All four are single-user, so we evaluate cross-user transfer on the public LongLaMP abstract-generation benchmark ([12, 22]), whose authors act as users with disjoint train/test authors for a genuine cold-start setting. We report on the full public test split of each benchmark and simulate cold start by retaining {5−100}%\{5-100\}\% of each user’s graph operations (protocol in Appendix A.3).

We compare against memory systems Mem0 ([2]), A-MEM (Xu et al. 2025), Zep ([20]), and MAGMA ([9]), and full-context LLM baselines (Claude Haiku 4.5, Sonnet 4.5/4.6, and Opus 4.5). For fairness, every memory system and all three A/B arms use Claude Sonnet 4.6 as the backbone and the same B=4000B=4000-token retrieval budget as STARK (Table 5; full-context truncation policy in Appendix A.3). MCQ, true/false, and ranking are scored by exact match and are therefore judge-independent; open-ended answers are scored 1–5 (≥4\ge4 correct) by a GPT-5.1 judge.

SymbolDescriptionValue
αs\alpha_sstrength saturation rate0.7
λs\lambda_sconsistency-bonus magnitude0.5
τw\tau_woutcome-weight threshold0.5
αc\alpha_cconfidence volume sensitivity0.5
λc\lambda_coutcome-variance penalty2.0
Retrieval (Algorithm 1)
BBcontext budget (tokens)4000
Cross-user transfer
mmsimilar users per user5
TransR embedding
ddentity embedding dimension64
kkrelation embedding dimension64
γ\gammaranking-loss margin1.0
η\etalearning rate0.01
−-training epochs100
−-negatives per positive triple1

Table 5. Hyperparameter settings for STARK, grouped by the component that uses them. Evidence-scoring constants are set by design, not tuned; mm is tuned on the LongLaMP validation split, whose authors are disjoint from the 4,560 test authors; TransR and retrieval-budget values follow standard practice.

Results

Graph structure matches full-context on short histories and dominates on long ones. On LoCoMo (Table 1, scores on a 1–5 scale), STARK is best across all four categories: it leads on single-hop (3.98 vs. MAGMA: 3.88, +0.10; vs. best LLM-only Opus 4.5: 3.84) and substantially outperforms all baselines on multi-hop (3.56 vs. MAGMA: 2.64, +0.92), temporal reasoning (3.77 vs. MAGMA: 3.25, +0.52), and open-domain queries (4.08 vs. Zep: 3.15, +0.93). Notably, on LoCoMo every other memory system does worse than full-context Opus 4.5 on multi-hop (2.50–2.70 vs. 3.34): lossy retrieval hurts when the history already fits, and STARK is the only system that avoids this cost. LongMemEval is the opposite case: histories no longer fit and full context collapses (information extraction around 1.6–1.8), so structured retrieval becomes essential. Here STARK achieves 4.38 on information extraction (+1.48 over MAGMA), 2.62 on temporal reasoning (+0.52), and 3.32 on knowledge update (+0.62). On LongMemEval abstention we match MAGMA, as our retrieval passes nodes similar to the query entities and biases the model toward answering.

ModelSingle HopMulti HopTemporalOpen DomainInformation extractionAbstentionTemporalKnowledge updateRG-1RG-LJudge (/5)
LLM-Only (Full Context)
Claude Haiku 4.53.693.102.122.771.601.751.101.6524.018.52.6
Claude Sonnet 4.53.733.222.382.851.651.801.151.8425.219.42.8
Claude Sonnet 4.63.823.312.582.891.701.901.201.8525.819.92.9
Claude Opus 4.53.843.342.632.931.771.901.251.8826.520.63.0
Long Term Memory Structures
Mem02.902.702.303.102.102.251.552.2028.021.53.3
MAGMA3.882.643.252.582.902.752.102.7029.222.63.5
A-MEM2.752.502.102.401.902.001.401.9526.820.83.1
Zep2.802.552.203.152.002.151.502.1028.522.03.4
STARK3.983.563.774.084.382.812.623.3231.524.84.7

Table 1. Comparison of STARK against baselines on LoCoMo, LongMemEval, and LongLaMP. All LoCoMo and LongMemEval judge scores are on a 1–5 scale. STARK achieves best LoCoMo single-hop (3.98), multi-hop (3.56), temporal reasoning (3.77), and open-domain (4.08), as well as best LongMemEval info extraction (4.38) and temporal reasoning (2.62).

Explicit preference nodes drive performance gains on preference-oriented datasets. On RealPref (Table 2), the gain concentrates where memory is irreplaceable: the open-ended score, where the model must produce the preference itself, jumps +2.04 over LLM-only (2.15→4.19), whereas MCQ, where the answer is one of the given options, rises far less (+13.0pp, to 98.1%). Both gains share one source: preferences exist as evidence-scored nodes retrieved and ranked directly by support and consistency, not re-derived from raw text at query time. This ranking is what free-text stores cannot match: Mem0 nearly matches our open-ended

ModelO.E. (/5)MCQ (%) Ex.MCQ (%) Ge.MCQ (%) To.T/F (%)R.S. (/5)Rank (%) T2Rank (%) B2
LLM-Only (Full Context)
Haiku 4.52.0375.270.774.254.92.6928.634.8
Sonnet 4.52.0784.382.583.957.22.7333.837.0
Sonnet 4.62.0985.082.084.361.52.7732.636.3
Opus 4.52.1585.484.085.164.12.8134.037.7
Long Term Memory Systems
Mem04.0292.689.691.978.93.8737.738.8
MAGMA3.8094.091.593.480.03.7040.042.0
A-MEM3.5089.085.088.174.03.4035.036.0
Zep3.9091.088.090.377.03.6036.037.5
STARK4.1998.497.398.186.54.0341.344.2

Table 2. Comparison of STARK against baselines on RealPref and PAL-Bench. Ex./Ge./To. = MCQ accuracy on RealPref’s original/generalized/all, macro-averaged over users; T2/B2 = share of the top/bottom 2 ranked candidates; O.E. = open-ended judge; R.S. = requirement-restatement score.

fluency (4.02 vs. 4.19) yet trails on MCQ and T/F (91.9%, 78.9% vs. 98.1%, 86.5%), and STARK has the smallest Explicit-to-Generalized MCQ drop of any system (1.1pp vs. 1.4–4.5pp), showing the explicit structure also helps infer unstated preferences. PAL-Bench isolates this ranking step by removing it: it has no action-outcome signal, so STARK skips evidence scoring and treats signals uniformly. Its small residual edge (Top-2 41.3% vs. MAGMA 40.0%) therefore comes from the dual-graph structure alone, and the low scores across all methods reflect how hard it is to order preferences with no success signal to rank on.

TransR enables 1.5× quality recovery at extreme cold-start. At 5% graph sparsity (Table 3, Figure 4b), TransR combined achieves 2.0/5 and 15 ROUGE-L vs. 1.3/12 for text-only. This is where transfer helps most: in a shared-goal domain most of a new user’s signals already exist in the collective graph, and coverage grows with the user base (Figure 4a). Entity-level link prediction dominates across all sparsity levels; combining it with fingerprint similarity adds a further gain. We however see that random matching almost always performs better than no-matching. This means in a shared domain, cross-user insights are prevalent and useful.

Method.05.1.2.3.51.0
No-matching1.3/122.0/142.7/163.6/184.0/194.4/20
Random-matching1.7/122.3/143.1/163.8/184.2/204.4/21
Label-matching1.8/132.4/153.3/174.0/194.3/214.5/22
TransR(user)1.8/132.5/153.4/184.1/204.4/224.6/23
TransR(entity)2.0/142.6/163.5/184.3/214.5/224.6/24
TransR(combined)2.0/152.7/153.7/194.4/214.6/234.7/25

Table 3. Cross-user transfer impact on Open-Ended score (/5) / ROUGE-L at varying graph sparsity levels on the public LongLaMP abstract-generation benchmark. TransR combined = fingerprint similarity + entity link prediction.

Cross-user transfer scales on both deployment axes

Figure 4. Cross-user transfer scales on both deployment axes. (a) With more users, more of a newcomer’s signals already exist in the collective graph (blue) and a signal-sharing peer becomes near-certain (green). (b) At 5% of their own history, transfer recovers 2.0/5 vs. 1.3/5 text-only (1.5×).

Each graph matters only for its own kind of query.

DatasetFull SystemW/o TransRW/o GIG_IW/o EvidenceW/o GEG_EW/o Graph
LoCoMo (Single-Hop)3.98 / 17863.98 / 17863.90 / 14003.95 / 17863.55 / 13503.82 / 2466
LongMemEval (Info extraction)4.38 / 18394.38 / 18394.05 / 15004.30 / 18392.60 / 14001.70 / 3823
LongLaMP (Open ended)4.70 / 19004.41 / 18104.05 / 15004.70 / 19004.20 / 14002.90 / 4500
RealPref (Open ended)4.19 / 55314.19 / 55312.95 / 48003.70 / 55313.85 / 45002.09 / 3388
PAL-Bench (R.S.)4.03 / 72954.03 / 72953.10 / 62004.03 / 72953.75 / 58002.77 / 7242

Table 4. Full system performance when removing one component at a time. Each cell: STARK score (1–5) / response generation latency (ms) with LLM backbone as Claude Sonnet 4.6. Evidence scoring is disabled on PAL-Bench and LongLaMP, which have no outcome signal; TransR affects only LongLaMP, the only shared-domain benchmark.

Removing the Episodic Graph badly hurts the factual and temporal benchmarks (LongMemEval 4.38→2.60; LoCoMo −0.43) but barely affects preferences (RealPref −0.34); removing the Insight Graph does the opposite (RealPref 4.19→2.95; PAL-Bench −0.93). Evidence scoring matters most for preferences (RealPref −0.49) and only marginally for factual recall (LoCoMo −0.03, LongMemEval −0.08), whose answers come mainly from the Episodic Graph; on LongLaMP and PAL-Bench, whose data carry no reception signal, it is disabled, so the two columns coincide. TransR affects only the shared-domain LongLaMP (−0.29, +90 ms at O(1)O(1)). On long histories STARK is also faster than full context (e.g. LongMemEval 1839 vs. 3823 ms) as it sends a small subgraph, while insights saturate as episodes grow (Figure 3), keeping the read path flat.

Per-dataset graph growth with ingested sessions

Figure 3. Per-dataset graph growth with ingested sessions. Episodic nodes GE\mathcal{G}_{E} (solid) grow roughly linearly; insight nodes GI\mathcal{G}_{I} (dashed) saturate as recurring signals merge in place, keeping the retrieved surface small as history accumulates.

Deployment and Impact

STARK is deployed as a drop-in memory layer for a vendor-negotiation assistant used by Account Managers (AMs) who negotiate terms with thousands of vendors. Negotiations span many sessions across quarters, constraints surface mid-deal and must inform later ones, and closing strategies sit buried in each AM’s history; new hires start cold, and the team rediscovers the same constraints independently.

We ran an 8-week live A/B test over the 40 AMs (18 new hires under 6 months, 22 with 3+ years). It is paired at the vendor level: each of a manager’s five vendors gets three otherwise identical deals, run separately to avoid carryover: memory-on, memory-on with cross-user transfer disabled (transfer-off), and memory-off control. This yields 200 vendor triples (600 deals), with the order of the three arms randomized within each triple, and the transfer-off arm isolates cross-user transfer with the rest of the memory layer fixed. Each AM’s dual-graph was initialized from up to a year of their prior history (under six months for new hires), so every arm retrieves over the AM’s full available history from the first deal; the 8-week window scopes only the deals conducted in the pilot, all 600 of which closed, so cycle time carries no closure-based selection. Vendors respond live, each deal carries an AM-provided target, and all arms use Claude Sonnet 4.6. Memory-on cut negotiation rounds per deal by 18% and cycle time by 15% (paired tt-test, n=200n=200, both p<0.05p < 0.05), raised deals closed at or above target by 9 pp, and lifted blind guidance ratings by 0.8/5. The gains concentrate in new hires (∼24%/∼19% vs. experienced ∼13%/∼11%). The transfer-off arm pins this on cross-user transfer: without it, memory-on retained only ∼11%/∼9%, so transfer supplies roughly 40% of the gain overall and most of it for new hires (new ∼9% vs. ∼24%; experienced ∼12% vs. ∼13%). Through the pilot we learned that the AMs preferred inferred signals surfaced as accept-or-dismiss options rather than acted on, so we leave the decision to them. We also observed that new–experienced fingerprint similarity (Eq. (2)}) rose 0.31→0.58, a descriptive within-arm trend (not isolated by the transfer-off arm).

Why it works? Surfacing known constraints and concession patterns up front removes rounds spent rediscovering them; outcome-weighting (Eq. (1)}) front-loads previously successful tactics and down-ranks rejected ones, shortening the cycle; and for new hires this knowledge arrives via cross-user transfer. Cost, governance, and rollout are in Appendix A.6.

Conclusion

We presented STARK, a dual-graph memory that decouples episodic events from behavioral knowledge via an event-as-edge bridge, enabling evidence-ranked retrieval and cross-user transfer for cold-start inference. However, STARK has several important limitations. TransR updates in O(1)O(1) but its per-relation projections have fixed capacity, so embedding quality degrades as the graph densifies. Privacy is enforced agentically, not formally: we do not bound residual leakage of aggregate fingerprints under membership inference. Transfer is domain-specific, holding only among users who share a goal distribution. In future work, we plan to use the graph to look forward rather than back. Using behavioral paths as a search tree and running an MCTS-style rollout over likely trajectories can help the agent act on the path most likely to reach the user’s goal.

Appendix

Hyperparameter setup

Table 5 consolidates the hyperparameters of STARK that are free rather than fixed by the architecture, grouped by the component that uses them. The evidence-scoring constants govern how strength and confidence saturate with accumulated evidence; the retrieval constant sets the read-path context budget (Algorithm 1); and the transfer constants configure neighbor selection, fingerprint weighting, and the TransR embedding. All remaining settings follow standard practice.

The evidence-scoring constants are set so that strength rises smoothly from ≈0.67\approx0.67 at a single supporting episode to ≈0.94\approx0.94 at fifteen, with the consistency bonus applied once a signal’s outcome weight clears the majority threshold τw=0.5\tau_w = 0.5. The fingerprint weights wrw_r rank structural relations by how strongly they express a durable preference: wprefers=wwants=1.0w_{\mathrm{prefers}} = w_{\mathrm{wants}} = 1.0, wvalues=0.8w_{\mathrm{values}} = 0.8, wlearned=0.7w_{\mathrm{learned}} = 0.7, wavoids=0.6w_{\mathrm{avoids}} = 0.6, and wtried=0.5w_{\mathrm{tried}} = 0.5.

LongLaMP Abstract-Generation Benchmark

We evaluate on the public LongLaMP abstract-generation benchmark [12, 22] (the abstract_generation_user split), whose users are authors drawn from a large citation-network corpus. The split places disjoint authors in train and test (13,693 train / 4,560 test, zero overlap), so every test author is genuinely unseen—a true cold-start setting for cross-user transfer. A separate validation split, whose authors are disjoint from the test authors, is used only for hyperparameter tuning (Appendix § 8.§ 1). Each author’s profile is their set of prior paper abstracts, and the personalization target is the abstract of a held-out paper.

We treat each author as a user, each prior paper as an episode in the Episodic Graph, and the research topics, methods, and concepts recurring across an author’s abstracts as the behavioral-signal nodes of the Insight Graph. Because authors in the same research area converge on shared topics and methods, these signal nodes recur across users, providing the shared-domain structure that cross-user transfer relies on. For the clustering metric of Appendix A.7 we group authors by research field (assigned per author by an LLM from their profile abstracts) to obtain the ground-truth grouping.

Evaluation Protocol

We report on the full public test split of each benchmark: LoCoMo’s 10 conversations, LongMemEval-S’s 500 questions, RealPref’s 100 users and 1,300 preferences, and PAL-Bench’s 100 users; the LongLaMP split is detailed above (Appendix § 8.§ 1.1). Cold start is simulated by retaining {5,10,20,30,50,100}%\{5, 10, 20, 30, 50, 100\}\% of each user’s graph operations to measure resilience to sparsity; at low sparsity we exclude factual MCQ and T/F questions whose answers are absent from the sparse graph. Evidence scoring uses per-episode outcome labels ojo_j inferred at ingest by an LLM on RealPref, LoCoMo, and LongMemEval, where in-conversation reception signals exist; PAL-Bench and LongLaMP carry no such signal, so evidence scoring is disabled and their signals are ranked uniformly. Every memory system retrieves under the same B=4000B=4000-token budget as STARK; the full-context LLM baselines receive the entire history when it fits the backbone’s context window and, on histories that exceed it, are truncated to the most recent tokens that fit.

TransR training details

We train a single TransR model over the combined multi-user graph, with entity embeddings e∈Rde \in\mathbb{R}^{d}, relation embeddings r∈Rkr \in\mathbb{R}^{k}, and per-relation projection matrices Mr∈Rk×dM_r \in\mathbb{R}^{k \times d}, scored by f(h,r,t)=∥Mreh+r−Mret∥2f(h,r,t) = \lVert M_r e_h + r - M_r e_t \rVert_2. Training minimizes a margin-based ranking loss over the positive triples in the combined set against tail-corrupted negatives (a positive (h,r,t)(h,r,t) paired with (h,r,t′)(h,r,t') for a sampled t′≠tt' \ne t), pushing the geometry to score observed structure below corrupted structure; we use otherwise standard TransR hyperparameters and do not tune the embedding dimensions dd and kk per dataset. A full offline train takes 58 s on the LongLaMP training set. Between full retrains the model is updated incrementally in O(1)O(1) per new triple as conversations arrive, and a periodic full retrain admits new users and entities; in the interval before a user appears in a retrain, cold-start link prediction serves them off the existing embedding space. We adopt TransR because a live memory needs incremental, no-full-graph-recompute updates, which rules out CompGCN (it requires full message-passing at inference); we prefer it to RotatE, which is competitive on our metrics, for its interpretable per-relation subspaces (see Appendix § 8.§ 4).

TransR comparison with other embedding models

The Insight Graph contains semantically heterogeneous relations (PREFERS, SURFACED, WANTS) that require distinct geometric subspaces: the space in which a user prefers a behavioral pattern differs from the space in which that pattern surfaces a constraint. TransR addresses this directly via per-relation projection matrices MrM_r that map entities into relation-specific subspaces before translational scoring (Mrh+r≈MrtM_r h + r \approx M_r t). RotatE [23] models relations as rotations in a single complex space; empirically it clusters comparably to TransR (Table 9), so we claim no quality advantage over it. We nonetheless adopt TransR because its explicit per-relation projection matrices expose an inspectable subspace per relation, which suits the provenance and audit requirements of the deployment, and because its real entity space matches the fingerprint’s real-vector aggregation fP(u)=∑wr⋅emb⁡(pi)f_P(u) = \sum w_r \cdot\operatorname{emb}(p_i). CompGCN [24] entangles entity representations across relation types during neighborhood aggregation and requires full message-passing at inference, making it incompatible with the O(1)O(1) per-session incremental updates a live memory needs; TransR and RotatE both support such updates, CompGCN does not.

EmbeddingSeparationJudge
TransE (single space)0.0952.60
TransH (Wang et al. [26])0.1202.62
TransR (per-relation, ours)0.1742.66
RotatE (complex rotation)0.1852.68

Table 9. Embedding-model ablation under full sharing. Per-relation projection (TransR) clusters far better than single-space TransE; RotatE is marginally higher but within single-run noise, and we adopt TransR for its interpretable per-relation subspaces (both support incremental updates).

Deployment: Cost, Governance, and Rollout

Engineering readiness. STARK concentrates cost on the one-time write path and keeps the read path flat as a user’s graph grows. Ingestion is the cost center: each conversation is processed by two sequential LLM passes (episodic then insight), and a repeated behavioral signal is folded into an existing node by recomputing its evidence vector in place (Eq. (1)) rather than recomputing the graph, so write cost is bounded by the two passes and is independent of accumulated graph size. The read path is a fixed-budget filter over evidence-ranked signals: a query assembles about 3.8K tokens from about 74 entities in 710–770 ms regardless of how many sessions the user has logged, with cross-user transfer adding only about 90 ms. The embedding component is similarly write-heavy and read-cheap: TransR is trained offline (58 s on the LongLaMP training set used in our experiments) and served with O(1)O(1) incremental updates per new triple, with periodic full retraining (∼11\sim11 min at 10K users) to admit new users and entities; between retrains, cold-start link prediction serves users the model has not yet seen. Table 6 consolidates the cost and governance profile.

PhaseMetricValue
IngestionPasses per conversation2 (episodic, insight)
IngestionLatency / tokens per conv.6.2 s / 4.3K
RetrievalEntities / tokens / latency∼\sim74 / ∼\sim3.8K / 710–770 ms
RetrievalCross-user add-on+90 ms
EmbeddingFull train (LongLaMP)58 s
EmbeddingIncremental / retrain at scaleO(1)O(1) / ∼\sim11 min @ 10K
GovernanceCross-user channelsignal nodes + embeddings
GovernanceForget / PII policyDELETE_NODE / redaction

Table 6. Production cost and governance profile for STARK. Cost concentrates on the one-time write path while the read path stays cheap and graph-size-stable.

Governance, privacy, and compliance. Cross-user transfer shares only the behavioral-signal layer: the LLM-extracted names and short descriptions of unprefixed signal nodes, plus the learned embeddings and fingerprint aggregates over them. Episodic records, raw conversation text, and user-specific entities are user-prefixed and never cross a user boundary, and transferred signals are rendered under explicit caveat headers kept separate from a user’s own memory. Erasure maps directly onto the DELETE_NODE and UNLINK operations, with a forgotten user’s contribution to the shared embedding clearing at the next full retrain. The event-as-edge bridge keeps every acted-on signal traceable to its supporting episodes, giving the provenance an enterprise audit requires. These properties cleared the security and privacy sign-off required before the pilot went live.

Rollout plan. We advanced through four staged gates (Table 7), each with an explicit go/no-go criterion, so that no stage advanced on academic proxies alone: offline replay on historical logs, shadow mode with recommendations hidden from managers, the A/B pilot, and general availability. Stages 0–2 have passed their gates; on the strength of the pilot we are now beginning the Stage 3 rollout to all managers, with scheduled retraining, monitoring, and rollback in place.

StageGo/no-go gateStatus
0. Offline replayRecover ≥80%\geq80\% known constraints; judge uplift ≥+0.5\geq+0.5Passed
1. Shadowp95 read ≤900\leq900 ms; 0 PII leaks; ≥90%\geq90\% traceablePassed
2. Pilot A/B≥15%\geq15\% fewer rounds; positive blind guidance-rating liftPassed
3. GA (all managers)Sustained pilot gains; <1%<1\% rollbackUnderway

Table 7. Staged deployment plan for the vendor-negotiation assistant. Each stage advanced only on its go/no-go gate.

Cross-User Transfer: Design Justification

For enabling cross-user transfer we make three design choices that drive cross-user transfer: selective prefixing, relation normalization, and preference fingerprints. This appendix reports the experiments that justify each.

Setup. All measurements use the public LongLaMP abstract-generation benchmark ([12]), whose users are authors with disjoint train and test splits; for the clustering metric we group authors by research field. The primary metric is clustering separation: the mean cosine similarity between fingerprints of users in the same group minus the mean cosine similarity between fingerprints of users in different groups. A higher value means same-group users sit closer in the embedding space, which is the precondition for transferring one user’s signals to a behaviorally similar one; a value near zero means the space carries no transferable structure.

Selective prefixing is what creates the clustering: Table 8 varies how entities are shared across users while holding TransR fixed. With per-user (isolated) training, no entity is shared and separation is 0.022, essentially the no-structure floor: same-group users are no closer than unrelated ones. Sharing only relation projections raises it to 0.082, and sharing behavioral-signal entities as well (our full design, in which signal nodes stay unprefixed) raises it to 0.174, almost an eightfold gain over the isolated baseline. The shared signal node, not the embedding model alone, is what makes behaviorally similar users cluster.

Sharing modeSeparationJudge
Isolated (per-user, no sharing)0.0222.45
Shared relations only0.0822.55
Shared relations + entities (ours)0.1742.66

Table 8. Selective prefixing ablation. Clustering separation (within-group minus between-group fingerprint cosine) and average low-sparsity judge score, as entity/relation sharing varies under a fixed TransR model. Leaving behavioral-signal entities unprefixed (full sharing) is what produces clustering.

TransR is the right embedding for heterogeneous relations: Table 9 compares embedding models under full sharing. A single-space model (TransE) reaches separation 0.095 because it cannot give a signal different geometry under PREFERS versus SURFACED; per-relation projection (TransR) nearly doubles this to 0.174. RotatE is marginally higher (0.185 separation, 2.68 judge vs. our 0.174/2.66), but the gap is within single-run noise, so the two are effectively tied on quality; we adopt TransR for its interpretable per-relation subspaces and its fit with the real-vector fingerprint, both models supporting the incremental updates a live memory needs.

Relation normalization makes the event relations trainable: Event-linked labels in ReR_e are episodic identifiers that are unique and appear mostly once, so TransR has no repeated examples from which to estimate their projection matrix MrM_r. Left raw, the relation vocabulary holds 197 relations, 83 of them seen exactly once.

Fingerprints isolate the transferable structure: A user node connects to about 82% episodic edges and only 18% shared-signal edges, so its raw embedding is dominated by user-specific episodic neighborhoods, the part that is by construction not shared and not transferable; raw user-to-user

SourceSignal the graph extracts
Draft note“Strengthen the evaluation” the intent only; not the specifics.
Tool I/OExperiment-tracker / citation-manager results: added a low-resource retrieval baseline, +2 datasets, ablation FAIL → PASS after a fix. Stored as typed Event nodes with exact attributes.
Revision statePaper task BLOCKED → ACTIVE; camera-ready checklist unresolved 12 days. Stored as a state-change milestone and a revision-delay pattern.

Table 10. Multi-source signal extraction for a single paper-writing episode (p−4a7f2e; low-resource retrieval work). The draft note conveys only intent; the exact experimental changes come from tool I/O and the delay pattern from revision state. STARK extracts all three as typed, queryable nodes, whereas raw context stuffing would re-read the entire history to recover any of them.

similarity is therefore near random. The preference fingerprint (Eq. 2) discards the episodic mass and aggregates only the shared-signal 18%, which is what turns near-random raw similarity into the clustering reported in Table 8.

Qualitative Samples

We present three qualitative examples showing how the dual-graph improves agent behavior over generic LLM baselines.

Multi-Source Signal Extraction: A single paper-writing episode showing how different data sources contribute distinct signals extracted as typed, queryable nodes (Table 10).

Learning Through Failure: Without vs. With Personalization: Author A drafts papers in the same line of work across three successive submissions. Table 11 contrasts a generic LLM (no memory; red) with STARK (graph memory; green).

Generic LLM (no memory)STARK (graph memory)
P1 (first paper)Frames the method as a purely supervised pipeline; reviewers REJECT (“insufficient low-resource evidence”). Advises generically: “add experiments or soften claims.”Same rejection, but stores supervised_only_lowresource_weakness: “supervised-only framing rejected : weak in low-resource settings.”
P2 (months later)“What framing would you like?” : no memory of the rejection; starts from zero.Recalls the failure; recommends a contrastive-pretraining framing instead. Paper ACCEPTED; graph logs the strategy evolution.
P3 (later still)“What framing would you like?” : again no memory; author re-specifies everything.Proactively applies the proven contrastive-pretraining framing and cites the reason from graph memory. No respecification.

Table 11. Learning through failure across three successive papers by the same author. Without memory (red), the agent repeats generic advice and forgets each rejection; with the dual-graph (green), the P1 failure is stored as a behavioral signal, recalled in P2 to recommend the fix, and reused proactively in P3.

Cross-User Research-Concept Transfer: Two authors work in the same research area. Author A1 establishes a method/concept first; Author A2, a cold-start author, then benefits from A1’s structure without ever communicating with them (Table 12).

A1 - donor (signal contributed to the shared embedding space)
BehaviorAcross several papers on low-resource retrieval, A1 consistently frames contrastive pretraining as the method of choice, establishing a recurring topic–method association in their abstracts.
Signal formedA “contrastive pretraining →\to low-resource retrieval” concept signal (PREFERS). As an unprefixed behavioral-signal node, it is shared across users in the combined embedding space; A1’s own papers (episodic records) stay private.
A2 - receiver, cold-start author in the same area, no prior papers
Without graphWith no profile to condition on, the abstract is generated generically, omitting the contrastive-pretraining framing that characterizes the area.
With graphEntity-level link prediction over the shared space infers A2 is likely to hold the same contrastive-pretraining concept and surfaces it under a cross-user caveat header. The generated abstract adopts the field-appropriate framing on the first attempt.

Table 12. Cross-user research-concept transfer. A1’s recurring topic–method association forms a behavioral-signal node that, left unprefixed, is shared across users in the TransR embedding space. Because A2 is cold-start with no signals to anchor fingerprint matching, entity-level link prediction infers the concept for A2 from the geometry alone—no raw text or episodic records cross the user boundary—surfacing it as clearly labeled cross-user evidence (green). An LLM baseline sees only A2’s own (empty) profile (red). As an inferred signal it is advisory and may be wrong (Limitations).

Step-by-Step Pipeline Traces on Public Benchmarks

To complement the personalized-generation examples in the qualitative samples mentioned in appendix (LongLaMP abstract-generation dataset), we trace the full pipeline on two long-horizon conversational benchmarks, LoCoMo and LongMemEval. For each we report (i) the progressive ingestion of the dual-graph (GEi,GIi\mathcal{G}_{\mathcal{E}}^{i},\mathcal{G}_{\mathcal{I}}^{i}) (Table 13; Figure 5, which visualizes the episodic and preference graphs separately as a growth flow toward the full dataset-scale graph); and (ii) a retrieval trace following one real query per dataset, from the dataset-scale memory graph down to the retrieved subgraph (Figure 6), with each sub-figure caption reporting that query’s intent, pipeline-stage flow, and latencies.

Prompt Library

Episodic Extraction Prompt

Episodic Extraction Prompt

You are an expert episodic-memory
extraction agent for personal
conversation analysis.
YOU MUST RESPOND WITH **ONLY** VALID
JSON - ABSOLUTELY NO OTHER TEXT.
TASK: Extract an Episodic MEMORY
GRAPH from a conversation using memory
operations.
You will receive: 1. A user_id
identifying the person 2. A conversation
(and optionally persona context)
3. Optionally, a session_date (the
date/time when this conversation session
took place)
== OPERATIONS ==
You have 6 primitive operations:
ADD_NODE - Create a new node
(event, person, location, pet,
item, etc.) Required: node_id
(snake_case), node_type (dynamic),
properties (dict) Properties
MUST include: user_id, graph_type
("episodic"), name, description, paths
Retrieval traced per dataset for LoCoMo and LongMemEval queries, showing dataset graphs, user graphs, and retrieved subgraphs

Figure 6. Retrieval traced per dataset, left to right: dataset-scale memory graph → user graph Mi\mathcal{M}_i → retrieved 20-node subgraph; each column shows its episodic (top) and preference (bottom) graphs.

DatasetSessionNodes (Ep/Pref)EdgesRepresentative new signals
LoCoMo 438 turnsS1 (t. 1–19)13 (8/5)19LGBTQ Support Group Attendance (Event); Caroline (User); Caroline’s Transgender Transition (Milestone); LGBTQ Community Belonging (Pref); Transgender Advocacy (Value)
S2 (t. 20–37)16 (9/7)19Charity Race LED_TO⟶\mathrm{LED\_TO}\longrightarrow Mental Health Awareness (Value); Adoption Application reinforces Adopting Children and Building a Family (Goal)
Full graph650827Dataset-scale memory across all 7 users (totals; not a single user’s per-session graph)
LongMemEval 565 turnsS1 (t. 1–13)19 (10/9)26Thrift and Second-Hand Shopping (Pref); Vintage Band T-Shirt Styling (Event); Sustainable Fashion (Value)
S2 (t. 14–16)16 (8/8)21Node count fluctuates under LLM extraction non-determinism (the agent consolidates entities differently given more context; see § 2)
Full graph610719Dataset-scale memory across all 6 users (totals; not a single user’s per-session graph)

Table 13. Progressive dual-graph ingestion for LoCoMo and LongMemEval (episodic and preference node counts shown as Ep/Pref). For each dataset the first two rows trace one user’s graph after sessions 1 and 2, and the third row reports the full dataset-scale graph (totals across all users), matching Figure 5. LongMemEval’s per-session count fluctuates under LLM extraction non-determinism (S2).

Progressive dual-graph growth on LoCoMo and LongMemEval

Figure 5. (a) LoCoMo. One trace user’s dual-graph grows session by session (After S1 → After S2), then the Full Dataset Graph shows the scale of memory the system holds across all users. Each stage is split into its episodic (top) and preference (bottom) graphs, co-evolving and linked by the event-as-edge bridge.

(b) LongMemEval. Same layout: per-session growth (After S1 → After S2) followed by the Full Dataset Graph. LongMemEval’s S1→S2 node count fluctuates under LLM extraction non-determinism.

Progressive dual-graph growth on LoCoMo and LongMemEval, read left to right as a flow: the trace user’s graph after session 1, after session 2, and the full dataset-scale graph. Each stage shows its Episodic graph GEiG^{i}_{E} (events, milestones, top) and Preference graph GPiG^{i}_{P} (preferences, values, goals, bottom), co-evolving and joined by the event-as-edge bridge. Per-session node counts are per graph; edge counts are dual-graph totals; the full-graph counts are dataset totals across all users.

Properties MUST include: outcome
(success/failure/partial/pending/unknown)
Properties SHOULD include: session_date,
event_date, sequence_order
  LINK - Create an edge between two
existing nodes Required: from_id,
to_id, edge_label (UPPER_SNAKE_CASE)
Optional: properties (dict with user_id,
graph_type)
  UPDATE_NODE - Delta-update properties
on an existing node Required: node_id,
updates (dict of key:value to change)
  DELETE_NODE - Remove a node (for
forget requests or corrections) Required:
node_id
  UNLINK - Remove an edge Required:
from_id, to_id, edge_label
  NOOP - Explicitly skip when nothing is
worth storing Optional: reason (string)
== GUIDELINES ==
- Node types are DYNAMIC: Event,
Activity, Person, Pet, Location,
Organization, Decision, Milestone, Item,
Book, Game, etc. - Edge labels are
DYNAMIC: FOLLOWED_BY, CAUSED, LED_TO,
EXPERIENCED, OCCURRED_AT, OWNS, KNOWS,
PLAYS, READS, etc. - Create a User node
with node_id = the provided user_id -
Every Event/Activity node MUST have an
"outcome" property - Every node MUST
have a "paths" property (list of path
strings from User root) - Every node
MUST have a "description" property (1–2
sentences capturing specific details) -
Focus on WHAT HAPPENED - not preferences
(those go in the preference graph) - Use
NOOP when a conversation chunk has no
memory-worthy events
== CRITICAL: EXTRACT FINE-GRAINED
DETAILS ==
  You MUST extract ALL specific names,
titles, quantities, and dates: - Named
entities: Pet names (e.g., "Susie
the snake"), book titles, game names,
restaurant names - Specific quantities:
"3 years", "10 people", "$500", "2
kids" - Specific dates: "19 January
2023", "last March", "two weeks ago" -
Relationships: "close friend", "married
5 years", "colleague"
  Create SEPARATE NODES for named
entities and LINK them to the events
they appear in.
== TIMESTAMP RULES ==
  Two types of timestamps - keep them
separate:
  1. session_date: When this
conversation session took place (from
metadata). Store on EVERY node.
  2. event_date: When the event ACTUALLY
occurred, resolved from context. - "I
went to Tokyo last March" + session_date
"May 2023" -> event_date = "March 2023"
- "yesterday" + session_date "20 October
2023" -> event_date = "19 October 2023"
- "3 years ago" + session_date "2023" ->
event_date = "2020" Score ONLY on nodes
where a date is mentioned or inferable.
== OUTPUT FORMAT ==
{"operations": [ {"operation":
"ADD_NODE", "node_id": "str",
"node_type": "str", "properties": {...}},
{"operation": "LINK", "from_id": "str",
"to_id": "str", "edge_label": "str",
"properties": {...}, ... ] }

Preference Extraction Prompt

Preference Extraction Prompt

You are an expert preference-memory extraction agent for personal conversation analysis. YOU MUST RESPOND WITH **ONLY** VALID JSON – ABSOLUTELY NO OTHER TEXT.

TASK: Extract a PREFERENCE MEMORY GRAPH from a conversation using memory operations.

You will receive: 1. A user_id identifying the person 2. A conversation (and optionally persona context) 3. A list of EPISODIC OPERATIONS already extracted (episodes/events from the same conversation)

== CORE DESIGN PRINCIPLE ==

Behavioral signals (preferences, values, goals, constraints) are the only nodes; the preference graph has NO Event nodes. Edges between signals carry one of two label kinds: (1) a structural relation from the closed set {PREFERS, WANTS, VALUES, TRIED, AVOIDS, LEARNED} – e.g. a Preference LEARNED a Constraint; or (2) an episodic event entity_id, recording that the relationship was observed during that event (the event-as-edge bridge).

Chain structure: User -[PREFERS]-> P1 -[LEARNED]-> C1 (structural relation) User -[PREFERS]-> P1 -[event_entity_id]-> P2 (event-as-edge bridge)

== OPERATIONS ==

ADD_NODE – Create a new preference/value/goal/constraint node

Properties MUST include: user_id, graph_type ("preference"), name, paths, category For grounding, emit ONLY evidence_list: the distinct episodes supporting this signal, each {"episode_id", "outcome"}. The evidence vector ev(v) = (strength s, evidence count n, outcome weight w, confidence c) is computed deterministically from evidence_list at aggregation time (UPDATE_NODE); do NOT score s, w, or c by hand.

LINK – Create an edge between two nodes For User-to-signal: edge_label is one of the closed structural set {PREFERS, WANTS, VALUES, TRIED, AVOIDS, LEARNED}. For signal-to-signal: edge_label is either a structural relation from the same set (e.g. LEARNED) or an episodic event entity_id.

UPDATE_NODE – Delta-update an existing signal (re-triggers evidence aggregation)

DELETE_NODE – Remove a signal UNLINK – Remove an edge NOOP – Nothing preference-worthy in this chunk

== EVIDENCE RULES ==

The agent emits only the raw grounding; all scores are computed downstream, not by the LLM: – evidence_list: [{"episode_id": "str", "outcome": "success|failure|partial|pending"}] – one entry per distinct supporting episode. This is the ONLY evidence field the agent produces. – The aggregator then derives the evidence vector deterministically: evidence count n = |evidence_list|, outcome weight w = (successful episodes) / (resolved episodes), where resolved means marked success or failure and partial/pending episodes count toward n but are excluded from w (w defaults to 0.5 when no episode is resolved), and strength s and confidence c via the deterministic scoring functions (both continuous in (0,1)). These are recomputed on every UPDATE_NODE.

NO Event/Activity nodes in the preference graph. Those belong in the episodic only.

Context Rendering Format

Context Rendering Template

=== {user_name}’s Memory ===

{user_name}’s Preferences: – [Preference] Contrastive Pretraining – Prefers contrastive pretraining for low-resource retrieval (strength=0.75, evidence=2, outcome_weight=0.50, confidence=0.62) Evidence: first_paper_rejected (failure), third_paper_accepted (success) – [Constraint] Ablation Coverage – Learned from a rejected submission (strength=0.67, evidence=1, outcome_weight=0.00, confidence=0.62)

{user_name}’s Events: – [Event] Tokyo Tech Conference – Attended a tech conference in Tokyo [date: March 2023] [outcome: success] – [Pet] Susie – Ball python pet snake named Susie, bought about a year ago [date: October 2022] [outcome: success]

Answer Generation Prompts

The MCQ and True/False prompts below emit a discrete answer (a letter or a boolean) scored by exact match against the gold option. The LLM-as-a-judge prompt (provided in prompt library) is used only for open-ended answers, where it returns a 1–5 semantic-fidelity score against the gold reference.

MCQ Answer Prompt

System: Answer based on the user’s memory. Think step by step, then give the letter.

Memory: {context}
Question: {question} Options: A: ... B:
... C: ... D: ...
Think step by step: 1. Identify what
the user’s memory tells us. 2. Pick the
option that best matches.
Reasoning: <your reasoning> Answer:
<letter>

True/False Answer Prompt

System: Answer true/false based on the
user’s memory. Think first.
Memory: {context}
True or false: {question}
Think step by step, then answer.
Reasoning: <your reasoning> Answer:
<true or false>

Open-Ended Answer Prompt

System: Answer based on the user’s
memory. Be concise - short phrase only.
Memory: {context}
Question: {question}
Write an answer in the form of a short
phrase. Answer with exact words from the
memory whenever possible. Be concise.
Short answer:

Evaluation Judge Prompt

LLM AS A JUDGE – Standard
System: You are an expert evaluator.
Score answers 1-5. Respond with only a
number.
You are an expert evaluator assessing
the semantic fidelity of a memory
retrieval system.
Question: {question} Gold Reference:
{gt_answer} Candidate Answer: {answer}
Score the Candidate Answer against
the Gold Reference on a scale of 1-5:
5 = Exact alignment - captures all key
entities, temporal markers, and causal
relationships. Semantically equivalent.
4 = Substantially correct - main point
is accurate but lacks minor nuances or
secondary details. 3 = Partial match -
contains valid information but misses
key constraints (e.g., wrong date
but correct event). 2 = Tangential -
touches on the topic but misses the
core information requirement. 1 =
Contradiction/Hallucination - completely
unrelated or contradicts the ground
truth.
Evaluation constraints: 1. Temporal
flexibility: Accept relative time
references if they resolve to the
same period as the Gold Reference.
2. Semantic equivalence: Prioritize
informational content over lexical
matching.
Respond with ONLY a number 1-5.

References

  1. [2]Chhikara, P.; Khant, D.; Aryan, S.; Singh, T.; and Yadav, D. 2025. Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory. arXiv:2504.19413.arxiv.org/abs/2504.19413
  2. [3]Edge, D.; Trinh, H.; Cheng, N.; Bradley, J.; Chao, A.; Mody, A.; Truitt, S.; Metropolitan sky, D.; Ness, R. O.; and Larson, J. 2025. From Local to Global: A Graph RAG Approach to Query-Focused Summarization. arXiv:2404.16130.arxiv.org/abs/2404.16130
  3. [4]Guo, Q.; Li, Y.; Liu, Y.; and Hooi, B. 2026. Towards Natural Personalization: Evaluating Long-Horizon Preference Following in Personalized User-LLM Interactions. arXiv:2603.04191.arxiv.org/abs/2603.04191
  4. [7]Huang, Z.; Dai, Q.; Wu, G.; Wu, X.; Chen, K.; Yu, C.; Li, X.; Ge, T.; Wang, W.; and Jin, Q. 2025. Mem-PAL: Towards Memory-based Personalized Dialogue Assistants for Long-term User-Agent Interaction. arXiv:2511.13410.arxiv.org/abs/2511.13410
  5. [8]Jain, A.; Ghosh, P.; and Yenigalla, P. 2026. CASPER: Bridging Discrete and Continuous Prompt Optimization through Feedback-Guided Gradient Descent. In Matusevych, Y.; Eryiğit, G.; and Aletras, N., eds., Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 5: Industry Track), 425–437. Rabat, Morocco: Association for Computational Linguistics. ISBN 979-8-89176-384-5.DOI
  6. [9]Jiang, D.; Li, Y.; Li, G.; and Li, B. 2026. MAGMA: A Multi-Graph based Active Memory Architecture for AI Agents. arXiv:2601.03236.arxiv.org/abs/2601.03236
  7. [10]Kang, J.; Ji, M.; Zhao, Z.; and Bai, T. 2025. Memory OS of AI Agent. arXiv:2506.06326.arxiv.org/abs/2506.06326
  8. [12]Kumar, I.; Viswanathan, S.; Yerra, S.; Salemi, A.; Rossi, R. A.; Dernoncourt, F.; Delamsalehy, H.; Chen, X.; Zhang, R.; Agarwal, S.; Lipka, N.; Nguyen, C. V.; Nguyen, T. H.; and Zamani, H. 2024. LongLaMP: A Benchmark for Personalized Long-form Text Generation. arXiv:2407.11016.arxiv.org/abs/2407.11016
  9. [17]Maharana, A.; Lee, D.; Tulyakov, S.; Bansal, M.; Barbieri, F.; and Fang, Y. 2024. Evaluating Very Long-Term Conversational Memory of LLM Agents. arXiv:2402.17753.arxiv.org/abs/2402.17753
  10. [18]Packer, C.; Wooders, S.; Lin, K.; Fang, V.; Patil, S. G.; Stoica, I.; and Gonzalez, J. E. 2024. MemGPT: Towards LLMs as Operating Systems. arXiv:2310.08560.arxiv.org/abs/2310.08560
  11. [19]Park, J. S.; O’Brien, J.; Cai, C. J.; Morris, M. R.; Liang, P.; and Bernstein, M. S. 2023. Generative Agents: Interactive Simulacra of Human Behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology, UIST ’23. New York, NY, USA: Association for Computing Machinery. ISBN 9798400701320.arxiv.org/abs/2304.03442
  12. [20]Rasmussen, P.; Paliyuchuk, P.; Beauvais, T.; Ryan, J.; and Chalef, D. 2025. Zep: A Temporal Knowledge Graph Architecture for Agent Memory. arXiv:2501.13956.arxiv.org/abs/2501.13956
  13. [21]Richardson, C.; Zhang, Y.; Gillespie, K.; Kar, S.; Singh, A.; Raeesy, Z.; Khan, O. Z.; and Sethy, A. 2023. Integrating Summarization and Retrieval for Enhanced Personalization via Large Language Models. arXiv:2310.20081.arxiv.org/abs/2310.20081
  14. [22]Salemi, A.; Mysore, S.; Bendersky, M.; and Zamani, H. 2024. LaMP: When Large Language Models Meet Personalization. arXiv:2304.11406.arxiv.org/abs/2304.11406
  15. [23]Sun, Z.; Deng, Z.; Nie, J.; and Tang, J. 2019. RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space. arXiv:1902.10197.arxiv.org/abs/1902.10197
  16. [24]Vashishth, S.; Sanyal, S.; Nitin, V.; and Talukdar, P. 2020. Composition-based Multi-Relational Graph Convolutional Networks. arXiv:1911.03082.arxiv.org/abs/1911.03082
  17. [25]Wang, L.; Ma, C.; Feng, X.; Zhang, Z.; Yang, H.; Zhang, J.; Chen, Z.; Tang, J.; Chen, X.; Lin, Y.; Zhao, W. X.; Wei, Z.; and Wen, J. 2023. A survey on large language model based autonomous agents. Frontiers of Computer Science, 18.DOI
  18. [26]Wang, Z.; Zhang, J.; Feng, J.; and Chen, Z. 2014. Knowledge Graph Embedding by Translating on Hyperplanes. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 28. Wu, D.; Wang, H.; Yu, W.; Zhang, Y.; Chang, K.; and Yu, D. 2025. LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. arXiv:2410.10813.
  19. [29]Zhong, W.; Guo, L.; Gao, Q.; Ye, H.; and Wang, Y. 2024. MemoryBank: Enhancing Large Language Models with Long-Term Memory. Proceedings of the AAAI Conference on Artificial Intelligence, 38(17): 19724–19731.arxiv.org/abs/2305.10250

Paper details

vlnc:W_57fhm8ub
Version
v2 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 15

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents