betaFeedback

WorksComputer Science

Interpreting at Write Time: A Policy Ablation for Multi-Goal Agent Memory

Abstract

A long-running assistant cannot keep everything it has seen, so it summarises. Summarising is not neutral: what is kept depends on what the record is for, and the choice is made once, before anyone knows which of the user's goals will ask. We ask what a memory should summarise for when it serves several standing goals at once. Three write policies answer differently: summarise with no goal in view, write one summary covering every goal, or write one summary per goal and read them together. We compare them with five models, two short event streams and one LLM judge, holding the read step fixed. Answers from different goal stores overlap less than answers from one store on two runs, so the goals do pull apart. Per-goal summaries read together scored highest. They beat the all-goal summary on relevance, completeness and accuracy, but the neutral one only on relevance and completeness, and at matched answer length only on relevance. The all-goal summary scored below the neutral one, which had a quarter of its budget. A single goal store served its own goal's queries better than the other goal stores, but not better than the neutral summary.

Introduction

A long-running assistant cannot keep everything it has seen. Context is finite, and retrieval over a growing raw history runs into the familiar limits of information retrieval, so systems compress, most often by summarising. MemGPT summarises when the context window fills up [2], MemoryBank writes daily summaries and keeps a running portrait of the user [3], Generative Agents write reflections over an observation stream [4], and A-Mem writes structured notes and revises them as new events arrive [5]. Zep extracts entities and facts into a graph [6], which commits the same way, since its schema decides what can be represented and must be fixed before anyone knows which use will matter [7].

Summarising is not neutral. To compress you have to decide what matters, and that decision is made against some notion of what the record is for. A summary is therefore written from a perspective, whether or not the system names one. Call that choice the encoding.

The same stored summary then gets asked very different things. LongMemEval defines five separate long-term memory abilities over one chat history [8], LoCoMo asks for question answering, event summarisation and dialogue generation over the same conversations [9], and MemoryCD tests whether one person’s preferences hold while their interactions span twelve domains at once [10]. One write, many uses. The field’s answer has been to split the storage: by memory type [11], by episodic against semantic content [12], and by task against environment to cut retrieval noise [13]. All of that decides where a fact is filed. None of it decides what the summary is written for.

Not all of that variety strains the encoding. A question about timing and one that chains two facts use the same record differently but agree on what belongs in it, so one accurate summary serves both. Goals are the hard case. A standing goal is a lasting concern the assistant serves across sessions, not a one-off request: a person has their money, their health, their relationships, their career. Goals rarely disagree about what happened. They disagree about which parts of it were worth the space. A 15 percent discount granted during a negotiation is a margin reduction, a pricing precedent, a trust signal and evidence of competitive pressure, and a summary that renders it as one may render it poorly as the others. The encoding decides this once, before any goal has asked. It matters when the history is longer than what can be re-read: the summary then replaces the stream, and what it left out is gone however good the retriever is.

Two questions follow, both about the write rather than the read. First, if a summary is written for one goal, how does that affect what can be recovered from it later? The alternative is to summarise with no goal in view and work out what the events mean at read time. Second, when the assistant serves several goals at once, should it keep one summary per goal or one summary covering all of them? Writing per goal is not filing per goal. Each goal’s summary covers the whole event, every summary is read at query time, and nothing is routed or split; the stores differ only in the instruction that wrote them, which is the goal-conditioning. Rashomon Memory, our earlier work [1], proposed the per-goal policy and showed it was feasible on a single scenario, without comparing it against the alternatives.

This paper contributes that comparison, not the policy. We set four goals against one client engagement, an account-management setting where the goals are explicit and the events are dense. The comparison only means something if the four goals really do pull apart, so we measure that first rather than assume it. Standing goals are a construct we define rather than one a benchmark supplies; MemoryCD’s twelve domains are topics, not goals. The design draws on encoding specificity [16] and transfer-appropriate processing [17], by which a trace formed for one purpose serves that purpose best, and on Minsky’s mind of competing specialists [18]. They motivate the hypothesis; the experiment does not test them.

Write policies and setup

Let TT be the write budget (Figure 1). Facts uses one encoder at budget TT, instructed to summarise what happened, who was involved and which numbers were stated, without inferring meaning or assessing implications. Fused uses one encoder at budget 4T4T, instructed to cover in one pass what each of the four goals would find relevant. Split uses four encoders, one per goal, each at budget TT. Split and Fused thus share a nominal 4T4T, and Facts has a quarter of it. Budgets are prompt instructions, not enforced limits, and only answers were saved, so we cannot confirm that store lengths matched. Split also makes four writes per event where Fused makes one. Each goal encoder, like Facts, is asked for two to four sentences per event, Fused for four to six. Both differences may favour Split.

