Manuscript Offprint
arXiv:2610.34790BehaviorMem: Building and Evaluating User Memory from Real-World E-Commerce Behavior Streams
Sizhe Wang
Fudan University
Shanghai, China
Xinghao Fang
Zhejiang University
Hangzhou, China
Rui Qiu
Taobao & Tmall Group,
Alibaba
Beijing, China
Zhenjia Ma
mazhenjia.mzj@alibaba-
inc.com
Taobao & Tmall Group,
Alibaba
Beijing, China
Dagui Chen
Taobao & Tmall Group,
Alibaba
Beijing, China
Kun Kuang
Zhejiang University
Hangzhou, China
Hongcheng Guo
Fudan University
Shanghai, China
Abstract
User memory helps personalized systems build on their understanding of users over time. In e-commerce, users convey their preferences and needs through both explicit language and implicit interactions with products. We study memory built from logs of these interactions, examining how it can remember concrete evidence and established interests, and use that evidence to infer underlying needs and preferences that inform judgments beyond well-observed product domains. Existing memory methods primarily target language-based interactions, and evaluations offer limited real behavioral data and limited separation of these capabilities. This leaves open how to jointly support and separately evaluate remembering and inference from behavioral logs. We formulate the problem of continual behavioral user memory around these joint requirements and develop a dedicated evaluation framework and memory method to address them. BehaviorMemBench is a benchmark built from real e-commerce logs covering 1,194 users and 17,462 behavioral batches over more than three years, with automatic future-behavior labels and a task-independent memory interface to separately evaluate remembering and inference under a common protocol. BehaviorMem is a memory design that organizes explicit behavioral facts and inferred user characteristics across long-term and short-term scopes in a two-axis state, with evidence-grounded formation, continual maintenance, and query-independent readout. Experiments across two builders and two task readers show that BehaviorMem leads the evaluated agentic memories on remember and infer, and reveal different method rankings across the two capabilities and competitive statistical baselines. Validation on a public dataset further supports its usefulness for downstream tasks based on behavioral histories.
CCS Concepts
• Information systems → Personalization; • Human-centered computing → User models.
Equal Contribution.
Corresponding Author.
1 Introduction
Long-term personalization in LLM-based systems, such as personal agents, search engines, and recommendation systems, requires persistent user understanding. User memory accumulates and reuses preferences, circumstances, and goals across interactions to support relevant services as users' needs change [5, 47]. In e-commerce, this knowledge comes from interactions with products and services, where users convey preferences and shopping needs through both explicit natural language and implicit behavior. Through product inquiries and customer-service conversations, users can directly state their requirements, preferences, and circumstances. By contrast, browsing, favorites, add-to-cart actions, and purchases show what users engage with without directly explaining why. Their underlying preferences and needs must therefore be inferred from product characteristics and patterns across interactions.
Memory construction from explicit natural-language interactions has been extensively studied [5, 20]. However, implicit behavioral logs provide evidence of preferences and needs that users may not articulate in language. These signals are dispersed across products and visits, requiring observations to be interpreted together over time. Making this evidence useful for later personalization calls for a persistent, updatable source of user information that carries relevant history into future interactions. We therefore focus on constructing user memory from behavioral logs to preserve evidence of users' choices and develop a reusable understanding of the preferences and needs behind them.
Past behavior can inform later personalization. However, behavioral logs record what users did without directly explaining their preferences or needs. Using such evidence therefore calls for memory to remember what users did and infer what their choices imply about them beyond remembering. Remembering keeps concrete choices, established interests, and relevant product or attribute details available for later use. Inference connects recurring choices

Figure 1: Comparison of dialogue-oriented and behavioral user memory across formation, maintenance, and readout. Dialogue memory preserves and organizes information expressed in interactions. Behavioral memory retains behavioral facts and induces user characteristics from implicit events, maintaining both to support remembering and inference.
and shared product characteristics to derive reusable user knowledge that can inform judgments in sparsely observed or unvisited, semantically related product domains.
Existing memory methods and benchmarks offer limited coverage of real, continual behavioral logs. MemGPT and Mem0 manage dialogue histories, and personalized systems such as MemoryBank and PersonaTree maintain user representations from language-based interactions [5, 20, 45, 47]. Figure 1 contrasts this setting with implicit e-commerce behavior. Benchmarks such as LoCoMo, LongMemEval, and MemoryAgentBench likewise evaluate language-based interactions [11, 19, 37], while behavioral-log benchmarks such as DynamicMem use synthetic trajectories and predefined user states [39]. This motivates memory construction and evaluation grounded in real behavioral streams, with labels automatically derived from future interactions to capture how users' interests unfold in actual use.
A second gap concerns joint support and separate evaluation of remember and infer. Memory methods largely emphasize retaining and retrieving useful information, although some also derive higher-level knowledge: Generative Agents forms reflections, and A-Mem links memories and evolves their contextual representations [21, 40]. For continual behavioral memory, how to preserve concrete evidence and maintain revisable user inferences together remains underexplored. Evaluation commonly focuses on downstream question answering and the recovery and use of remembered information. LaMP, GISTBench, and StreamProfileBench extend evaluation to personalization or user understanding [8, 27, 35], but a common assessment separating these capabilities remains limited for continual implicit e-commerce behavior. Addressing this gap calls for a task-independent memory interface and separate tests of remember and infer: whether memory keeps established interests available, and whether it supports future-interest judgments beyond well-observed product domains.
To address these gaps, we introduce BehaviorMemBench for evaluation and BehaviorMem for continual memory construction from e-commerce behavioral logs. BehaviorMemBench covers 1,194 users and 17,462 behavioral batches over more than three years, using automatically derived future-behavior labels to evaluate how memory supports remembering and inference under a common, task-independent protocol. BehaviorMem addresses the construction gap by jointly maintaining behavioral evidence and revisable user understanding. To remember, its two-axis state organizes explicit facts alongside inferred characteristics across long-term and short-term scopes, keeping past choices and established interests available through query-independent readout. To infer, evidence-grounded abstraction proceeds from behaviors through patterns and themes to user characteristics linked to supporting observations, and continual maintenance revises their content and temporal availability as new evidence arrives, distinguishing enduring tendencies from stage-specific needs.
Our contributions are threefold:
-
We formulate behavioral user memory around remembering and inference, and introduce BehaviorMemBench with real e-commerce logs, automatic future-behavior labels, and separate evaluation under a common, task-independent protocol.
-
We propose BehaviorMem, whose two-axis state pairs behavioral facts and inferred characteristics across long-term and short-term scopes, with evidence-grounded abstraction and continual maintenance.
-
Across two builders and two task readers, BehaviorMem leads the evaluated agentic memories on both recalls. Experiments also reveal different rankings across capabilities, competitive statistical baselines, and complementary memory components, with further validation on downstream tasks.
2 Problem Formulation
Behavioral observations. For each user, chronological behavior batches form a stream:
Each interaction records a product, its attributes, action type, and timestamp; the user’s underlying preferences and needs remain implicit.
Causal user-state interface. A memory system updates its state and exposes a query-independent readout:
Both depend only on , without access to downstream queries, candidate pools, or future labels. The state may combine records, statistical summaries, and inferred characteristics; a common reader evaluates its readout.
Joint memory objectives. Memory must remember useful historical evidence and established user information, and infer reusable user knowledge that supports judgments in less-observed or previously unvisited domains. Because abstraction and detail preservation can affect these capabilities differently, we assess them separately.
Design questions. BehaviorMemBench operationalizes these objectives through future-behavior tests, while BehaviorMem explores a memory design addressing them.
3 BehaviorMemBench
3.1 Comparison with Existing Benchmarks
Table 1 compares six properties. For data coverage, existing benchmarks use language-based histories [11, 19, 37], synthetic behavior [39], or real data without continual evaluation [8, 27]. BehaviorMemBench combines real, continual implicit behavior streams with automatic future-behavior labels. For capability evaluation, DynamicMem and GISTBench are task-independent but do not separately test infer beyond well-observed domains; StreamProfileBench supports both properties using text [35]. BehaviorMemBench combines these data properties with a task-independent interface and separate remember and infer tests.
3.2 Data Collection and Statistics
We construct BehaviorMemBench from Taobao's user behavior logs, spanning February 2023 to June 2026. These logs record browsing, clicks, favorites, add-to-cart actions, and purchases with timestamps and product metadata. Following the visit-merging procedure in Appendix A.1.1, we retain 1,194 of 2,000 randomly sampled users with at least 50 valid visits. A batch becomes eligible to close after 50 visits or 120 days and closes at the next inter-visit gap exceeding 15 minutes. This combines activity and elapsed-time limits while avoiding a split within a browsing session. The resulting corpus contains 913,271 visits, 17,462 batches, and 16,268 history-to-future transitions; the summary statistics in Appendix A.2 characterize variation across users.
3.3 Benchmark Framework
Prediction targets and future labels. We use Taobao's item-category taxonomy, which organizes products hierarchically from broad L1 categories through L2 and deeper levels to leaf categories. We select normalized L2 categories as prediction targets: this intermediate level captures recurring interests across items and provides a common evaluation target independent of a specific downstream task. Let C denote the L2 label space; fixed semantic groups link related L1 domains. At each , memory uses only , while the held-out next batch supplies future labels:
Positives are derived from favorites, add-to-cart actions, purchases, or qualifying deep browsing. The labeling rules in Appendix A.1.2 exclude shallow clicks alone.
Remember and infer pools. Positives are divided by their relation to the observed history. The remember pool tests previously visited categories and unseen categories within well-established L1 domains, measuring how well memory keeps exact categories and established interest domains available. It uses cluster, history, and random distractors. The infer pool tests unseen categories in lightly observed domains (related) or unvisited, semantically connected domains (new), with history-conditioned and random distractors. Both pools contain three distractors per positive:
The eligibility and exclusion rules in Appendix A.1.2 define these sets, which are frozen and shared across memory methods.
Common readout protocol. A frozen task reader evaluates each pool separately from the same fixed . It selects as many categories as the pool contains positives:
Candidates are deterministically shuffled. Under the common prompt and rendering protocol in Appendix A.3, the reader sees neither method identity nor positive labels. It only selects candidates; labels are determined independently from future behavior.
Metrics. Pool recall measures the fraction of future positives recovered, while distractor exposure measures the fraction of an eligible distractor family incorrectly selected:
Related and new recall evaluate their respective target tiers; higher recall and lower exposure indicate better performance.
Table 1: Comparison of user-memory and user-profile benchmarks. Infer denotes interest judgments beyond well-observed product domains.
| Type | Benchmark | Continual | Real data | Automatic labels | Implicit behavior | Task-independent | Infer |
|---|---|---|---|---|---|---|---|
| Memory | LoCoMo | ✓ | ✕ | ✕ | ✕ | ✕ | ✕ |
| Memory | LongMemEval | ✓ | ✕ | ✕ | ✕ | ✕ | ✕ |
| Memory | MemoryAgentBench | ✓ | ✕ | ✕ | ✕ | ✕ | ✕ |
| Memory | DynamicMem | ✓ | ✕ | ✕ | ✓ | ✓ | ✕ |
| Profile | LaMP | ✕ | ✓ | ✓ | ✕ | ✕ | ✕ |
| Profile | GISTBench | ✕ | ✓ | ✓ | ✓ | ✓ | ✕ |
| Profile | StreamProfileBench | ✓ | ✓ | ✓ | ✕ | ✓ | ✓ |
| Ours | BehaviorMemBench | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |

