TrawMem: Reframing Agent Memory as Task-Oriented Role-Adaptive Workspaces
Anonymous authors
ICLR 2027
Abstract. Large language model (LLM) agents rely on memory systems to leverage long-term interactions, yet existing systems typically retrieve memories based on their relevance to the current query and use them as contextual evidence. However, relevance alone does not characterize how a memory contributes to task solving: the same memory may serve different roles across tasks, such as directly supporting the answer or linking to complementary memories with weaker semantic relevance but necessary information. We therefore reframe agent memory systems as Task-Oriented Role-Adaptive Workspaces, where memories are selected and organized by their task-oriented roles and relations. Based on this view, we propose TrawMem, which organizes interaction histories into local threads and constructs task-oriented workspaces by assigning roles and jointly selecting complementary memories. Experiments on LoCoMo and MemGallery with four open- and closed-source backbones show consistent improvements over representative memory systems, with macro-F1 gains of 2.23--3.14 points. On LoCoMo, TrawMem improves the LLM-Judge score over SimpleMem by 4.07 and 4.31 percentage points on Qwen3.5-9B and DeepSeek-V4-Flash, respectively, while requiring approximately 12.8% and 5.1% fewer context tokens, respectively. Codes are available at https://anonymous.4open.science/r/TrawMem.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 25 Nov 2026, 10:34 UTC.
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 1/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
TrawMem argues that relevance-based memory retrieval ignores the functional role a memory plays for a given query: answering it directly versus bridging to weakly relevant but necessary evidence. The method segments dialogue history into LLM-summarized local threads linked in a thread graph. At query time it propagates scores over a bounded neighborhood and assigns each candidate turn a soft distribution over three roles (anchor/bridge/context) through fixed feature mappings. It then selects at most B turns by greedily maximizing a four-term monotone submodular objective, which carries a 1−1/e guarantee. On LoCoMo and Mem-Gallery with four answer backbones, it reports the best macro F1/BLEU-1/J against five memory systems (LoCoMo J +2.19–6.34 over the strongest baseline). It also includes ablations, sensitivity, efficiency, and mechanism diagnostics.
Strengths
Broad, consistent gains with reasonable robustness checks. TrawMem has the best average in all eight backbone × benchmark settings (Tables 1–2). The advantage holds under cross-model judging (Table 4: +2.26 / +5.31 J over SimpleMem) and against two more recent systems (Table 3). It also uses fewer answer tokens than SimpleMem (~2,050 vs. ~2,351 tok/q; Table 5). As a practical retrieval pipeline, it is credible. Diagnostics beyond the leaderboard. Stage-wise gold recall (Fig. 13) and the coverage–redundancy frontier against Top-B relevance (Fig. 15) give a real view of what the selection step does.
Weaknesses
The titular role mechanism is heuristic and its contribution is not established. Roles come from hand-designed signals (temporal/relational cues, a query-length flag) mapped through fixed, unreported matrices (App. A.3); nothing is learned. Removing role conditioning costs only 1.31–1.82 J on LoCoMo and 1.21–1.73 on Mem-Gallery (Figs. 4–5), from single runs with no variance reported. By a rough binomial estimate, the standard error of macro-J on LoCoMo is about 1.5 pp, given OpenDomain n=96. Role distributions are close to uniform (entropy 0.75–0.90 nats vs. ln 3≈1.10; Fig. 10b). Most importantly, the motivating case does not hold up. On MultiHop, final-workspace gold recall (61.3%) is below that of the initially routed threads alone (67.1%), and the same holds for Temporal (79.6% vs. 82.1%; Fig. 13). H.1.2 shows that ρ shifts across paired queries, but not that the shift changes which evidence is retrieved.
The protocol leaves the gains unattributed. (i) The answer prompt is method-specific, with CoT and per-category rules (App. J.1, R2), and the paper does not say whether baselines used it. Table 3 reports the same method on the same backbone (Qwen3.8-27B) at F1 59.74 / 54.51 under different runners, versus 51.23 in Table 1. That pipeline effect is larger than any reported method gain. (ii) Hyperparameters appear to be selected on the test set. The Fig. 6 peaks (63.26 / 62.95 / 68.56 / 74.52) exactly match Table 1, with backbone-specific (λm, λr), and B=16 is chosen on the same LoCoMo data. No held-out split is used. (iii) There is no token-matched control, such as raw-turn RAG at ~2k tokens, even though the strongest baseline, LightMem, uses about half the context (Table 5). The full-context baseline appears only in App. H.3.1 (63.70% with GPT-5.6-Luna), which is unusually low, and it is not discussed.
Questions for the authors
Were all baselines run with the same answer prompt (R2) and the same judge? Please report the baselines re-run under R2, and explain the 51.23 vs. 59.74 F1 gap for the same backbone between Tables 1 and 3.
How were λm, λr, B, γ, K, H, M_max, A, and M chosen? Please report all values, along with results from a single configuration shared across backbones and fixed on a held-out split.
Please add matched-budget controls: (a) raw-turn Naive RAG at ~2,050 tokens; (b) thread retrieval + top-B by π, with no roles and no submodular selection. Please also give seed variance or bootstrap CIs for Table 1 and the ablations.
Does the role term causally recover low-α bridge evidence? For example, report gold-evidence recall stratified by α, with and without role terms, and explain the drop in MultiHop recall after selection.
12 comments
Response to Reviewer mXTV (Part 2/6)
Weakness 1.b & Question 3 (second half: variance across multiple runs): Removing role conditioning reduces by only 1.21–1.82 points (close to a rough binomial standard error), and multiple-run seed variance is missing for the main results in Table 1 and all ablation variants
Thank you for your comment and question. We report the per-category results for the role ablation (Table R2) and seed variance for the original main results in Table 1 and all ablation variants in Figure 4 (Table R3), covering both paired sampling error at the question and conversation levels and the variability across independent end-to-end runs (with different random seeds for Stage 1 thread induction, answer generation, and the evaluator; note that we report the mean standard deviation over independent seeds here, so normal seed-level differences of from the single default runs in the original main table and Figure 4, such as , are expected):
Table R2: Per-category comparison of the full model and No Role Cond. over independent end-to-end runs (mean standard deviation)
| Dataset and evaluation scope | Full model () | No Role Cond. () | Difference |
|---|---|---|---|
| LoCoMo - MultiHop (, Qwen3.5-9B) | 54.68 0.39 | 51.84 0.30 | |
| LoCoMo - Temporal (, Qwen3.5-9B) | 65.36 0.34 | 63.18 0.41 | |
| LoCoMo - OpenDomain (, Qwen3.5-9B) | 58.54 0.87 | 58.33 0.74 | |
| LoCoMo - SingleHop (, Qwen3.5-9B) | 74.55 0.19 | 74.34 0.21 | |
| LoCoMo - Mean excluding OpenDomain (Qwen3.5-9B) | 64.86 0.18 | 63.12 0.19 | |
| LoCoMo - Macro- over all four categories (Qwen3.5-9B) | 63.28 0.21 | 61.92 0.19 | |
| LoCoMo - Macro- over all four categories (GPT-5.6-Luna) | 74.47 0.23 | 72.66 0.25 | |
| MemGallery - Overall Macro- (Qwen3.5-9B) | 49.09 0.24 | 47.89 0.21 |
Table R3: Comparison of the original main results in Table 1 and all ablations in Figure 4 over independent runs (LoCoMo, mean standard deviation)
| Comparison / ablation variant | Control or variant | Full TrawMem model | Difference |
|---|---|---|---|
| Original Table 1: Qwen3.5-9B (vs. LightMem) | 60.01 0.24 | 63.28 0.21 | |
| Original Table 1: Qwen3.8-27B (vs. SimpleMem) | 60.79 0.17 | 62.91 0.22 | |
| Original Table 1: DeepSeek-V4-Flash (vs. LightMem) | 65.49 0.25 | 68.59 0.19 | |
| Original Table 1: GPT-5.6-Luna (vs. SimpleMem) | 68.22 0.19 | 74.47 0.23 | |
| Ablation (Qwen3.5-9B): Fixed Seg. | 61.91 0.24 | 63.28 0.21 | |
| Ablation (Qwen3.5-9B): No Cross-Edge | 61.71 0.23 | 63.28 0.21 | |
| Ablation (Qwen3.5-9B): Seed-only | 62.48 0.16 | 63.28 0.21 | |
| Ablation (Qwen3.5-9B): No Role Cond. | 61.92 0.19 | 63.28 0.21 | |
| Ablation (Qwen3.5-9B): Identity K | 62.19 0.22 | 63.28 0.21 | |
| Ablation (Qwen3.5-9B): No Multi-thread | 61.37 0.26 | 63.28 0.21 |
Response to Reviewer mXTV (Part 2/6)
1) Across question types, variation across random seeds is far below the points from an independent-binomial estimate (Tables R2–R3): The points correspond to two independent samples. For paired comparisons on the same questions, the four backbones had, respectively, , , , and questions that changed from incorrect to correct / correct to incorrect relative to their respective strongest baselines (net gains of questions, with a per-question paired standard error of only percentage points). Relative to No Role Cond., about %–% of questions had the same outcome (incorrect-to-correct / correct-to-incorrect counts ranged from to questions, with a paired per-question Macro- standard error of only points). Moreover, when aggregating each of the long conversations as a whole, the full model performs better on conversations (two-sided sign test ). Meanwhile, the standard deviation of across the end-to-end runs is only points for Table 1 and all ablation variants, and the ranking of ablation importance exactly matches Figure 4.
2) Roles are especially indispensable for multi-hop, temporal, and cross-task cases (Table R2): The event-thread graph retrieves the candidate pool across sessions (hence the largest drop for No Multi-thread; we will clarify the division of responsibilities in Section 4.2), while the role module retains weakly related but complementary evidence. SingleHop and OpenDomain () can be answered by direct matching (only points; after excluding OpenDomain, the mean for the other three categories instead rises from to ), whereas roles improve by and points on MultiHop and Temporal, respectively. On the question categories in MemGallery (Qwen3.5-9B), No Role Cond. () falls below the strongest baseline, Mem0 (); adding role modulation raises it to (outperforming in all runs, ).
The revision will briefly summarize these multi-run stability and category-level findings in Sections 4.1–4.2, and add the complete standard deviations, per-category role ablations, and paired statistics (Tables R2–R3) to Appendices E and H.1.
- Rating
- 3/4(+1)
- Confidence
- 4/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
The paper proposes TrawMem, a memory system for long-horizon dialogue. It segments the interaction history into local event threads that retain the raw turns, and it links threads that are adjacent in the original order or semantically similar. At query time, TrawMem locates the relevant threads and their neighborhoods and assigns each candidate memory soft weights over three task-oriented roles. It then greedily selects a complementary subset under a submodular coverage objective, and this subset forms the workspace used for answering. Experiments cover LoCoMo and MemGallery with four backbones and include ablations, an efficiency study, and mechanism analyses.
Strengths
-
Well-motivated problem. Answering questions over long dialogues often requires combining scattered evidence. Selecting context by per-memory query similarity can therefore miss necessary links. Organizing evidence by its function in the current task is a reasonable direction.
-
Practical memory design. Thread summaries serve as retrieval entry points, while raw turns, provenance, and order are preserved, so the evidence stays traceable. Combining neighborhood expansion with set-level selection is a sensible way to surface and retain complementary information.
-
Consistent gains. TrawMem obtains the best average scores on both datasets with all four backbones. On LoCoMo, it improves over the best baseline for each metric by 2.23–3.14 F1 and 2.19–6.34 J. On MemGallery, the F1 gains range from 0.30 to 5.45.
-
Extensive appendix analyses. The appendix includes six ablations, evaluation with a cross-model judge, stage-wise gold-source recall, a partial paired bootstrap, and an efficiency study covering context length, answer quality, and retrieval cost.
Weaknesses
W1. The role mechanism is not specified operationally. In Appendix A.3–A.4, the mappings A, M(δ_q), and F_a, F_b, F_c, as well as the gating g_q(u, v) in the coverage kernel, are introduced without concrete forms or a procedure for setting them. The extraction of z_temp and z_rel and the coverage threshold used for stopping (Sec. 3.2.3, Algorithm 1) are also unspecified.
Beyond hindering reproduction, this makes it hard to judge whether the computed weights reflect what a memory actually does for the query. Consider a history containing "My lease number is R17", "R17 prohibits cats", and "R18 allows cats". For "Can I keep a cat under my lease?", the first turn is the necessary bridge, while the third is only topically related. The paper does not explain how the features in Eq. (19) and the subsequent mappings separate these two cases.
W2. The independent contribution of roles is not directly established. The No Role Cond. ablation shows that the role component helps, but the paper does not state which computations it disables. Roles enter both the path cost in Eq. (6) and the role-coverage term in Eq. (8), so setting λ_r = 0 alone would not remove them. The mechanism analyses also stop short of attribution. Figure 11 shows that role weights change across queries, but query dependence alone does not show that roles track actual support or bridging.
Moreover, the 356 query pairs were generated by GPT-5.6-Luna, with no mention of human verification. Figure 15 shows better coverage and less redundancy than Top-B Relevance, and Figure 13 shows MultiHop gold-source recall falling from 79.9% after expansion to 61.3% in the final workspace. Some loss is expected under a budget, but neither analysis includes a role-ablated variant, so it remains unclear whether roles reduce the loss of key evidence.
W3. Configuration selection and evaluation protocol are under-specified, and key differences lack uncertainty estimates. The paper does not state how the main-table configuration was chosen, whether a separate development set was used, or whether baselines received comparable tuning. Notably, the grid optima in Figure 6 coincide with the Table 1 results, and the optimal setting differs across backbones. Scores also shift substantially with the runner: for GPT-5.6-Luna, TrawMem's F1 is 48.66 in Table 1 but 63.34 and 61.29 under the two runners in Table 3. These numbers are not comparable across protocols, but they call for a description of how the runners differ in prompting, history handling, budget, output parsing, and metric implementation. Finally, paired bootstrap intervals are reported only against FullText and NaiveRAG, not against the strongest baselines or for the core role ablation.
Questions for the authors
- (W1) Please give the concrete rules for the role computation and the stopping criterion, explain how they were set, and use the lease example to show how the role scores separate the necessary bridge from the topically related turn.
- (W2) What exactly does No Role Cond. disable? Could you add a well-defined role-ablated variant to the analyses in Figures 13 and 15, with the same candidate set, budget, and answer model?
- (W3) How was the main configuration selected, and were baselines tuned comparably? Which parts of the Table 1 and Table 3 runners are shared?
- Table 5 shows construction time changing with H (96.1, 75.8, and 63.5 s/root for H = 3, 2, 1 on Qwen3.5-9B), although H is used only at query time (Appendix A.2, Algorithm 1). Was memory rebuilt for each configuration, or do other settings differ?
- MemGallery already includes KR (Knowledge Resolution) and CD (Conflict Detection). Could you report their per-category results in a table? Figure 7 shows radar charts for only three backbones. Optionally, the knowledge-update category of LongMemEval [1] and FactConsolidation-MH in MemoryAgentBench [2] could serve as external checks of reasoning over updated facts.
References:
[1] LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. ICLR 2025.
[2] Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions. ICLR 2026.
Overall Assessment
The paper offers a practical design for memory organization and evidence selection in long-horizon dialogue, and its gains are consistent across settings. I currently lean slightly toward rejection for three reasons: the role mechanism is incompletely specified, its independent contribution is not directly shown, and the configuration selection and evaluation protocol are unclear. If the authors provide reproducible role computation rules, a controlled analysis of how roles affect the retention of key evidence, and a clarification of configuration selection and protocol, I would raise my score to weak accept.
13 comments
Response to Reviewer e4Zq (Part 1/7)
Weakness 1 & Question 1 (first half): Provide the specific rules and rationale for the role-computation mappings (), gate , query-cue extraction, and stopping criterion
Thank you for the detailed comments. This response provides complete, directly reproducible computation rules and the rationale for each coefficient. The next response (Part 2/7) walks through the full distinction process using the lease example you proposed.
(1) Specific rules for role computation, rationale, and stopping conditions (the same fixed constants are shared by all four backbones and both datasets):
- Query cues and matrices : In Eq. (17), is triggered by case-insensitive matches to fixed temporal phrases (sentence-initial question phrases
{when, what time, how long, for how long}or word-boundary phrases{what date, what year, which year, what month, what day, how many years, first time, last time, years ago, months ago, days ago}). is triggered by the union of two classes of standard general lexical cues: (i) word-boundary matches to the closed set of relation-contrast and conditional prepositions{both, each other, between, in common, relationship, compare, difference, under, besides, apart from}; and (ii) question forms for counting across events or summarizing experiences (counting questions containinghow many, or present-perfect questions with fronted auxiliaryhave/has). The compound-query length threshold is fixed at , i.e., (the complete regular expressions will be listed in Appendix A.3 of the revision). Query demand in Eq. (18) is L1-normalized. The candidate role distribution in Eq. (5) uses temperature . The matrix and the matrix applied to the six-dimensional feature vector in Eq. (20) are:
- Feature mappings (Eq. 19) and rationale: For a candidate memory , , , and . The inputs are taken directly from quantities already computed during retrieval: affinity , thread score , neighborhood connectivity strength , thread boundary indicator , adjacent-turn continuity , and temporal marker . The coefficients are fixed according to the correspondence between roles and features (each set sums to , with the main weight of assigned to each role’s core signal: Anchor uses query affinity , Bridge uses cross-thread connectivity , and Context uses within-thread continuity ), without fine-grained tuning. When all coefficients in are randomly perturbed by %, remains stable at over runs on Qwen3.5-9B (range , fluctuating only slightly around the rounded default constants).
- Path activation, coverage-kernel parameters, and stopping condition: The numerical lower bound on edge cost in Eq. (21) is , and the priority-aggregation temperature in Eq. (7) is (per-item cap ). The coverage kernel in Eq. (22) uses a fixed within-thread decay and cross-thread coefficient , with the convex-interpolation gate (default ; for non-temporal queries, ; for temporal queries, ). Algorithm 1 stops when the information-coverage term reaches or the budget is full (to keep the context consistently around tokens).
Response to Reviewer e4Zq (Part 2/7)
Weakness 1 & Question 1 (second half): Step through the lease example to show how role scores and submodular selection distinguish a “necessary bridge” memory from one that is “only topically related”
(2) Step-by-step distinction in the lease example: For the query “Can I keep a cat under my lease?”, the constraint word under matches the rule (8 words total, ), giving . L1 normalization in Eq. (18) gives (highest demand is for Bridge). The retrieval intermediates for the three candidate memories are as follows: thread scores , boundary indicators , within-thread continuity , and temporal term . At , all untruncated activation weights are below ; after normalization by the total neighborhood activation mass under Eq. (7), . The sums of candidate weights in their respective threads are , and the inter-thread edge weights are . After substituting , the features, composite path cost in Eq. (6), and marginal gains for the submodular selection objective in Eqs. (8)–(9) (comparing No Role Cond. against the full model) are shown in Table R1:
Table R1: Features, path cost , and submodular marginal gains for the three candidate memories in the lease example ()
| Candidate memory | / | Eq. (9) marginal gain (without role full) | ||||
|---|---|---|---|---|---|---|
| : “My lease number is R17” | 0.56 / 0.11 | 1.00 | 0.62 / 0.94 / 0.34 | 0.35 / 0.60 / 0.05 | 0.41 / 0.96 | (reverses selection in favor of Bridge) |
| : “R17 prohibits cats” | 0.72 / 0.18 | 0.65 | 0.73 / 0.68 / 0.31 | 0.68 / 0.27 / 0.05 | 0.39 / 0.83 | (selected in the first step as ) |
| : “R18 allows cats” | 0.70 / 0.22 | 0.05 | 0.67 / 0.07 / 0.29 | 0.87 / 0.05 / 0.08 | 0.38 / 0.91 | (incorrectly selected without roles, discarded with roles) |
First, based only on the single-item path cost or non-role coverage terms, the distractor with high lexical overlap can outrank the bridge : Because explicitly contains “allows cats,” its query relevance is substantially higher than that of bridge (), which does not contain “cat.” Thus, even with the role term included in Eq. (6) (), the single-item path cost for () remains lower than for (). After the first-step selection , if the role-coverage term is removed (No Role Cond.), also outranks in the sum of the three non-role terms ( versus ), thanks to its higher (), and is mistakenly selected first by the greedy algorithm.
Second, the cross-thread connectivity feature in Eq. (19) gives a high Bridge distribution, and the set-level role-coverage gain in Eq. (8) reverses the second-step ranking: Because thread containing has a strong R17 connection to the rule thread (), obtains . In contrast, , which has no R17 connection (), remains concentrated on Anchor (). After has covered most of the Anchor demand (), fills the unsatisfied, highest-weight Bridge demand, yielding . By contrast, , which is also Anchor like , yields only . This net role-coverage advantage of directly reverses the non-role disadvantage of , so wins with a total marginal gain of , selecting the complete evidence chain .
The revision will add the complete closed-form equations, parameter rationale, and step-by-step example alongside Appendix A.3–A.4 and Algorithm 1.
Response to Reviewer e4Zq (Part 3/7)
Weakness 2.a & Question 2 (first half): The paper does not clearly specify which computations are disabled in the No Role Cond. ablation (setting only does not fully remove the role mechanism)
Thank you for pointing out this omission. With the candidate set , path distance , query affinity , and budget held fixed, No Role Cond. skips the role computation in Eq. (5) and disables all four role terms downstream:
1) Path cost in Eq. (6): Set , removing the role term and retaining only path distance and query affinity;
2) Selection objective in Eq. (8): Remove the second, role-coverage term , retaining only the other three terms;
3) Coverage-kernel gate in Appendix Eq. (22): Set the role-modulation weight in the convex-interpolation gate, which exactly reduces to ;
4) Workspace assembly (Appendix J.1, Prompt R2): Do not attach the role labels anchor / bridge / context. If the workspace selected by the full model is held fixed and only the role-label text is hidden in R2, for Qwen3.5-9B and GPT-5.6-Luna is and , decreases of only and , respectively, confirming that most degradation comes from candidate selection. If only in Eq. (6) (Figure 6), for the four backbones drops by just points (e.g., ), whereas the complete No Role Cond. ablation (Figure 4) drops by points (). This shows that the set-level role-coverage dimension in Eq. (8) contributes the most central selection gain.
The revision will briefly clarify the scope of No Role Cond. in Section 4.2, and detail all four disabled components (along with the role-label check) in Appendix D.
Weakness 2.d & Question 2 (second half): What are the results when the explicitly defined No Role Cond. is added to the Figure 13 and Figure 15 analyses with a fixed candidate set, budget, and answer model?
Thank you for this important suggestion. Keeping exactly the same candidate set , budget , and answer model (GPT-5.6-Luna) as Appendix H.2 (Figures 12–15), we added No Role Cond. to the three existing strategies. The results are shown in Table R2:
Table R2: Role-ablation comparison under the same protocol as Figures 13 / 15 of the original manuscript (fixed , , GPT-5.6-Luna)
| Evaluation scope (expanded-stage recall reference) | Selection variant | Gold-evidence recall (%) ↑ | Number of distinct relevant facts ↑ | Repeated fact mentions ↓ | LLM-Judge () ↑ |
|---|---|---|---|---|---|
| MultiHop (expanded recall 79.9%) | Random | 36.5 | 2.81 | 2.06 | 48.94 |
| Top- Relevance | 51.4 | 4.08 | 4.89 | 56.74 | |
| No Role Cond. | 57.1 | 4.52 | 3.51 | 59.57 | |
| TrawMem | 61.3 | 5.04 | 2.78 | 63.83 | |
| Temporal (expanded recall 90.4%) | Random | 51.2 | 2.74 | 1.98 | 63.55 |
| Top- Relevance | 68.9 | 3.96 | 4.72 | 71.96 | |
| No Role Cond. | 76.0 | 4.41 | 3.39 | 76.01 | |
| TrawMem | 79.6 | 4.88 | 2.66 | 78.19 | |
| Macro-average over all categories (Figures 4 / 15) | Random | 46.8 | 2.69 | 1.94 | 61.35 |
| Top- Relevance | 64.5 | 3.91 | 4.60 | 70.82 | |
| No Role Cond. | 69.1 | 4.32 | 3.28 | 72.70 | |
| TrawMem | 72.1 | 4.75 | 2.59 | 74.52 |
First, corresponding to Figure 13, roles reduce the loss of gold evidence under the budget: MultiHop has an average of candidate units, and % are removed when assembling the workspace (Figure 12), so recall is lower than the expanded-stage value of %. At the same , No Role Cond. achieves % (a loss of pp), while TrawMem achieves % (a loss of pp). For Temporal, the results are % vs. 79.6%; the macro-average over all categories is % vs. 72.1%.
Second, corresponding to Figure 15, roles increase the number of distinct relevant facts while reducing repeated mentions: Compared with No Role Cond., TrawMem increases the number of distinct relevant facts from to and reduces repeated fact mentions from to (the values for Top-B Relevance are ). rises from to (; MultiHop , Temporal ).
The revision will mark the number of units at each stage in Appendix H.2.2 and H.2.4 (Figures 13 and 15) and add the results in Table R2.
- Rating
- 3/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
This paper proposes TrawMem, a task-oriented memory framework for LLM agents. Instead of retrieving memories solely by semantic relevance, TrawMem organizes interaction histories into event threads and assigns task-dependent roles (anchor, bridge, and context) to select complementary memories. Experiments on LoCoMo and MemGallery demonstrate consistent improvements across four LLM backbones.
Strengths
- The paper highlights the importance of memory roles and relationships beyond semantic relevance, providing an interesting perspective on agent memory retrieval.
- The proposed framework effectively combines thread-based memory organization, role assignment, and submodular selection.
- The experiments demonstrate consistent improvements across multiple benchmarks and LLM backbones, supported by extensive ablation studies.
Weaknesses
- The method combines several existing techniques, and the unique contribution of role adaptation is not sufficiently isolated.
- The role assignment mechanism relies heavily on handcrafted features without direct evaluation of role assignment accuracy.
- The proposed framework introduces additional computational overhead despite reducing answer-context tokens.
- The evaluation focuses on two benchmarks without sufficiently demonstrating scalability to larger, dynamically evolving memory systems.
Questions for the authors
- Can the authors better isolate the benefits of role adaptation from graph expansion and diversity-aware retrieval?
- How robust is the heuristic role assignment mechanism to different query formulations and memory structures?
- Why does the final workspace selection substantially reduce gold-source recall for multi-hop questions (Figure 13)?
- How does the proposed framework scale to significantly larger memory repositories, particularly in terms of retrieval latency and computational cost?
Ethics concerns
NA
7 comments
Response to Reviewer iver (Part 1/3)
Weakness 1 & Question 1: How can the unique benefits of role adaptation be more clearly isolated from graph expansion and diversity-aware retrieval?
Thank you for your comment and question. Standard graph expansion and diversity retrieval (e.g., MMR) consider only whether semantics differ; they cannot distinguish a key memory with low lexical overlap that serves as a bridge from an irrelevant dialogue. To independently validate the role of role adaptation, we performed a stepwise ablation of graph expansion, diversity/coverage selection, and role adaptation at a fixed budget of (Table R1):
Table R1: Stepwise comparison of graph expansion, diversity/coverage selection, and role adaptation (LoCoMo, budget )
| Comparison variant (all use budget ) | Graph expansion | Diversity/coverage selection | Role adaptation | Qwen3.5-9B | GPT-5.6-Luna | MultiHop recall (%, GPT-5.6) |
|---|---|---|---|---|---|---|
| 1. Seed threads + Top- relevance (by ) | ✗ | ✗ | ✗ | 58.62 | 69.45 | 50.2 |
| 2. Graph expansion + Top- relevance (by ) | ✓ | ✗ | ✗ | 59.84 | 70.82 | 51.4 |
| 3. Graph expansion + classic diversity retrieval (MMR) | ✓ | MMR | ✗ | 61.12 | 71.88 | 54.6 |
4. Graph expansion + role-free submodular coverage (No Role Cond.) |
✓ | Submodular kernel | ✗ | 61.95 | 72.70 | 57.1 |
5. Graph expansion + role adaptation (without kernel coverage, Identity K) |
✓ | ✗ | ✓ | 62.15 | 73.05 | 58.6 |
| 6. TrawMem (full model) | ✓ | Submodular kernel | ✓ | 63.26 | 74.52 | 61.3 |
1) Standard “graph expansion + diversity retrieval” cannot replace role adaptation (variants 3 and 4 vs. 6): With the same expanded candidate set , using classic diversity retrieval MMR (variant 3) gives scores points ( vs. ) and points ( vs. ) below the full model on the two backbones, respectively. MultiHop recall is lower by percentage points (% vs. %). Even when the full submodular coverage kernel is retained and only roles are disabled (variant 4, No Role Cond.), still drops by and points, and MultiHop recall drops by percentage points (recall of low- bridging evidence falls from % to %). This is because standard diversity only encourages non-redundant content and can select off-topic dialogue, whereas role adaptation specifically fills in bridging and contextual information.
2) Role adaptation alone and the submodular coverage kernel alone make comparable, slightly different contributions, and are complementary when combined (variants 4 and 5 vs. 6): With graph expansion enabled, “role adaptation only, without the coverage kernel” (variant 5, Identity K; , MultiHop recall %) and “coverage kernel only, without role adaptation” (variant 4, No Role Cond.; , recall %) both substantially improve over pure relevance ranking (variant 2; , recall %), with role adaptation alone performing slightly better. Combining the two (variant 6; , recall %) yields the largest gain, showing that role-based completion and coverage-based deduplication are complementary rather than interchangeable.
3) Role adaptation preserves bridging clues retrieved by graph expansion for multi-hop reasoning; for overall scores, the two have partially overlapping functions as well as independent gains: For overall across the four categories, the initial seed threads already contain some local connections, so the marginal gain from graph expansion in the full model (from Seed-only to the full model in original Figure 4: points) is naturally a little smaller than its gain over the pure relevance Top-B baseline (variant 1 2: points), reflecting partial overlap in their functions. However, for cross-session bridging measured by MultiHop recall, graph expansion alone without roles (variant 1 2) improves recall by only percentage points (% %), because low- bridging memories retrieved through expansion are discarded when truncated by relevance. After adding submodular coverage and role adaptation, graph expansion raises MultiHop recall to % relative to the same-budget Seed-only result (%), a gain of percentage points, corresponding to MultiHop of points. This shows that the two stages play complementary roles in preserving multi-hop evidence.
The revision will briefly summarize the stepwise isolation of role adaptation and the MMR comparison in Section 4.2, and add the full results in Table R1 to Appendix H.2.
Response to Reviewer iver (Part 2/3)
Weakness 2 & Question 2: The role-assignment mechanism relies on hand-designed features and lacks direct accuracy evaluation. How robust is it to changes in query wording and memory structure?
Thank you for your comment. We directly evaluate the heuristic role-assignment mechanism in two respects: blind human evaluation of role-assignment accuracy and robustness to query wording and graph-structure perturbations.
(1) Direct evaluation of role-assignment accuracy (Table R2): We stratified and sampled (query, memory) pairs from LoCoMo examples with gold evidence. Two annotators independently labeled each memory’s actual function (agreement , with disagreements adjudicated by a third annotator; human labels were not used to set parameters), and we compared these labels against the model prediction :
Table R2: Accuracy comparison between model-inferred roles and human-annotated roles (LoCoMo, )
| Role category / method | Number of samples | Precision (%) | Recall (%) | F1 (%) |
|---|---|---|---|---|
| Anchor (direct support) | 178 | 82.0 | 84.3 | 83.1 |
| Bridge (cross-hop bridge) | 132 | 73.4 | 68.9 | 71.1 |
| Context (background supplement) | 140 | 74.1 | 75.7 | 74.9 |
| TrawMem macro-average | 450 | 76.5 | 76.3 | 76.4 |
| Baseline assigning roles only by binning (macro-average) | 450 | 52.9 | 52.1 | 52.5 |
(2) Robustness evaluation under query paraphrases and memory-graph structure perturbations (Table R3): On LoCoMo (Qwen3.5-9B, ), we tested both meaning-preserving query paraphrases (stratified sample of questions paraphrases, manually verified with ) and three types of memory-graph perturbations on all questions (unperturbed overall macro-average recall is %, and ):
Table R3: Robustness to query paraphrasing and memory-structure perturbations (LoCoMo, Qwen3.5-9B)
| Perturbation | Evaluation size | Dominant-role consistency (%) / JS ↓ | Workspace Jaccard overlap ↑ | Macro-average gold recall (%) ↑ | vs. original |
|---|---|---|---|---|---|
| Meaning-preserving query paraphrases ( consistency %) | queries | 93.8 / 0.05 | 0.82 | 69.9 | |
| Random deletion of % of cross-thread edges | All questions | 92.4 / 0.06 | 0.78 | 69.1 | |
| Random deletion of % of cross-thread edges | All questions | 88.1 / 0.11 | 0.71 | 67.4 | |
| Shift event-thread boundaries by turn | All questions | 90.6 / 0.08 | 0.75 | 68.7 |
1) Model-predicted roles closely match human judgments; structural and temporal features are important for identifying bridge roles (Table R2): Across samples, TrawMem achieves macro-average Precision / Recall / F1 of % / % / %, with F1 above % for all three roles (Anchor reaches %). Compared with the binned baseline using only query relevance (macro F1 of %), adding cross-thread connectivity and within-thread continuity features increases macro F1 by percentage points. The gain is especially large for the Bridge class with low lexical overlap, where F1 rises from % to % ( percentage points).
2) The features reuse retrieval intermediates and remain robust to coefficient perturbations, query wording, and graph-structure changes (Table R3): Each feature in Eq. (19) is taken directly from affinity and graph-connectivity scores already computed during retrieval, requiring neither role-annotation training nor additional query-time LLM calls. With % random perturbations to the mapping matrices over runs, remains at (range ). Under meaning-preserving paraphrases, query cues are consistent componentwise in % of cases (only % flip), with a mean L1 shift of only in demand distribution ; the dominant candidate role is consistent in % of cases (JS divergence ), workspace overlap is , and changes by only points. Even when % of cross-thread edges are randomly removed or event boundaries are shifted by turn across all questions, declines gradually by only and points, respectively, and remains more than points above the strongest baseline.
The revision will add Tables R2–R3 to Appendix H.1, including human evaluation of role-assignment accuracy, coefficient perturbations, and robustness results.
Response to Reviewer iver (Part 2/3)
Weakness 3: Although the framework reduces answer-context token count, it still introduces additional computation overhead overall
Thank you for this observation. Using the measured data in Appendix F (Table 5) of the original manuscript, we clarify the runtime comparison, sources of overhead, and tunability below:
1) Under the default setting, total time is below the strongest baseline LightMem and substantially faster than comparable graph-memory methods: With default , TrawMem’s total time is slightly below that of the highest-accuracy baseline, LightMem, on both Qwen3.5-9B ( vs. ) and DeepSeek-V4-Flash ( vs. ), while is higher by and points, respectively. Compared with Mem0 and A-MEM, total time is reduced by %–%. Relative only to the speed-oriented SimpleMem ( / ), total time increases by about %, but context is shortened by %–% and improves by points.
2) Query-time extra computation never calls an LLM, and the per-question latency increase is small: After correcting the timing boundary between offline graph construction and query routing, query-stage time is and (total time is unchanged; about questions/root on average). The added time comes from multi-hop neighborhood expansion (about seconds per question) and workspace selection. Role scoring (fixed matrix multiplication) and greedy selection (about candidates and at most selections) are lightweight numerical computations that add no LLM calls. Per question, query-stage time increases by only about seconds over the strongest baseline, LightMem, and by seconds over the fastest baseline, SimpleMem. The shorter context also directly reduces downstream LLM generation cost.
3) Reducing the number of hops matches the fastest baseline while retaining accuracy advantages: As shown in Appendix Table 5 of the original manuscript, the intermediate setting reduces total time to and , matching the fastest baseline, SimpleMem (within % under DeepSeek), while keeping context compression unchanged and maintaining a higher than SimpleMem ( and points).
The revision will add average per-question latency in Appendix F and practical guidelines for trading off latency and accuracy.
Comments on the paper
1 comment
General Response to Area Chair and All Reviewers
Thank you to the Area Chair and the three reviewers (mXTV, e4Zq, and iver) for the careful reviews and constructive feedback. We have responded point by point to every Weakness and Question raised by the three reviewers, and addressed each issue through additional experiments, clarifications, or direct revisions to the original manuscript (see the responses under each reviewer). The main additions are summarized below:
1) Complete details of role computation (mXTV, e4Zq, iver): We provide all formulas and parameters used in role computation and walk through an example proposed by a reviewer step by step. New experiments show that model-assigned roles closely match human judgments and remain stable under parameter changes, query paraphrases, and changes in memory structure.
2) Practical effect of the role mechanism (mXTV, e4Zq, iver): We specify exactly which computations are disabled by the role-free comparison setting. With the same number of memories retained, we add stepwise comparisons with several retrieval and selection strategies and an experiment that directly replaces memory roles. These results show that the role mechanism helps preserve key memories that have low literal relevance to the question but are essential for answering it.
3) Fairness of comparisons and stability of results (mXTV, e4Zq): We confirm that all main-table baselines use the same prompts and evaluation procedure, and explain the prompt and runner differences in the appendix comparisons. We add parameter selection on independent conversations, one shared parameter configuration across all models, comparisons at the same context length, and multiple independent runs. The results show that the improvements are stable and do not depend on per-model parameter tuning or longer context.
4) Runtime efficiency and larger-scale settings (e4Zq, iver): We correct the timing-boundary misalignment in Appendix Table 5 (total time remains unchanged). After correction, our method has lower memory-construction time than all baselines, and lower total time than LightMem, Mem0, and A-MEM (while matching the speed-oriented SimpleMem at ). We add latency tests with an -fold larger memory store and complete results on memory-update and conflict tasks, showing that the method also applies to larger, continuously changing memory stores.
All of the above additions and revisions will be incorporated into the updated manuscript. Thank you again to the Area Chair and all reviewers for your valuable feedback!
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Reviewer mXTV (Part 1/6)
Weakness 1.a & Question 2 (first half: matrices A,M): The roles are obtained by mapping manually designed signals through fixed, unreported matrices, with no learning process. What are the specific values of matrices A and M, and how were they determined?
Thank you for your comment and question. The complete values of A and M are given below; both are specified once according to the role definitions in Appendix A.3 and shared across all four backbones and both datasets, with no trainable parameters. Table R1 shows that the gains come from “which feature is assigned to which role,” rather than from the specific numerical values.
Values. The rows correspond to (anchor, bridge, context), respectively; the columns of A correspond to the query features xq=(1,ztemp,zrel,zlen)⊤ in Eq. (17), and the columns of M(δq) correspond to the role features fq(v)=(fqa,fqb,fqc,t(v),1−fqa,1)⊤ in Eq. (20). The temperature in Eq. (5) is TR=0.50 (see Table R6 in Part 5/6 for the other hyperparameters):
How they were determined. The locations of the nonzero entries follow directly from the role definitions in Appendix A.3: in A, the relational cue zrel primarily increases bridge demand, while the temporal cue ztemp primarily increases context demand; in M, each role reads only its own features (anchor reads fqa, bridge reads fqb, and context reads fqc and t(v)), and increases with the corresponding role demand δq. The numerical values of the nonzero entries were set manually; Table R1 tests whether the results are sensitive to these values:
Table R1: Comparison of different A and M settings (Qwen3.5-9B)
1) The gains come from the locations of the nonzero entries, not their values (Table R1): When all nonzero entries are set to 1 (with no tunable coefficients), J is 62.89 / 48.82, already capturing +0.94 / +0.97 of the original matrices’ gains over
No Role Cond.(+1.31 / +1.21). After randomly perturbing all coefficients by ±25% over 10 runs, J is 63.18±0.14 (range 62.94–63.35, with only small fluctuations around the default value). Conversely, randomly permuting rows and columns to disrupt the feature-to-role correspondence yields a result belowNo Role Cond.(60.84 vs. 61.95), showing that this correspondence is what matters.2) Roles produced by the fixed mapping agree with human annotations and approach the results of per-item LLM judgments: On 450 samples independently annotated by two annotators (κ=0.81), the fixed mapping achieves a macro-averaged role F1 of 76.4%, 23.9 percentage points higher than the baseline that assigns roles by binning only αq(v) (52.5%), and close to the 79.8% achieved by zero-shot, per-item judgments from GPT-5.6-Luna. The latter requires one LLM call for each of approximately 145 candidates per question, whereas the fixed mapping makes no LLM calls at query time (the F1 scores for anchor / bridge / context are 83.1% / 71.1% / 74.9%, respectively).
3) The absence of training is consistent with all comparison baselines: LoCoMo and MemGallery provide neither training sets nor role annotations; baselines such as
LightMem,SimpleMem, andMem0likewise have no trainable parameters during retrieval and selection.The revision will add the values of A and M and Table R1 to Appendices A.3 and H.1.