The three write policies

Figure 1. The three write policies. Only the write differs. The reader is the same model with the same prompt throughout, receives the four stores concatenated under Split, and is never told which goal a query is aligned with, so it cannot route to a store.

The four goals are Financial, Risk, Relationship and Competitive. Each event is encoded under the policy’s instruction, then merged into the existing store.

We use two multi-session event streams from a long-running client engagement. Meridian has 5 events and 4 queries; Helix has 15 events and 6 queries, with mixed signals from several stakeholders. Both are structured records rather than chat transcripts, which isolates the write policy from conversational dynamics such as grounding and repair.

Five models act as encoder and reader (Claude Haiku 4.5, Claude Sonnet 4.5, GPT-5 mini, GPT-5 nano, Minimax M2.1), at temperature 0 where supported, running both streams under every policy ten times. A judge (GPT-5 mini), blind to policy, scores every answer against the raw events on relevance, completeness, accuracy and clarity, each from 1 to 5, which correlates with human judgment in prior work [14, 15]. The composite score is their mean. The unit of analysis is a cell, one (model, stream, query) triple averaged over its ten runs, giving 50 cells; run-to-run standard deviation inside a cell averages 0.60, which is why we average. Every policy is observed in every cell, so we use paired tests throughout. Two leakage controls matter: the Fused instruction names all four goals, so its store carries the goal vocabulary the four goal stores carry between them, and the reader never sees a goal label. Code and all scored answers are at https://github.com/albsadowski/goal-conditioned-encoding.

To ask whether the four goal records diverge at all, we compare answers by content-word Jaccard overlap, lower-casing and dropping stopwords. An answer is what a reader gets from a store, so overlap between two answers stands in for overlap between two records. The noise floor is the overlap between two answers from the same goal store on two independent runs.

Results

We start with the premise. Answers drawn from two different goal stores in the same run overlap at 0.121; answers drawn from the same goal store on two independent runs overlap at 0.190. The across-goal figure is lower in all 50 cells, dz=1.95d_z = 1.95, t(49)=13.80t(49) = 13.80, p<.001p < .001, and lower in every model and in both streams. The comparison is conservative: the floor absorbs a full re-encode and a fresh answer while the across-goal figure holds the run fixed, and the four stores answer at similar lengths. At least in wording, writing one event for four goals separates it further than writing it twice for a single goal does.

Table 1 reports the policies. The cleanest test of what a summary should be written for is Facts against Fused, since both are single encoders making one pass into one store. Facts (M=3.68M = 3.68) scored above Fused (M=3.34M = 3.34): +0.34, dz=0.41d_z = 0.41, t(49)=2.92t(49) = 2.92, p=.005p = .005, better in 34 of 50 cells, and it did so on a quarter of the nominal budget. Accuracy accounts for most of the gap (+0.72, t(49)=4.63t(49) = 4.63, p<.001p < .001), completeness for some of it (+0.33, p=.021p = .021), and relevance for none (+0.12, p=.457p = .457). So answers from the all-goal store were not only less complete. They were judged less faithful to the events.

PolicyBudgetMMSDSDRel.Compl.Acc.Clar.
Split (four goal writes)4T4T3.970.774.423.453.504.52
Best-single (oracle)TT3.790.88––––
Facts (no interpretation)TT3.681.063.732.973.464.54
Fused (all goals, one write)4T4T3.340.853.612.652.744.34

Table 1. Mean scores by write policy over 50 cells (model × stream × query, each averaged over 10 runs). Scores run from 1 to 5. Budgets are instructed, not measured. Best-single is a post-hoc oracle: the best of the four goal stores, each written at budget TT, chosen once the scores are known.

If the instruction matters, a store written under one goal should answer that goal’s queries better than stores differing from it in nothing else. Eight of the ten queries carry a descriptive goal label in the scenario file, entering no prompt, the two labelled ambiguous being excluded. For each we compare the store written under the matching goal against the mean of the other three, identical in budget, architecture and read prompt. The aligned store scored 3.68 against 3.15: +0.53, dz=0.65d_z = 0.65, t(39)=4.11t(39) = 4.11, p<.001p < .001, better in 31 of 40 cells, holding in all five models (+0.36 to +0.74) and both streams. Facts scored 3.89 on the same cells, so the aligned store beat the other goal stores but not the neutral summary (−0.25, t(39)=−2.11t(39) = -2.11, p=.042p = .042).