Formation
Explicit Behavioral Memory
Algorithm: cumulative counts + recent window
Long-term cumulative
| category | brand | CPV | price | #buy |
|---|---|---|---|---|
Short-term recent view
all batches, with time & purchase info
active categories
freq · purchases
current + previous two batches
Implicit Candidate Claims
Algorithm: behavior → pattern → theme → characteristic
Long-term continuous
Short-term non_continuous
claim tree
tree1
demographics
tree2
relations
tree3
interests
tree4
situations
always continuous
LLM decides
always non_cont.
Maintenance
Algorithm: local content revision
KEEP
ADD
UPDATE
RETIRE
same-path merge by LLM · new paths mounted by program ·
State: temporal availability
Active
in readout
Dormant
Retained internally
Continuous paths remain Active
Readout
Algorithm: deterministic projection
Facts
Active claims
Project
INF / III
Render
o
Output: shared memory interface
Behavioral facts
Active user characteristics
Temporal scope
No query or LLM
Figure 2: BehaviorMem overview. Programmatic updates preserve explicit behavior, while staged inference and local integration maintain implicit user state. Deterministic projection exposes current memory independently of downstream tasks.
4 BehaviorMem
BehaviorMem targets continual e-commerce behavioral logs, where preferences and needs are implicit in product interactions. Its two-axis design preserves concrete facts to remember past choices and uses evidence-grounded abstraction to infer reusable user characteristics, maintaining long-term tendencies and short-term needs as new behavior arrives. Figure 2 summarizes this design.
4.1 Two-Axis Memory State
The explicit/implicit axis pairs programmatic facts with inferred Claims; the long-term/short-term axis distinguishes accumulated tendencies from recent or stage-specific information:
Here, and hold historical category and brand aggregates and recent item activity, respectively; and store Active and Dormant Claims on type-domain-attribute paths, and tracks path continuity. Claims record user characteristics, confidence, and behavioral references across four types: demographics (T1), social relations (T2), interests (T3), and situational state (T4), with representations specified in Appendix B.2.
4.2 Memory Formation
Formation couples programmatic fact accumulation with evidence-grounded abstraction :
Inference follows behavior → pattern → theme → characteristic, with a further attribute step for T1/T2. Each level uses only its predecessor as evidence. Candidate Claims retain behavioral references and are placed on semantic paths using registry , following the procedure in Appendix B.3.
4.3 Memory Maintenance
Maintenance separates local content revision from temporal availability:
Claims are revised locally on matching paths: T1/T2 use deterministic updates, and T3/T4 use source-validated proposals. Retirement requires direct contradiction; missing observations alone never justify deletion. Continuous paths remain Active without renewed
Table 2: BehaviorMemBench results under two task readers (: recall; : distractor exposure).
| Builder | Method | Remember pool | Infer pool | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Recall | Exposure | Recall | Exposure | |||||||
| Task reader: Qwen3-32B | ||||||||||
| Non-parametric | Long Context | 0.647 | 0.098 | 0.213 | 0.024 | 0.426 | 0.446 | 0.394 | 0.244 | 0.166 |
| Frequency Profile | 0.644 | 0.083 | 0.267 | 0.015 | 0.424 | 0.435 | 0.400 | 0.243 | 0.165 | |
| Template Profile | 0.593 | 0.116 | 0.245 | 0.020 | 0.417 | 0.435 | 0.397 | 0.236 | 0.180 | |
| Qwen3-32B | A-Mem | 0.535 | 0.140 | 0.240 | 0.040 | 0.442 | 0.456 | 0.416 | 0.227 | 0.169 |
| Mem0 | 0.438 | 0.181 | 0.270 | 0.072 | 0.408 | 0.417 | 0.389 | 0.247 | 0.179 | |
| LightMem | 0.604 | 0.115 | 0.220 | 0.032 | 0.422 | 0.441 | 0.395 | 0.240 | 0.172 | |
| Persona Tree | 0.497 | 0.169 | 0.235 | 0.059 | 0.414 | 0.416 | 0.386 | 0.236 | 0.189 | |
| BehaviorMem (ours) | 0.612 | 0.110 | 0.223 | 0.024 | 0.443 | 0.459 | 0.416 | 0.227 | 0.164 | |
| Qwen3.6-35B-A3B | A-Mem | 0.543 | 0.124 | 0.271 | 0.037 | 0.424 | 0.437 | 0.404 | 0.240 | 0.166 |
| Mem0 | 0.486 | 0.127 | 0.337 | 0.044 | 0.402 | 0.412 | 0.382 | 0.266 | 0.171 | |
| LightMem | 0.581 | 0.115 | 0.247 | 0.031 | 0.416 | 0.431 | 0.393 | 0.240 | 0.169 | |
| Persona Tree | 0.543 | 0.134 | 0.239 | 0.048 | 0.436 | 0.451 | 0.412 | 0.237 | 0.160 | |
| BehaviorMem (ours) | 0.611 | 0.110 | 0.222 | 0.022 | 0.442 | 0.453 | 0.418 | 0.228 | 0.163 | |
| Task reader: Qwen3.7-Plus | ||||||||||
| Non-parametric | Long Context | 0.694 | 0.068 | 0.226 | 0.017 | 0.484 | 0.531 | 0.419 | 0.217 | 0.152 |
| Frequency Profile | 0.652 | 0.057 | 0.317 | 0.011 | 0.441 | 0.474 | 0.398 | 0.221 | 0.172 | |
| Template Profile | 0.616 | 0.093 | 0.268 | 0.016 | 0.441 | 0.459 | 0.412 | 0.218 | 0.176 | |
| Qwen3-32B | A-Mem | 0.565 | 0.101 | 0.292 | 0.025 | 0.462 | 0.472 | 0.425 | 0.221 | 0.166 |
| Mem0 | 0.444 | 0.153 | 0.296 | 0.095 | 0.421 | 0.424 | 0.392 | 0.226 | 0.182 | |
| LightMem | 0.646 | 0.082 | 0.246 | 0.032 | 0.476 | 0.499 | 0.430 | 0.217 | 0.156 | |
| Persona Tree | 0.522 | 0.129 | 0.262 | 0.063 | 0.429 | 0.432 | 0.410 | 0.215 | 0.177 | |
| BehaviorMem (ours) | 0.650 | 0.070 | 0.274 | 0.017 | 0.483 | 0.488 | 0.447 | 0.208 | 0.158 | |
| Qwen3.6-35B-A3B | A-Mem | 0.578 | 0.089 | 0.310 | 0.032 | 0.451 | 0.468 | 0.429 | 0.224 | 0.164 |
| Mem0 | 0.502 | 0.095 | 0.392 | 0.035 | 0.421 | 0.446 | 0.386 | 0.260 | 0.161 | |
| LightMem | 0.635 | 0.067 | 0.293 | 0.024 | 0.460 | 0.484 | 0.413 | 0.230 | 0.157 | |
| Persona Tree | 0.575 | 0.101 | 0.273 | 0.057 | 0.450 | 0.475 | 0.419 | 0.225 | 0.163 | |
| BehaviorMem (ours) | 0.646 | 0.072 | 0.276 | 0.029 | 0.475 | 0.481 | 0.445 | 0.203 | 0.162 | |
observations; stage-specific paths may become Dormant and reactivate with new support. Dormancy hides content from readout while preserving it and its evidence; Appendix B.4 details the maintenance rules.
4.4 Memory Readout
Deterministic projections and expose explicit facts and Active Claims with temporal scope:
Readout is query-independent and model-free; Dormant content remains internal, and downstream queries, candidates, and labels do not influence construction or projection. The rendering procedure is specified in Appendix B.5.
5 Experiments
5.1 Experimental Setup
Dataset. We use BehaviorMemBench as the primary benchmark to evaluate remembering and inference independently of specific downstream tasks. Its construction and statistics are detailed in Appendix A. To cross-check the effectiveness of memory methods on downstream tasks, we evaluate them on the public MemoryCD benchmark in Section 5.5.
Baselines. We include statistical methods to assess what raw behavioral records and simple summaries can support, general-purpose agentic memories to examine whether generic memory mechanisms transfer to behavioral streams, and personal agentic memory to compare designs tailored to user modeling. Implementation details are given in Appendix C.2.
- Statistical methods. Frequency Profile ranks categories by engagement and recency, and Template Profile renders behavioral aggregates in a fixed template. Long Context serves as a raw-history control by retaining recent interactions.
- General-purpose agentic memories. A-Mem [40] organizes linked memory notes, Mem0 [5] maintains extracted facts, and LightMem [7] stores compact long-term entries.
- Personal agentic memory. Persona Tree [45] maintains a hierarchical persona representation.
Implementation and evaluation. Methods process history chronologically and expose query-independent readouts. Agentic builders use Qwen3-32B [41] or Qwen3.6-35B-A3B [23]; Qwen3-32B and Qwen3.7-Plus [24] task readers evaluate the outputs using shared candidate pools and prompts within each reader setting.
5.2 Overall Results
Table 2 groups results by task reader and memory builder.
(a)

