Persistent memory enables agents to remember user preferences and provide personalized assistance over extended interactions, but a single incorrect update can affect future responses and decisions. Reliable updates must correct outdated information without treating unreliable or unverified claims as facts. Existing methods use memory quality or downstream task performance as learning signals, but direct supervision comparing what alternative operations preserve, overwrite, or discard remains limited. For example, rejecting an unreliable claim and deferring an unverified claim can both leave accepted information unchanged, yet deferral retains the claim pending further evidence. We introduce MemTransit, a benchmark with annotations specifying the appropriate action and memory contents after each update. It covers five executable actions (append, revise, ignore, reject, and defer) and evaluates both action selection and execution outcomes. We further propose MemTact, which learns memory updates through counterfactual execution. During training, it executes alternative actions given the same initial memory and incoming information, comparing their results with the annotated correct outcome to supervise action selection. Experiments on MemTransit show that MemTact improves action prediction and the accuracy of updated memory, reduces memory pollution, better preserves conflicting information, and limits error accumulation across successive updates.
翻译:暂无翻译