That advantage is not spread evenly. It is largest for Competitive (+1.25) and Relationship (+0.68), and close to nothing for Risk (+0.11) and Financial (+0.08). Those are the same goals ranked in reverse by how well a neutral summary already serves them: on their own labelled queries Facts scored 3.45 on Competitive and 3.89 on Relationship, against 3.96 on Financial and 4.44 on Risk, and only on Competitive did the aligned store beat Facts. One reading is that where a query asks for details stated outright, the neutral summary has already kept them, and where it asks for a reading of what happened, writing for the goal helps most. With two labelled queries per goal, this is a pattern to test, not a finding.

Splitting the write across the four goals produced the largest policy effect in the study. Split (M=3.97M = 3.97) beat Fused by +0.64, dz=1.31d_z = 1.31, t(49)=9.28t(49) = 9.28, p<.001p < .001, better in 46 of 50 cells at the same nominal budget, with the gain appearing on relevance (+0.82), completeness (+0.80) and accuracy (+0.75) alike. But Split makes four writes per event and is asked for more text, so this contrast does not isolate the goal instruction. Against Facts the composite gap is +0.30, dz=0.40d_z = 0.40, t(49)=2.82t(49) = 2.82, p=.007p = .007, but it is made of different material: relevance (+0.70, p<.001p < .001) and completeness (+0.48, p<.001p < .001) carry all of it, while accuracy (+0.03, p=.823p = .823) and clarity (−0.03, p=.679p = .679) are level. Split also had four times the nominal budget of Facts.

The gain comes from reading across the stores, not from owning a good one. Split also beat Best-single, the oracle picking whichever goal store scored highest once the scores are known (+0.18, dz=0.41d_z = 0.41, p=.005p = .005), and that oracle was itself only level with Facts (+0.11, p=.292p = .292). The four goal stores alone scored 2.87 to 3.51, every one below Facts. A single goal-conditioned summary was a worse memory than the neutral one here; only the four read together scored above it.

Four checks bear on these contrasts. GPT-5 mini is also the judge, and dropping it from the encoder set leaves Split over Fused at +0.67 (t(39)=8.08t(39) = 8.08, p<.001p < .001), Split over Facts at +0.40 (p=.003p = .003) and Facts over Fused at +0.27 (t(39)=1.94t(39) = 1.94, p=.060p = .060). This tests self-preference, not the judge’s validity. Split and Facts each beat Fused in all five models, and Split beat Facts in four, all but GPT-5 mini. LLM judges can favour longer answers, and Split writes the longest (192 words, against 147 for Fused and 119 for Facts), so we regressed each within-cell score difference on the word-count difference and read the intercept, the difference expected at zero length gap. Split over Fused is unchanged (+0.55, t(48)=6.16t(48) = 6.16, p<.001p < .001) and Facts over Fused rises to +0.52 (t(48)=4.30t(48) = 4.30, p<.001p < .001). For Split over Facts the gap at matched length falls to +0.11 (p=.391p = .391), and only relevance still carries a difference (+0.49, p=.012p = .012). Finally, with the query as the unit and differences averaged over models, Split over Fused holds in all ten queries (t(9)=10.26t(9) = 10.26, p<.001p < .001), Split over Facts in eight (p=.035p = .035, before length adjustment) and the aligned-store advantage in seven of eight (t(7)=2.43t(7) = 2.43, p=.045p = .045), while Facts over Fused (p=.055p = .055) and Split over Best-single (p=.059p = .059) fall short of .05.

Conclusion

We compared three ways to write a memory that serves several standing goals. The goal stores gave measurably different answers, which is what makes the choice a real one. Reading the per-goal summaries together had the highest mean score. Its lead over the all-goal summary held across models, streams and queries. Its lead over the neutral summary was smaller, came from relevance and completeness, and was not significant at matched answer length. The all-goal summary was the weakest in every model, behind even the one written with no goal in view, mostly on judged accuracy.

On average, no single goal store matched the neutral summary, even on its own goal’s queries, though it beat the other goal stores on them. That leaves the instruction given to the writer as a design parameter in its own right, separate from how memory is partitioned or retrieved. Whether writing per goal beats writing neutrally, once the amount written is held fixed, is still open.

Limitations. Budgets were instructions, and Facts was not run at 4T4T, so we cannot separate the write policy from how much text each policy kept. Split also differs from Fused in the number of writes, not only in what each write is for, and decomposing a task into focused subtasks can help for reasons unrelated to goals [19]. The data are small: ten queries from two short streams, which we wrote so that the goals would diverge. The 50 cells are therefore not 50 independent scenarios. One LLM judge scored answer quality rather than downstream utility, with no human validation. The streams are structured records rather than live dialogue, and the goal set was fixed in advance, so a goal with no store is simply not retained.