(b)

Figure 3: BehaviorMem readout ablations with a Qwen3-32B builder/reader: (a) remember-pool and infer-pool recall; (b) related and new recall. Stars mark Full; arrows indicate masking effects.
BehaviorMem A-Mem LightMem
Persona Tree Mem0
Q32 builder --- Q36 builder
(a)

(b)
Figure 4: Recall by user activity under a Qwen3-32B task reader, with Qwen3-32B (solid) and Qwen3.6-35B-A3B (dashed) builders: (a) remember-pool recall; (b) infer-pool recall.
Remembering and inference favor different memory representations. The two pools reveal different method rankings. With the Qwen3-32B builder and task reader, LightMem achieves higher remember-pool recall than A-Mem, whereas A-Mem achieves higher infer-pool recall. Thus, remembering established interests more effectively does not necessarily translate into better anticipation of future categories beyond the observed history. Evaluating both pools exposes differences that either recall measure alone would miss.
BehaviorMem leads agentic memories in remembering and inference. Although individual agentic baselines approach BehaviorMem's performance in particular configurations, BehaviorMem consistently achieves the highest remember-pool and infer-pool recall across all four builder-reader configurations. Its key advantage is this joint performance: the same maintained memory keeps established interests available while supporting interest judgments beyond well-observed domains. This combination makes BehaviorMem well suited to task-independent personalization, where accumulated user knowledge must remain useful across changing contexts and prediction targets.
Raw history and statistical memories remain strong controls. Long Context and Frequency Profile remain competitive, particularly for remembering established interests. Their performance highlights the continued value of raw behavioral history and simple statistical summaries as strong baselines for behavioral user memory.
Results across builders and readers. Recall patterns vary across builders, while BehaviorMem's recalls remain close within each reader setting. BehaviorMem leads the evaluated agentic memories on both recall measures under both task readers.
5.3 Ablation
We examine how different memory components support remembering and inference. Figure 3 compares the Full readout with variants that separately mask explicit behavioral facts, implicit user characteristics, T1/T2 Claims, or T3/T4 Claims. Complete results appear in Table 4 in Appendix C.
Explicit memory and T3/T4 Claims support remembering. Removing explicit memory reduces remember-pool recall from 0.612 to 0.529, the largest decline among the masks. Removing implicit memory yields a smaller decline to 0.602; masking T3/T4 also has a greater effect than masking T1/T2. Explicit evidence is therefore the main basis for remembering in this readout, with inferred interests and situational needs providing complementary support.

Figure 5: Recall by target familiarity. Builder/reader: (a) Qwen3-32B/Qwen3-32B; (b) Qwen3-32B/Qwen3.7-Plus; (c) Qwen3.6-35B-A3B/Qwen3-32B; (d) Qwen3.6-35B-A3B/Qwen3.7-Plus. Dotted lines mark BehaviorMem.
Implicit memory supports inference, particularly through T1/T2. Removing implicit memory reduces infer-pool recall from 0.443 to 0.432; among Claim-type masks, removing T1/T2 has a greater effect than removing T3/T4. This suggests that demographic and social characteristics provide useful transferable cues in this configuration. The contribution is not uniform across tiers: masking T3/T4 raises new recall from 0.416 to 0.423, despite reducing remember-pool recall. The two objectives and their subgroups therefore expose different effects of the same memory content.
5.4 Discussion
Overall averages can hide differences across users and targets. We therefore examine performance by breakdown users:
User activity. Figure 4 groups users by total batch count, a proxy for activity, and compares both builders under a Qwen3-32B task reader. For the Qwen3-32B builder, remember-pool recall is highest in the least-active group across all five agentic methods, while infer-pool recall does not improve consistently with activity. BehaviorMem's remember-pool recall exceeds A-Mem's in every group; their infer-pool recalls are close, with A-Mem slightly ahead in the two most-active groups. Activity thus reveals variation in relative support for inference that overall rankings can obscure.
Target familiarity. Figure 5 compares both builders under both readers. Frequency Profile is competitive on seen categories but trails other methods on unseen categories within familiar domains. Its strength in recovering repeated interests does not extend uniformly to new categories. Under the Plus reader, Long Context leads on related targets, whereas BehaviorMem leads on new targets. These rankings suggest complementary value in preserving behavioral detail and forming reusable user characteristics.
Downstream use of memory depends on its capabilities and is constrained by readout token length. Besides predictive performance, we also examine the memory input required by task readers. BehaviorMem averages 2,018 tokens with Qwen3-32B and 1,850 with Qwen3.6-35B-A3B. Long Context averages 7,338 tokens, and LightMem averages 7,084 and 6,812 for the two builders. BehaviorMem thus uses over 70% fewer memory tokens than either method. Together with its leading recalls among agentic memories, these results show that BehaviorMem supports both capabilities.
Table 3: MemoryCD results under a Qwen3.6-35B-A3B task reader, with both memory builders.
| Memory | Single-domain | Cross-domain | ||||||
|---|---|---|---|---|---|---|---|---|
| HR@10 ↑ | N@10 ↑ | MAE ↓ | RMSE ↓ | HR@10 ↑ | N@10 ↑ | MAE ↓ | RMSE ↓ | |
| Non-parametric memories | ||||||||
| Long Context | 0.567 | 0.309 | 0.485 | 0.880 | 0.483 | 0.218 | 0.512 | 0.843 |
| Frequency Profile | 0.526 | 0.253 | 0.893 | 1.279 | 0.497 | 0.235 | 1.634 | 1.832 |
| Template Profile | 0.556 | 0.295 | 0.803 | 1.146 | 0.512 | 0.248 | 1.463 | 1.659 |
| Builder: Qwen3-32B | ||||||||
| Mem0 | 0.515 | 0.255 | 0.768 | 1.162 | 0.476 | 0.204 | 1.198 | 1.603 |
| A-Mem | 0.604 | 0.341 | 0.726 | 1.134 | 0.524 | 0.252 | 1.047 | 1.311 |
| Persona Tree | 0.590 | 0.331 | 0.719 | 1.109 | 0.548 | 0.254 | 0.938 | 1.237 |
| LightMem | 0.576 | 0.335 | 0.586 | 0.989 | 0.508 | 0.234 | 0.678 | 1.001 |
| BehaviorMem | 0.616 | 0.351 | 0.650 | 1.046 | 0.563 | 0.280 | 0.756 | 1.039 |
| Builder: Qwen3.6-35B-A3B | ||||||||
| Mem0 | 0.517 | 0.257 | 0.785 | 1.170 | 0.470 | 0.200 | 1.224 | 1.609 |
| A-Mem | 0.586 | 0.332 | 0.778 | 1.172 | 0.537 | 0.253 | 0.902 | 1.180 |
| Persona Tree | 0.582 | 0.326 | 0.800 | 1.195 | 0.511 | 0.240 | 0.923 | 1.214 |
| LightMem | 0.565 | 0.318 | 0.629 | 1.016 | 0.521 | 0.234 | 0.778 | 1.067 |
| BehaviorMem | 0.610 | 0.355 | 0.731 | 1.100 | 0.544 | 0.271 | 0.820 | 1.091 |
through compact readouts, reducing the amount of memory text supplied to downstream task readers.
5.5 Validation on Public Dataset
Setup. We further evaluate on MemoryCD [44], built from Amazon Reviews 2023. Single-domain evaluation covers Beauty, Books, Electronics, and Home and Kitchen; cross-domain evaluation builds memory from the first three domains and tests on Home and Kitchen for a 323-user cohort. We use the baseline families in Section 5.1. Table 3 reports both memory builders under a Qwen3.6-35B-A3B reader on four metrics. Implementation details and evaluation conventions appear in Appendix D.
Item ranking. BehaviorMem achieves the highest HR@10 and NDCG@10 across both builders and domain settings under the Qwen3.6-35B-A3B reader, outperforming both agentic memories and non-parametric baselines. For the Qwen3-32B builder, its cross-domain scores reach 0.563 and 0.280, respectively, compared with 0.548 and 0.254 for Persona Tree, the strongest competitor in this setting. The gains in both metrics indicate improvements in placing relevant items within the top ten and ranking them highly. The cross-domain results further support the usefulness of the maintained user representation when the target domain differs from the domains used for memory construction.
Rating prediction. Under this reader, BehaviorMem ranks second among agentic memories on both MAE and RMSE across both builders and domain settings, consistently improving on A-Mem, Mem0, and Persona Tree. LightMem has the lowest errors among agentic memories, while Long Context remains best overall. Ranking requires distinguishing preferred items within a candidate set, whereas rating prediction additionally requires matching the user's numerical rating scale. The differing method rankings show that accurate preference ordering and rating calibration place complementary demands on user memory, motivating evaluation across both downstream tasks.
6 Conclusion
We study user memory from real, continual e-commerce behavioral logs, where preserving observed choices provides the foundation for inferring the preferences and needs behind them. This setting calls for joint support for remembering and inference: keeping established user information available and making behavioral evidence useful beyond well-observed product domains. We introduce BehaviorMemBench to assess these capabilities separately through automatically derived future-behavior labels and a common, task-independent protocol. We also propose BehaviorMem, which jointly maintains behavioral facts and revisable user characteristics through a two-axis state, evidence-grounded abstraction, continual maintenance, and query-independent readout. Across two builders and two task readers, BehaviorMem leads evaluated agentic memories on both recalls. Ablations show complementary roles for observed facts and inferred characteristics, while statistical baselines remain competitive. Validation on a public dataset further supports its downstream utility.
7 Related Work
Memory for LLM Agents. Memory enables LLM agents to move beyond stateless interactions by retaining and reusing past information to support reasoning and adaptation. Early studies represent memory as natural-language records of experience and manage them across hierarchical tiers [14, 20, 21]. Later research distills interactions into structured entries and exposes relations among them [5, 10, 38, 40]. Among recent efforts, entries are consolidated by shared topic and linked through multiple types of relations [7, 13, 18, 29, 31, 33]. Together, these advances give agents symbolic structure and scalable access, all grounded in explicit interactions such as conversations. BehaviorMem, in contrast, builds memory from implicit behavioral records such as purchases and clicks, which are noisier and less self-descriptive.
User Modeling in E-commerce. User modeling supports personalized search and recommendation in e-commerce by capturing shoppers' preferences from their behavioral histories. Traditional methods encode behavior sequences into latent user representations through attention-based interest modeling over historical actions [3, 9, 15, 16, 22, 30, 42, 46, 48, 49]. Recent LLM-based approaches instead express user preferences in language and preserve this understanding as user memory for subsequent interactions. Some approaches construct user memory by distilling diverse behavioral patterns into natural-language descriptions of users' multiple interests [6, 25, 26, 28, 34, 36], while others revise it through interaction feedback and collaborative signals across users [1, 4, 17, 43]. Beyond this, BehaviorMem combines structured organization of user inferences and their supporting events with temporal management of memory revision and current availability.
Evaluation of User Memory. User memory evaluation examines what memory retains and how well it supports an understanding of the user. Existing benchmarks test recall and reasoning over long-term interactions [2, 19, 32, 37] and memory processing under incremental information streams [11]. User-focused evaluations assess evolving profiles inferred from synthetic activity logs [12, 39], personalized task performance [27], and the alignment of inferred interests with user engagement [8]. StreamProfileBench uses future user-authored content to label interests in streaming evaluation, distinguishing historically seen from newly appearing interests [35]. Building on these directions, BehaviorMemBench combines continual memory construction from real-world implicit behaviors with automatically derived labels from future transaction categories. Its history-aware candidate pools provide separate operational measures of remembering and interest inference.
Reproducibility and Ethics Statement
The use of behavioral data was authorized by the platform and underwent privacy and ethics review. BehaviorMemBench primarily contains item information and interaction records, without direct user profile information, and will be publicly released after data processing and review. Section 5.1 specifies baselines and model assignments; Appendices A.3, B, C, and D document construction details, abridged prompts, baseline adaptations, and evaluation protocols.
Acknowledgment
This work was supported by Alibaba Group through Alibaba Innovative Research Program.
References
[1] Seunghwan Bang and Hwanjun Song. 2026. LLM-based User Profile Management for Recommender System. arXiv:2502.14541 [cs.CL] https://arxiv.org/abs/2502.14541
[2] Haonan Bian, Zhiyuan Yao, Sen Hu, Zishan Xu, Shaolei Zhang, Yifu Guo, Ziliang Yang, Xueran Han, Huacan Wang, and Ronghao Chen. 2026. RealMem: Benchmarking LLMs in Real-World Memory-Driven Interaction. arXiv:2601.06966 [cs.CL] https://arxiv.org/abs/2601.06966
[3] Yukuo Cen, Jianwei Zhang, Xu Zou, Chang Zhou, Hongxia Yang, and Jie Tang. 2020. Controllable Multi-Interest Framework for Recommendation. arXiv:2005.09347 [cs.IR] https://arxiv.org/abs/2005.09347
[4] Weixin Chen, Yuhan Zhao, Jingyuan Huang, Zihe Ye, Clark Mingxuan Ju, Tong Zhao, Neil Shah, Li Chen, and Yongfeng Zhang. 2026. MemRec: Collaborative Memory-Augmented Agentic Recommender System. arXiv:2601.08816 [cs.IR] https://arxiv.org/abs/2601.08816
[5] Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. 2025. Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory. arXiv:2504.19413 [cs.CL] https://arxiv.org/abs/2504.19413
[6] Nayoung Choi, Haeyu Jeong, Changbong Kim, Hongjun Lim, and Jinho D. Choi. 2026. Hierarchical Multi-Persona Induction from User Behavioral Logs: Learning
Evidence-Grounded and Truthful Personas. arXiv:2604.26120 [cs.AI] https://arxiv.org/abs/2604.26120
[7] Jizhan Fang, Xinle Deng, Haoming Xu, Ziyan Jiang, Yuqi Tang, Ziwen Xu, Shumin Deng, Yunzhi Yao, Mengru Wang, Shuofei Qiao, Huajun Chen, and Ningyu Zhang. 2026. LightMem: Lightweight and Efficient Memory-Augmented Generation. arXiv:2510.18866 [cs.CL] https://arxiv.org/abs/2510.18866
[8] Iordanis Fostiroopoulos, Muhammad Rafay Azhar, Abdalaziz Sawwan, Boyu Fang, Yuchen Liu, Jiayi Liu, Hanchao Yu, Qi Guo, Jianyu Wang, Fei Liu, and Xiangjun Fan. 2026. GISTBench: Evaluating LLM User Understanding via Evidence-Based Interest Verification. arXiv:2603.29112 [cs.AI] https://arxiv.org/abs/2603.29112
[9] Balázs Hidasi, Alexandros Karatzoglou, Linas Baltrunas, and Domonkos Tikk. 2016. Session-based Recommendations with Recurrent Neural Networks. arXiv:1511.06939 [cs.LG] https://arxiv.org/abs/1511.06939
[10] Chuanrui Hu, Xingze Gao, Zuyi Zhou, Dannong Xu, Yi Bai, Xintong Li, Hui Zhang, Tong Li, Chong Zhang, Lidong Bing, and Yafeng Deng. 2026. EverMemOS: A Self-Organizing Memory Operating System for Structured Long-Horizon Reasoning. arXiv:2601.02163 [cs.AI] https://arxiv.org/abs/2601.02163
[11] Yuanzhe Hu, Yu Wang, and Julian McAuley. 2026. Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions. arXiv:2507.05257 [cs.CL] https://arxiv.org/abs/2507.05257
[12] Bowen Jiang, Zhuoqun Hao, Young-Min Cho, Bryan Li, Yuan Yuan, Sihao Chen, Lyle Ungar, Camillo J. Taylor, and Dan Roth. 2025. Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scale. arXiv:2504.14225 [cs.CL] https://arxiv.org/abs/2504.14225
[13] Dongming Jiang, Yi Li, Guanpeng Li, and Bingzhe Li. 2026. MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agents. arXiv:2601.03236 [cs.AI] https://arxiv.org/abs/2601.03236
[14] Jiazheng Kang, Mingming Ji, Zhe Zhao, and Ting Bai. 2025. Memory OS of AI Agent. arXiv:2506.06326 [cs.AI] https://arxiv.org/abs/2506.06326
[15] Wang-Cheng Kang and Julian McAuley. 2018. Self-Attentive Sequential Recommendation. arXiv:1808.09781 [cs.IR] https://arxiv.org/abs/1808.09781
[16] Chao Li, Zhiyuan Liu, Mengmeng Wu, Yuchi Xu, Pipei Huang, Huan Zhao, Guoliang Kang, Qiwei Chen, Wei Li, and Dik Lun Lee. 2019. Multi-Interest Network with Dynamic Routing for Recommendation at Tmall. arXiv:1904.08030 [cs.IR] https://arxiv.org/abs/1904.08030
[17] Yuxin Liao, Le Wu, Min Hou, Yu Wang, Han Wu, and Meng Wang. 2026. From Atom to Community: Structured and Evolving Agent Memory for User Behavior Modeling. arXiv:2601.16872 [cs.IR] https://arxiv.org/abs/2601.16872
[18] Jiaqi Liu, Yaofeng Su, Peng Xia, Siwei Han, Zeyu Zheng, Cihang Xie, Mingyu Ding, and Huaxiu Yao. 2026. SimpleMem: Efficient Lifelong Memory for LLM Agents. arXiv:2601.02553 [cs.AI] https://arxiv.org/abs/2601.02553
[19] Adyasha Maharana, Dong-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang. 2024. Evaluating Very Long-Term Conversational Memory of LLM Agents. arXiv:2402.17753 [cs.CL] https://arxiv.org/abs/2402.17753
[20] Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. 2024. MemGPT: Towards LLMs as Operating Systems. arXiv:2310.08560 [cs.AI] https://arxiv.org/abs/2310.08560
[21] Joon Sung Park, Joseph C. O'Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. 2023. Generative Agents: Interactive Simulacra of Human Behavior. arXiv:2304.03442 [cs.HC] https://arxiv.org/abs/2304.03442
[22] Pi Qi, Xiaoqiang Zhu, Guorui Zhou, Yujing Zhang, Zhe Wang, Lejian Ren, Ying Fan, and Kun Gai. 2020. Search-based User Interest Modeling with Lifelong Sequential Behavior Data for Click-Through Rate Prediction. arXiv:2006.05639 [cs.IR] https://arxiv.org/abs/2006.05639
[23] Qwen Team. 2026. Qwen3.6-35B-A3B: Agentic Coding Power, Now Open to All. https://qwen.ai/blog?id=qwen3.6-35b-a3b
[24] Qwen Team. 2026. Qwen3.7-Plus: Multimodal Agent Intelligence. https://qwen.ai/blog?id=qwen3.7-plus
[25] Jerome Ramos, Hossen A. Rahmani, Xi Wang, Xiao Fu, and Aldo Lipani. 2024. Transparent and Scrutable Recommendations Using Natural Language User Profiles. arXiv:2402.05810 [cs.IR] https://arxiv.org/abs/2402.05810
[26] Milad Sabouri, Masoud Mansoury, Kun Lin, and Bamshad Mobasher. 2025. Towards Explainable Temporal User Profiling with LLMs. arXiv:2505.00886 [cs.IR] https://arxiv.org/abs/2505.00886
[27] Alireza Salemi, Sheshera Mysore, Michael Bendersky, and Hamed Zamani. 2024. LaMP: When Large Language Models Meet Personalization. arXiv:2304.11406 [cs.CL] https://arxiv.org/abs/2304.11406
[28] Yunxiao Shi, Wujiang Xu, Zeqi Zhang, Xing Zi, Qiang Wu, and Min Xu. 2025. PersonaX: A Recommendation Agent Oriented User Modeling Framework for Long Behavior Sequence. arXiv:2503.02398 [cs.IR] https://arxiv.org/abs/2503.02398
[29] Miao Su, Yucan Guo, Zhongni Hou, Long Bai, Zixuan Li, Yufei Zhang, Guojun Yin, Wei Lin, Xiaolong Jin, Jiafeng Guo, and Xueqi Cheng. 2026. Beyond Dialogue Time: Temporal Semantic Memory for Personalized LLM Agents. arXiv:2601.07468 [cs.AI] https://arxiv.org/abs/2601.07468
[30] Fei Sun, Jun Liu, Jian Wu, Changhua Pei, Xiao Lin, Wenwu Ou, and Peng Jiang. 2019. BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer. arXiv:1904.06690 [cs.IR] https://arxiv.org/abs/1904.06690
[31] Haoran Sun, Zekun Zhang, and Shaoning Zeng. 2025. Preference-Aware Memory Update for Long-Term LLM Agents. arXiv:2510.09720 [cs.CL] https://arxiv.org/abs/2510.09720
[32] Haoran Tan, Zeyu Zhang, Chen Ma, Xu Chen, Quanyu Dai, and Zhenhua Dong. 2025. MemBench: Towards More Comprehensive Evaluation on the Memory of LLM-based Agents. arXiv:2506.21605 [cs.CL] https://arxiv.org/abs/2506.21605
[33] Zhen Tan, Jun Yan, I-Hung Hsu, Rujun Han, Zifeng Wang, Long T. Le, Yiwen Song, Yanfei Chen, Hamid Palangi, George Lee, Anand Iyer, Tianlong Chen, Huan Liu, Chen-Yu Lee, and Tomas Pfister. 2025. In Prospect and Retrospect: Reflective Memory Management for Long-term Personalized Dialogue Agents. arXiv:2503.08026 [cs.CL] https://arxiv.org/abs/2503.08026
[34] Lu Wang, Di Zhang, Fangkai Yang, Pu Zhao, Jianfeng Liu, Yuefeng Zhan, Hao Sun, Qingwei Lin, Weiwei Deng, Dongmei Zhang, Feng Sun, and Qi Zhang. 2025. LettinGo: Explore User Profile Generation for Recommendation System. arXiv:2506.18309 [cs.IR] https://arxiv.org/abs/2506.18309
[35] Sizhe Wang, Feiyu Duan, Juelin Wang, Liwen Zhang, and Zhongyu Wei. 2026. StreamProfileBench: A Benchmark for Fine-Grained User Profile Inference in Real-World Streaming Scenarios. arXiv:2605.25758 [cs.CL] https://arxiv.org/abs/2605.25758
[36] Wilson Wongso, Hao Xue, and Flora D. Salim. 2025. GenUP: Generative User Profilers as In-Context Learners for Next POI Recommender Systems. arXiv:2410.20643 [cs.IR] https://arxiv.org/abs/2410.20643
[37] Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai-Wei Chang, and Dong Yu. 2025. LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. arXiv:2410.10813 [cs.CL] https://arxiv.org/abs/2410.10813
[38] Menglin Xia, Xuchao Zhang, Shantanu Dixit, Paramaguru Harimurugan, Rujia Wang, Victor Ruhle, Robert Sim, Chetan Bansal, and Saravan Rajmohan. 2026. Memora: A Harmonic Memory Representation Balancing Abstraction and Specificity. arXiv:2602.03315 [cs.AI] https://arxiv.org/abs/2602.03315
[39] Wenya Xie, Shengming Zhou, Zelin Li, Pouya Parsa, Shuang Zhou, Xinheng Ding, Chinmay Arvind, Guanchu Wang, Vladimir Braverman, Ali Payani, Yantao Zheng, and Zirui Liu. 2026. DynamicMem: A Long-Horizon Memory Benchmark in Real-World Settings. arXiv:2606.22877 [cs.CL] https://arxiv.org/abs/2606.22877
[40] Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. 2025. A-MEM: Agentic Memory for LLM Agents. arXiv:2502.12110 [cs.CL] https://arxiv.org/abs/2502.12110
[41] An Yang, Anfeng Li, Baosong Yang, et al. 2025. Qwen3 Technical Report. arXiv preprint arXiv:2505.09388 (2025). doi:10.48550/arXiv.2505.09388
[42] Zeping Yu, Jianxun Lian, Ahmad Mahmoody, Gongshen Liu, and Xing Xie. 2019. Adaptive User Modeling with Long and Short-Term Preferences for Personalized Recommendation. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19. International Joint Conferences on Artificial Intelligence Organization, 4213–4219. doi:10.24963/ijcai.2019/585
[43] Junjie Zhang, Yupeng Hou, Ruobing Xie, Wenqi Sun, Julian McAuley, Wayne Xin Zhao, Leyu Lin, and Ji-Rong Wen. 2023. AgentCF: Collaborative Learning with Autonomous Language Agents for Recommender Systems. arXiv:2310.09233 [cs.IR] https://arxiv.org/abs/2310.09233
[44] Weizhi Zhang, Xiaokai Wei, Wei-Chieh Huang, Zheng Hui, Chen Wang, Michelle Gong, and Philip S. Yu. 2026. MemoryCD: Benchmarking Long-Context User Memory of LLM Agents for Lifelong Cross-Domain Personalization. arXiv:2603.25973 [cs.CL] https://arxiv.org/abs/2603.25973
[45] Jihao Zhao, Ding Chen, Zhaoxin Fan, Kerun Xu, Mengting Hu, Bo Tang, Feiyu Xiong, and Zhiyu Li. 2026. Inside Out: Evolving User-Centric Core Memory Trees for Long-Term Personalized Dialogue Systems. arXiv:2601.05171 [cs.CL] doi:10.48550/arXiv.2601.05171
[46] Yu Zheng, Chen Gao, Jianxin Chang, Yanan Niu, Yang Song, Depeng Jin, and Yong Li. 2022. Disentangling Long and Short-Term Interests for Recommendation. arXiv:2202.13090 [cs.IR] doi:10.1145/3485447.3512098
[47] Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. 2024. MemoryBank: Enhancing Large Language Models with Long-Term Memory. Proceedings of the AAAI Conference on Artificial Intelligence 38, 17 (2024), 19724–19731. doi:10.1609/aaai.v38i17.29946
[48] Guorui Zhou, Na Mou, Ying Fan, Qi Pi, Weijie Bian, Chang Zhou, Xiaoqiang Zhu, and Kun Gai. 2018. Deep Interest Evolution Network for Click-Through Rate Prediction. arXiv:1809.03672 [stat.ML] https://arxiv.org/abs/1809.03672
[49] Guorui Zhou, Chengru Song, Xiaoqiang Zhu, Ying Fan, Han Zhu, Xiao Ma, Yanghui Yan, Junqi Jin, Han Li, and Kun Gai. 2018. Deep Interest Network for Click-Through Rate Prediction. arXiv:1706.06978 [stat.ML] https://arxiv.org/abs/1706.06978
A BehaviorMemBench Details
A.1 Data Collection Pipeline
Data processing produces observations independently of evaluation targets. Evaluation construction then labels each history-to-future transition; memory construction and readout never access its candidates.
A.1.1 Part I: Data processing. Taobao interaction logs span 2023-02-03 to 2026-06-23. Of 2,000 randomly sampled users, 1,194 have at least 50 valid visits. Events contain timestamps, actions, item text, category paths, brand, shop, price, and product attributes.
Consecutive same-item events with gaps of at most 30 minutes merge into one visit; remains three visits. Metadata comes from the first event. Four counters retain entry clicks, detailed browsing (14 action types), favorites/cart actions (6 types, including buy-now intent), and completed purchases. Cart removals, favorite cancellations, and refunds are dropped rather than subtracted.
A batch becomes eligible at 50 visits or 120 days from its first visit and closes at the next inter-visit gap exceeding 15 minutes. This balances sparse and active users without splitting an ongoing session.
A.1.2 Part II: Evaluation construction. Prediction uses normalized L2 categories within the L1–L2–leaf taxonomy; placeholder and unsuitable categories are removed. Next-batch favorites, cart actions, purchases, or qualifying deep browsing supply positives; shallow clicks alone do not.
Pool assignment depends only on preceding history. Remember positives are seen categories or unseen categories within frequently visited L1 domains. Infer positives are unseen categories in lightly observed domains (related), or in unvisited domains linked to history by a fixed semantic group (new). Unsupported categories are excluded.
Distractors match the pool’s historical relation. Remember uses unseen siblings under positive L1 domains (cluster), seen categories under other domains (history), and eligible random fill. Infer uses unseen siblings anchored to historical interests in lightly observed domains (history-conditioned) and random fill; new-domain distractors have unvisited L1 domains in semantic groups represented in history.
All distractors exclude every category in the next batch and are deduplicated; infer distractors also exclude seen categories. Each retained positive requires three legal distractors. Infeasible groups are trimmed from their deterministic tail until this ratio holds. Pools are constructed once with deterministic randomness, shuffled, and frozen across methods and readers.
A.2 Benchmark Statistics
The corpus contains 913,271 visits, 17,462 batches, and 16,268 transitions, spanning 2,119 L2 categories in 161 L1 domains; the normalized taxonomy contains 4,667 L2 categories. Median visits per user, batches per user, visits per batch, and batch duration are 736, 14, 52, and 14 days. Batch duration is available for 17,440 batches. Activity varies substantially: 101 users have at most three batches and 501 have at least 16. Full distributions are in the repository.
A.3 Readout and Task-Reader Protocol
Methods in each reader block share candidate pools, prompts, and decoding settings. Fixed readouts fill common description/tree slots, with fixed placeholders for unused slots. Remember and infer use separate calls on the same state. Candidates show zero-based indices, L2 names, and shared short annotations; method identity, labels, and L1 parents are hidden.
Empty positive pools are skipped. The following task-reader template is translated from Chinese; the same selection format is used for both pools.
You are a user-profile analysis system. Based on the user profile, select the categories that best match the user's interests. Use only the profile description and profile tree.
Profile description: {description}
Profile tree: {tree}
Candidate pool B ({pool_size} candidates)
{pool} select {n} Output format:
Selection
Pool B: 0,2,4
- Indices start from 0
- Select {n} from pool B
- Separate the indices with commas; do not explain
The nine metrics follow Section 3.3. Exposure normalizes selected distractors by family size. Each metric skips empty denominators, averages valid transitions within users and then across users, excluding users without valid transitions. Cohorts are defined per reader; each builder-reader configuration uses common valid transitions.
B BehaviorMem Implementation Details
B.1 Per-Batch Execution
F1 renders behavior; F2 derives candidate Claims; F3 places them; F4 updates state; F5 projects readout. T1/T2 use closed slots and T3/T4 use open Claims, merging into one tree before F5. An independent append-only visit ledger records F1 facts and never enters the Claim tree or upstream model prompts.
B.2 State Representation
Explicit long-term memory aggregates categories, brands, attributes, and engagement with recency decay; short-term memory retains item activity from the latest three batches. Implicit types are demographics (T1), social relations (T2), interests (T3), and situational state (T4), organized by type–domain–attribute paths.
T1/T2 use fixed registry paths with at most one current value; T3/T4 reuse or create paths and allow multiple Claims. Products, brands, values, and assertions cannot name paths. Claims store text, confidence from 1 to 5, and first-seen/last-confirmed endpoints with dates, key facts, and visit references. T1/T2 are continuous and bypass Dormancy; T4 is non-continuous. Continuous T3 Claims represent longer-term tendencies; non-continuous T3/T4 Claims represent stage-specific needs. Dormant Claims remain stored but hidden from readout.
B.3 Formation: The Evidence-Distance Ladder
Formation follows behavior → recurring commonality → attended theme → reusable characteristic → demographic/social attribute. A shared call derives the first two abstraction levels. Two arms then use the same themes: T3/T4 stop at a free-text characteristic; T1/T2 continue to a value copied from a closed candidate set. Each level uses only the immediately preceding level as evidence. Stored terminals retain behavioral references, not a materialized parent chain.
The following abridged formation prompt is translated from Chinese; D0–D3 denote the four abstraction levels above.
You are an e-commerce behavioral inference system.
Shared stage
Input: {behavior log} Derive D0 behavioral commonalities from observed events only, preserving Visit references and merging repeated behavior toward the same object or theme. Derive D1 objects or themes of attention from D0 only.
T1/T2 arm
Input: {D1}, {closed-set registry} Derive D2 from D1 only, then copy one allowed D3 value verbatim.
T3/T4 arm
Input: {D1}, {open registry} Derive a reusable free-text D2 characteristic from D1 only. Do not introduce behavior absent from the preceding level.
T1/T2 already have registry paths. The following abridged placement prompt applies only to T3/T4.
You are a user-memory placement system. Input: {current T3/T4 registry}, {T3/T4 candidate Claims} Perform placement only. For every candidate, select exactly one type, domain, and attribute, preferring an existing path whenever it fits. Do not add, delete, split, merge, or rewrite candidates. Do not alter Claim, confidence, or evidence. Return one decision for every input index.
B.4 Maintenance
T1/T2 use deterministic updates. A repeated value takes the higher of the existing and incoming confidence scores and advances confirmation; a conflicting value replaces it only with strictly higher confidence. An existing value at the confidence ceiling of 5 is therefore retained under this rule. Coupled slots compare their strongest confidence and retain unmentioned values only if consistent. Deterministic constraints remove invalid existence/count, partner, life-stage, and occupation combinations.
T3/T4 operate within one path: KEEP preserves, ADD accepts a distinct Claim, UPDATE revises the same characteristic, and RETIRE requires direct contradiction. The abridged instruction accounts for each input exactly once and forbids cross-path merging; evidence endpoints are recomputed from validated sources. Invalid responses fall back to keeping old and appending new Claims.
Unobserved continuous paths remain Active; non-continuous paths may become Dormant and reactivate with renewed support. Sustained absence can trigger T3 continuity review. The availability instruction treats absence as insufficient counter-evidence and defaults to keeping a path Active when uncertain.
The abridged maintenance prompts below are translated from Chinese and apply only to T3/T4.
Table 4: BehaviorMemBench readout ablations with a Qwen3-32B builder and task reader.
| Configuration | Remember pool | Infer pool | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Recall ↑ | Exposure ↓ | Recall ↑ | Exposure ↓ | ||||||
| Full BehaviorMem | |||||||||
| w/o Explicit Memory | |||||||||
| w/o Implicit Memory | |||||||||
| w/o T1/T2 Claims | |||||||||
| w/o T3/T4 Claims | |||||||||
T3/T4 Claim maintenance
Input: {previous Claims}, {current Claims}, grouped by path Process each path independently. KEEP or ADD distinct characteristics, UPDATE only the same characteristic, and RETIRE only under direct contradiction. Account for every input Claim exactly once; never merge across paths or output evidence.
Continuity
Label a new path continuous if it should remain valid without repeated observation; label current needs and finite tasks non-continuous.
Dormancy
For an unobserved non-continuous path, choose KEEP_ACTIVE or MOVE_DORMANT. Absence alone is not counter-evidence; uncertainty defaults to KEEP_ACTIVE.
B.5 Readout
F5 deterministically emits Active Claim text, confidence, and stable/stage-specific scope. Separately, it ranks ledger-derived long-term aggregates and recent item activity by engagement and recency. These explicit facts and inferred Claims share a query-independent readout; F5 calls no model.
C BehaviorMemBench Experimental Details
Readout ablation results. Table 4 gives all nine metrics for Figure 3; all masks reuse one frozen Full state with a Qwen3-32B builder and reader.
C.1 Dataset and Model Settings
Data and reader rules follow Appendix A; model assignments follow Section 5.1. Activity groups keep batch-count ties together: 1–6, 7–11, 12–16, 17–21, and at least 22 batches. Within each builder and pool, activity analysis uses transitions common to five agentic methods and user macro-averaging; target-familiarity analysis likewise uses common valid transitions within each configuration.
C.2 Baselines and Adaptation
Methods process histories chronologically into native query-independent representations, without candidate access during construction.
Long Context renders dated visits with titles, categories, prices, and engagement, retaining recent lines within 8,000 tokens. Frequency Profile ranks the top 30 L2 categories using click/browse/favorite-or-cart/purchase weights 1/2/3/5 and 0.9 decay for visits k batches earlier. Template Profile uses the same weights in fixed category, price, engagement, and title-fragment slots; new categories first occur within three batches, and inactive categories are absent for at least four.
For A-Mem, Mem0, and LightMem, one batch becomes one user message. Readout enumerates recent stored entries within 8,000 tokens. A-Mem exposes generated context and keywords, excluding raw notes. Mem0 lists current facts by creation time. LightMem disables pre-compression and topic segmentation and forces extraction each batch, evaluating this configured pipeline rather than its full efficiency-oriented setup.
Persona Tree applies add/update/delete/no-op operations to its fixed hierarchy. The complete schema remains available during construction; only readout prunes empty leaves and uses an empty description placeholder. We evaluate state construction without MemListener training, query-dependent routing, or retrieval fusion.
D MemoryCD Experimental Details
D.1 Dataset and Tasks
MemoryCD [44] uses Amazon Reviews 2023 product-review histories containing item information, review text, and observed ratings. We consider Beauty, Books, Electronics, and Home and Kitchen. In the single-domain setting, memory uses the target-domain history preceding the final three interactions, which are reserved for testing. In the cross-domain setting, memory combines interactions from Beauty, Books, and Electronics, and testing uses the final three Home and Kitchen interactions for a 323-user cohort.
D.2 Baselines and Implementation
Methods use the adapters in Appendix C.2 under a shared readout token budget. Agentic builders and task readers use Qwen3-32B or Qwen3.6-35B-A3B; non-parametric baselines need no LLM builder.
D.3 Evaluation Protocol
For item ranking, the reader ranks benchmark-provided candidates containing one held-out positive and negatives. HR@10 measures whether the positive ranks in the top ten; NDCG@10 also rewards higher placement. For rating prediction, the reader predicts a score on the 1–5 scale; MAE measures average absolute error, and RMSE weights larger errors more heavily. Single-domain results average metrics equally across four domains. Tables 3 and 5 report both readers, with N@10 denoting NDCG@10.
Table 5: MemoryCD results under a Qwen3-32B task reader, with both memory builders.
| Memory | Single-domain | Cross-domain | ||||||
|---|---|---|---|---|---|---|---|---|
| HR@10 ↑ | N@10 ↑ | MAE ↓ | RMSE ↓ | HR@10 ↑ | N@10 ↑ | MAE ↓ | RMSE ↓ | |
| Non-parametric memories | ||||||||
| Long Context | 0.615 | 0.313 | 0.444 | 0.821 | 0.589 | 0.268 | 0.447 | 0.783 |
| Frequency Profile | 0.607 | 0.289 | 0.812 | 1.046 | 0.623 | 0.304 | 0.958 | 1.164 |
| Template Profile | 0.639 | 0.320 | 0.758 | 0.998 | 0.661 | 0.336 | 0.901 | 1.111 |
| Builder: Qwen3-32B | ||||||||
| Mem0 | 0.637 | 0.320 | 0.613 | 0.972 | 0.596 | 0.275 | 0.817 | 1.178 |
| A-Mem | 0.712 | 0.386 | 0.676 | 1.029 | 0.665 | 0.324 | 0.930 | 1.183 |
| Persona Tree | 0.684 | 0.366 | 0.626 | 0.957 | 0.661 | 0.315 | 0.704 | 0.970 |
| LightMem | 0.674 | 0.371 | 0.487 | 0.863 | 0.635 | 0.309 | 0.499 | 0.830 |
| BehaviorMem | 0.700 | 0.372 | 0.581 | 0.918 | 0.661 | 0.317 | 0.598 | 0.897 |
| Builder: Qwen3.6-35B-A3B | ||||||||
| Mem0 | 0.648 | 0.325 | 0.674 | 1.034 | 0.614 | 0.281 | 0.942 | 1.280 |
| A-Mem | 0.694 | 0.375 | 0.688 | 1.028 | 0.673 | 0.324 | 0.881 | 1.126 |
| Persona Tree | 0.700 | 0.373 | 0.656 | 0.971 | 0.636 | 0.308 | 0.652 | 0.913 |
| LightMem | 0.670 | 0.368 | 0.549 | 0.910 | 0.657 | 0.319 | 0.598 | 0.886 |
| BehaviorMem | 0.710 | 0.388 | 0.638 | 0.949 | 0.682 | 0.345 | 0.720 | 0.988 |