Manuscript Offprint

arXiv:2610.33432

ConMem: Counterfactual Multi-Scenario Probing for Resolving LLM Memory Misalignment

Shuning Zhang, Tenghao Ji, Jingruo Chen, Eryue Xu, Bohao Chu, Xin Yi

Abstract

Long-term memory is critical for autonomous Large Language Model (LLM) agents executing multi-session, long-horizon tasks. However, existing memories often inappropriately store, retain, or retrieve over-generalized, misattributed, or privacy-sensitive information, a problem we term memory misalignment. To study this problem, we construct MemAlign, a benchmark comprising 1,079 curated memory cases grounded in synthetic, validated multi-session conversational contexts covering diverse misalignment taxonomies. We then propose ConMem, an algorithm that reframes retention decisions as prospective counterfactual causal inference. ConMem synthesizes counterfactual interaction scenarios to prospectively audit downstream intervention effects across three aspects: relevant task execution, irrelevant invariance checks, and risk-sensitive boundary shifts. Experiments show that ConMem outperforms other methods, achieving 75.16% accuracy, 64.15% balanced accuracy, and a Macro-F1 of 65.31%, effectively mitigating over-retention biases without sacrificing personalization utility.

1 Introduction

Long-term memory is important for autonomous agentic systems, particularly as Large Language Model (LLM) agents are increasingly deployed for complex, multi-session, and long-horizon tasks (Park et al., 2023; Packer et al., 2023). To enable agents with persistent capabilities across extended interactions, a variety of frameworks emerged, ranging from hierarchical key-value stores to dynamic context paging systems (Wang et al., 2023; Modarressi et al., 2023; Zhong et al., 2024a). Concurrently, extensive benchmarking efforts scrutinized memory hallucinations (Dziri et al., 2022), factual retrieval precision (Liu et al., 2023), and long-context recall degradation (Liu et al., 2024; Maharana et al., 2024). Despite these

Figure

Figure 1: An illustration of memory misalignment.

advancements, agents deployed in open-ended lifelong interactions often exhibit memory behavior that remains frustratingly misaligned with user expectations (Zhang et al., 2025b).

As seen in Figure 1, imagine a user casually conversing with a personal assistant about planning a farewell dinner for a vegetarian colleague: "can you suggest a fine-dining spot? My co-worker doesn't eat meat." A naive memory pipeline, eager to extract personal attributes, commits to long-term storage: "user is strictly vegetarian." In a subsequent session three weeks later, when the user requests recommendations of a steakhouse for their own birthday, the agent filters out all beef dishes, warns the user about dietary violations, and refuses to provide relevant suggestions. In this scenario, the stored information is a misattributed inference. When later recalled, such inappropriate memories pollute the agent's future decision boundaries.

We frame this challenge as the memory misalignment problem. Extending the taxonomy established by Chen et al. (2026), memory misalign-ment spans multiple failure classes across two operational stages: memory generation (e.g., attribution confusion, over-inference, and granularity mismatch) and memory usage (e.g., context misapplication, stale memory reliance, and privacy overuse). Crucially, existing memory techniques evaluate candidate memories in isolation, relying primarily on extraction confidence, semantic relevance, or surface-level factual heuristics (Salama et al., 2025; Tan et al., 2025). Therefore, they fail to anticipate how a candidate memory will affect downstream agent behavior across future interactions, leading either to over-retention or over-pruning.

To benchmark memory admission and usage within multi-turn interaction, we construct MemAlign. Building upon Chen et al. (2026), we curate 1,079 candidate memories and augment each record with a multi-session conversational history generated via Qwen3.8-Max (Qwen Team, 2026). All conversational contexts pass structural checks, LLM-based semantic audits, and human review, which improve fidelity to the source annotations and reduce label-revealing shortcuts. These dialogues preserve the epistemic strength, entity attribution, temporal evolution, and corrective feedback of the source interaction while prohibiting the lexicalization of gold storage decisions.

To mitigate memory misalignment at the admission stage, we propose ConMem, a memory admission framework based on counterfactual probing of future interactions. Instead of treating admission as a static text-classification task, ConMem decides whether to store a candidate memory by simulating future interactions and comparing responses generated with and without access to the memory. These comparisons are aggregated into the Counterfactual Memory Treatment Effect (CMTE), a score that reflects the net downstream effect of memory access. Given a candidate memory and its historical context, ConMem synthesizes three future probes: (i) a relevant probe that tests whether the memory provides useful personalization, (ii) an irrelevant probe that checks whether the memory induces unnecessary personalization where it should not matter, and (iii) a risk-sensitive probe that introduces entity, temporal, or scope shifts to expose inappropriate memory carry-over. A blind quality judge and a separate attribution auditor then determine whether each response change is beneficial and whether it is attributable to the memory.

Extensive evaluations on MemAlign show that ConMem outperforms state-of-the-art memory mechanisms, including A-MAC (Zhang et al., 2026) and SAGE (Peng et al., 2026). Specifically, ConMem achieves an accuracy of 75.16%, a balanced accuracy of 64.15%, and a Macro-F1 of 65.31%, surpassing A-MAC by 15.40 percentage points in Macro-F1 while effectively breaking the extreme retention biases of existing baselines. Furthermore, granular error analyses provide empirical insights into the delicate trade-off between memory utility and safety, showing robust generalization across parameter spaces while highlighting nuanced contextual scope boundaries as important directions for future exploration.

Collectively, this paper contributes: (i) we formalize the agent memory misalignment problem and introduce MemAlign, a benchmark of 1,079 candidate memories grounded in dual-validated multi-session dialogues; (ii) we propose ConMem, reframing memory admission as prospective counterfactual evaluation across complementary future scenarios; (iii) we show that CONMEM substantially outperforms existing baselines by achieving 65.31% Macro-F1, while uncovering behavioral trade-offs across distinct misalignment categories.

References (18)