References

  1. [1]A. Sadowski and J. A. Chud z iak. Rashomon Memory: Towards argumentation-driven retrieval for multi-perspective agent memory. arXiv:2604.03588, 2026.arxiv.org/abs/2604.03588
  2. [2]C. Packer, S. Wooders, K. Lin, V. Fang, S. G. Patil, I. Stoica, and J. E. Gonzalez. MemGPT: Towards LLMs as operating systems. arXiv:2310.08560, 2023.arxiv.org/abs/2310.08560
  3. [3]W. Zhong, L. Guo, Q. Gao, H. Ye, and Y. Wang. MemoryBank: Enhancing large language models with long-term memory. arXiv:2305.10250, 2023.arxiv.org/abs/2305.10250
  4. [4]J. S. Park, J. O’Brien, C. J. Cai, M. R. Morris, P. Liang, and M. S. Bernstein. Generative agents: Interactive simulacra of human behavior. In Proceedings of UIST, 2023.arxiv.org/abs/2304.03442
  5. [5]W. Xu, K. Mei, H. Gao, J. Tan, Z. Liang, and Y. Zhang. A-Mem: Agentic memory for LLM agents. arXiv:2502.12110, 2025.arxiv.org/abs/2502.12110
  6. [6]P. Rasmussen, P. Paliychuk, T. Beauvais, J. Ryan, and D. Chalef. Zep: A temporal knowledge graph architecture for agent memory. arXiv:2501.13956, 2025.arxiv.org/abs/2501.13956
  7. [7]X. Jiang, C. Xu, Y. Shen, X. Sun, L. Tang, S. Wang, Z. Chen, Y. Wang, and J. Guo. On the evolution of knowledge graphs: A survey and perspective. arXiv:2310.04835, 2025.arxiv.org/abs/2310.04835
  8. [8]D. Wu, H. Wang, W. Yu, Y. Zhang, K.-W. Chang, and D. Yu. LongMemEval: Benchmarking chat assistants on long-term interactive memory. In International Conference on Learning Representations, 2025.arxiv.org/abs/2410.10813
  9. [9]A. Maharana, D.-H. Lee, S. Tulyakov, M. Bansal, F. Barbieri, and Y. Fang. Evaluating very long-term conversational memory of LLM agents. arXiv:2402.17753, 2024.arxiv.org/abs/2402.17753
  10. [10]W. Zhang, X. Wei, W.-C. Huang, Z. Hui, C. Wang, M. Gong, and P. S. Yu. MemoryCD: Benchmarking long-context user memory of LLM agents for lifelong cross-domain personalization. arXiv:2603.25973, 2026.arxiv.org/abs/2603.25973
  11. [11]T. R. Sumers, S. Yao, K. Narasimhan, and T. L. Griffiths. Cognitive architectures for language agents. arXiv:2309.02427, 2024.arxiv.org/abs/2309.02427
  12. [12]G. Zhang, B. Wang, Y. Ma, D. Zhao, and Z. Yu. A multi-memory segment system for generating high-quality long-term memory content in agents. arXiv:2508.15294, 2025.arxiv.org/abs/2508.15294
  13. [13]P. Gao, J. Zhao, X. Chen, and L. Yilin. An efficient context-dependent memory framework for LLM-centric agents. In Proceedings of NAACL (Industry Track), pages 1055–1069, 2025.DOI
  14. [14]L. Zheng, W.-L. Chiang, Y. Sheng, et al. Judging LLM-as-a-judge with MT-Bench and Chatbot Arena. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2306.05685
  15. [15]Y. Liu, D. Iter, Y. Xu, et al. G-Eval: NLG evaluation using GPT-4 with better human alignment. In Proceedings of EMNLP, 2023.arxiv.org/abs/2303.16634
  16. [16]E. Tulving and D. M. Thomson. Encoding specificity and retrieval processes in episodic memory. Psychological Review, 80(5):352–373, 1973.DOI
  17. [17]C. D. Morris, J. D. Bransford, and J. J. Franks. Levels of processing versus transfer appropriate processing. Journal of Verbal Learning and Verbal Behavior, 16(5):519–533, 1977.DOI
  18. [18]M. Minsky. The Society of Mind. Simon and Schuster, New York, 1986.
  19. [19]A. Kostka and J. A. Chudziak. Towards cognitive synergy in LLM-based multi-agent systems: Integrating theory of mind and critical evaluation. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 47, 2025.

Paper details

vlnc:W_d6y3qh8q
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

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

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents