MemAdapter: Mitigating memory-induced sycophancy with counterfactual adaptationMemadapter: Counterfactual Adaptation Against Memory-induced Sycophancy
MemAdapter: A-MEM+DeepSeek-V4-Flash's When to Use Acc is 91.22% (Table 1)
Long-term memory agents retrieve historical memories to answer new requests. The failure is memory-induced sycophancy: overfitting to historical views that are inaccurate, outdated, or inconsistent with evidence. The authors state that correct and relevant memories can still distort reasoning, and the legitimate influence of the same memory varies with the task. MemAdapter only specifies, after retrieval, what a memory can support, which part it affects, and what it cannot justify, without changing upstream construction and retrieval.
- Long-term memory allows LLM agents to reuse historical information across sessions, but it also induces sycophancy: responses over-align with users' historical views. The authors argue that correct and relevant memory can still distort reasoning in certain tasks, and the legitimate influence of the same memory varies with context. Existing mitigations mostly filter memory during extraction, retrieval, or organization stages.
- MemAdapter does not modify memory construction and retrieval. It fixes each retrieved memory and varies the hypothetical task, inducing conditional usage boundaries; then it writes usage instructions based on the current request and evidence; at generation time it anchors the answer to the evidence and internally verifies whether memory usage exceeds the boundaries.
- On MemSyco with DeepSeek-V4-Flash, the authors state that the five systems' When to Use and How to Use improve, while sycophancy FR@3 decreases; beneficial memory failure rates vary. Qwen3-8B, LightMem average accuracy goes from 24.57% to 85.74%.
- The paper does not specifically discuss limitations. It covers three backbones, five memory systems, and three benchmarks; cross-backbone and ablation results are reported on MemSyco-Bench. The paper does not report the judge model name or the number of repetitions for the main experiments.
- Evaluated models
- DeepSeek-V4-FlashGPT-5.6-solQwen3-8B
- Benchmarks
- MemSyco-BenchPersistBenchMemTrapBench
- Metrics
- When to Use Memory Acc.How to Use Memory Acc.Avg. Acc.Sycophancy FR@3Cross-domain FR@3Beneficial FRReasoning Fixation ScoreBelief Distortion Score
Addressing the sycophancy problem where long-term memory makes LLM agents overly cater to users' historical beliefs, the researchers propose the MemAdapter framework. The authors point out that existing mitigation methods assume sycophancy stems from biased or erroneous memories, but in reality objectively correct memories can also induce sycophancy, and the same memory should have different impacts in different contexts. MemAdapter consists of three components: counterfactual induction, which uses counterfactual reasoning to reveal the potential risks of retrieved memories; context-aware reflection, which calibrates each memory's reasoning impact in the current task through self-reflection; and evidence-based reasoning, which makes the final answer well-grounded while preserving the reasonable influence of memories. Experiments on three benchmarks show that MemAdapter consistently improves memory reliability across various scenarios, and the code has been open-sourced at https://github.com/DEEP-JLU/MemAdapter。
Related events and news
1 events · 0 news mentions
- This event's paper
MemAdapter 缓解记忆引发的谄媚
Paper analysis
What problem does this paper attempt to solve?
Correct and relevant long-term memories can still induce sycophancy, so their influence needs to be calibrated by task after retrieval.
Long-term memory, even when factually correct and task-relevant, can still cause agents to over-align with users' historical views.
- Scenario: The authors argue that long-term memory supports personalization and long-horizon interaction, but historical beliefs, preferences, and judgments are repeatedly retrieved, leading to memory-induced sycophancy and weakening factuality and objective judgment; the authors state this issue is more prominent in long-horizon tasks (Section 1).
- Existing limitations: The authors state that existing methods attribute sycophancy to biased or incorrect memory and filter, suppress, or reorganize it during extraction, retrieval, or organization stages. The authors argue this overlooks two points: risk cannot be inferred from memory content alone, and the legitimate influence of the same memory varies with the current task (Section 1, Figure 2b).
- Observation: On a controlled set containing only factually correct and highly relevant memories, adding memory reduced overall accuracy from 96.0% to 77.3%; among predictions that were correct without memory, 19.4% became incorrect after adding memory, and the authors report that each such reversal followed retrieved memory (Section 2.1, Figure 2a). The model used in this preliminary experiment is not specified in the paper.
- Method: Propose a post-retrieval framework, MemAdapter, which adjusts the role and degree of influence of retrieved memory in reasoning without changing upstream construction or retrieval (Section 3).
- Threat model:
- Victim system: LLM agents with external memory stores; memory is extracted from historical interactions, stored, and retrieved on new requests (Section 1).
- Failure mode: Responses over-align with users' historical views, even when those views are inaccurate, outdated, or inconsistent with available evidence.
- Conditions of use: The authors state that correct and task-relevant memory can still induce sycophancy; the same memory may support personalization in one task but should not override task evidence in another.
- Intervention scope: MemAdapter and the compared memory-use methods all operate after retrieval, receiving the same set of candidate memories, without changing memory content, order, or retrieval source (Appendix A).
What related research exists?
Existing methods mainly intervene in memory before reasoning; MemAdapter performs post-retrieval usage calibration.
The authors organize related work by memory architecture, pre-generation filtering, and sycophancy evaluation, and place the distinction in how memory is used after retrieval.
- Long-term memory systems
- Generative Agents (Park et al., 2023) and Reflexion (Shinn et al., 2023) — store experiences or verbal feedback and retrieve them in subsequent behavior.
- MemGPT (Packer et al., 2023) and LongMem (Wang et al., 2023a) — handle history beyond the context window with hierarchical read/write or external retrievers.
- MemoryBank, Mem0 (Zhong et al., 2024; Chhikara et al., 2025), and A-MEM, LightMem (Xu et al., 2025; Fang et al., 2026a) — perform extraction, updating, consolidation, forgetting, or lightweight multi-stage organization. Appendix F is mainly descriptive for this group.
- Pre-generation retrieval control
- RAG, and Self-RAG, FILCO, Corrective RAG (Lewis et al., 2020; Asai et al., 2024; Wang et al., 2023b; Yan et al., 2024) — introduce external evidence and decide when to retrieve, filter context, or correct retrieval when evidence is insufficient.
- MemGate (Zhang et al., 2026) and Self-ReCheck in OP-Bench (Hu et al., 2026) — decide by query whether memory enters the context, or recheck relevance to reduce unnecessary personalization. The authors state these works mainly control which information is exposed before generation.
- Sycophancy and persistent memory failure
- Sharma et al. (2024), Wei et al. (2023), and Hong et al. (2025), Liu et al. (2025), Jain et al. (2026) — study models prioritizing agreement with users, imitating false beliefs, or changing their stance across multiple turns.
- Recalling Too Well (Bensal et al., 2026) reports that lossy extraction encodes and amplifies user false beliefs; PersistBench (Pulipaka et al., 2026) examines when persistent memories should be forgotten; Mao et al. (2026) report that agreement in stateful personal agents can accumulate across sessions through memory.
- The introduction states that Structured Memory (Hannoon et al., 2026) reorganizes memory into domain structures, yet memory-induced sycophancy remains largely unsolved. MemSyco-Bench, BenchPreS, HUSH-Bench, STALE, and MemTrapBench evaluate scope, preference persistence, sensitive use, effectiveness, and cognitive traps. The authors state that retrieving relevant memory does not guarantee proper memory behavior.
- Baselines and benchmarks: comparisons are Direct Generation, and Anti-Sycophancy, Self-ReCheck, Dynamic Partition, MemGate; benchmarks are MemSyco-Bench, PersistBench, MemTrapBench (Section 4.1).
The authors position this work as post-retrieval calibration: existing methods mainly intervene in construction, retrieval, filtering, and organization before reasoning; memory can be accurate and relevant yet still insufficient to support the current conclusion; this work does not modify the upstream pipeline (Appendix F).
- Long-term memory systems
How does the paper address this problem?
MemAdapter constrains the influence of retrieved memory using counterfactual boundaries, situational reflection, and evidence reasoning.
MemAdapter adjusts how retrieved memory participates in reasoning after retrieval, without changing memory construction, content, order, or retrieval source (Section 3, Figure 3). The three steps respectively identify potential risks, ground them in the current task, and then maintain boundaries during generation. Appendix G provides the algorithm, and Appendix H.1 provides the three-stage prompts.
Problem Setting
- Input is the current request q, model-visible context and evidence c, and the retrieved memory set M.
- The authors do not frame the problem as "is this memory globally safe," but rather: fix the memory and see under which downstream conditions its influence becomes inappropriate.
- Then determine whether that risk applies to the current request and available evidence, while preserving the memory's legitimate influence.
Counterfactual Induction
- For each memory mi, determine the task type based only on what the memory explicitly states and its scope, and construct one or more concrete settings for each type; content, source, and time range remain fixed.
- The counterfactual task space is Hi={(tij,hij)}j=1Ni. tij is the task type, and hij is a setting with specific request and evidence configurations.
- For each hij, record the contribution vij: what it can support, which part of reasoning or the answer it can influence, and which conclusions it cannot justify, yielding Vi.
- Compare Vi, retain substantive changes in contribution, discard mere wording differences, merge equivalent settings, and obtain the conditional boundary Bi for that memory and the overall B. Figure 3 splits a single evaluation into three fixed axes: what it can support, what it may influence, and what it cannot justify.
Context-Aware Reflection
- Input q, c, M, and B. First determine what decision or answer q requires, and the relevant evidence and constraints in c.
- Jointly examine each mi and Bi, and consider updates, qualifications, and conflicts among memories. Counterfactual boundaries do not directly determine the current task.
- Output a set of natural language instructions U. Each ui states what the memory can support, which part and to what extent it may influence, and which conclusions it cannot justify.
Evidence-Based Reasoning
- Jointly generate the answer y and an internal support trace L: (y,L)=REBR(q,c,M,U). L maps main answer segments to roles, supporting sources, and applicable memory instructions.
- Before returning, verify that sources exist and support the corresponding segments, and that each memory use is within its instruction boundaries. L is used only for internal verification; only y is returned to the user.
- The authors require that information usable for personalization or phrasing should not be elevated to factual claims or evidence for objective decisions. The paper does not provide iteration counts or numerical thresholds for MemAdapter itself.
What experiments did the paper conduct?
Across three benchmarks and five memory systems, the authors state that multiple memory usage metrics improve, while beneficial memory failure rates vary.
Experimental Setup
- Backbone: Main results use DeepSeek-V4-Flash (temperature 0.2, max output 4,096 tokens, thinking off). Cross-backbone additionally uses GPT-5.6-sol (same temperature 0.2 and 4,096) and local Qwen3-8B (4-bit NF4, bfloat16, greedy decoding, thinking off). When memory construction requires an LLM, deepseek-V4-flash is used (Appendix A.3).
- Memory systems: A-MEM, Mem0, NaiveRAG, MemoryBank, LightMem. Embeddings are all BAAI/bge-m3, dimension 1,024. MemTrapBench takes top 10; PersistBench takes 4–16 per instance (Appendix A.2).
- Baselines: Direct Gen, and post-retrieval Anti-Sycophancy, Self-ReCheck, Dynamic Partition, MemGate (gate score above 0.07 to retain). Under the same memory system, each method shares one frozen memory set obtained from a single retrieval (Appendix A).
- Scale: MemSyco-Bench 1,550 items (five categories are 300, 300, 300, 300, 350); MemTrapBench 1,050 items; PersistBench 500 items (cross-domain 200, sycophancy 200, beneficial memory 100, each with 4–16 memories, average 10). Metrics follow each benchmark's official definitions (Appendix D).
- Metrics: MemSyco's When to Use Memory, How to Use Memory, and Avg. Acc. are all sample-weighted averages, so they are not the same number as single-task accuracy. PersistBench's Cross-domain and Sycophancy use FR@1/2/3: a failure is recorded when at least one of three generations has a judge score no lower than 3 (scores 1–5); Beneficial FR is a single generation, with a score of 2 or 3 recorded as failure. These failure rates are reported as percentages, lower is better. MemTrapBench scores are higher-is-better.
- Evaluation: The judge uses deterministic decoding and returns structured output. The paper does not state the judge model name, nor does it report agreement with humans or the number of random repetitions for the main experiments. Section 2 additionally has 75 controlled samples (25 per benchmark), model not stated (Appendix B).
Main Results
According to Table 1, the backbone is DeepSeek-V4-Flash. The table below is MemAdapter, with parentheses showing absolute differences relative to Direct Gen.
Swipe horizontally to read the table
Memory System When Acc↑ How Acc↑ Syco FR@3↓ RF Score↑ NaiveRAG 90.78 (+16.58) 88.77 (+24.00) 53.50 (-26.50) 4.03 (+0.71) A-MEM 91.22 (+15.69) 89.39 (+22.97) 55.50 (-24.00) 4.11 (+0.88) Mem0 87.89 (+43.54) 82.15 (+26.00) 52.00 (-24.50) 4.01 (+0.50) MemoryBank 90.56 (+26.67) 85.85 (+23.38) 51.00 (-31.00) 4.01 (+1.03) LightMem 88.78 (+56.67) 84.31 (+40.46) 58.50 (-21.00) 4.07 (+0.39) - The authors state that across the five systems, both When to Use and How to Use increase, and MemTrapBench's reasoning fixation and belief distortion scores both increase; sycophancy failure rates all decrease. Cross-domain failure rates decrease on four systems; LightMem's Cross-domain FR@3 is 30.50, which is +0.50 relative to Direct Gen (Table 1).
- Beneficial memory failure rates vary by system: Mem0 goes from 4.00 to 1.00; NaiveRAG, A-MEM, MemoryBank, LightMem go to 2.00, 4.00, 9.00, 9.00 respectively (Table 1). The authors call this a memory-system-dependent trade-off.
- The authors state that on the five systems, both MemSyco dimensions are higher than the listed interventions; on A-MEM, When to Use is 0.44 percentage points higher than what the authors call the strongest baseline, and How to Use is 2.33 percentage points higher. The authors also state that individual baselines are better on some dimensions (Section 4.2).
Cross-Backbone
- What was tested: On MemSyco-Bench, switching to GPT-5.6-sol and Qwen3-8B, with memory systems, retrieval settings, and candidate memories identical to the main experiment. Table 2 compares only Direct Gen and MemAdapter.
- Results: The authors state that sample-weighted average accuracy increases on both backbones. Qwen3-8B, LightMem goes from 24.57 to 85.74 (+61.18); GPT-5.6-sol, LightMem goes from 47.12 to 86.97 (+39.84) (Table 2).
- Exceptions: GPT-5.6-sol's Personalized Memory Use is -5.00, -9.00, -3.66 on NaiveRAG, A-MEM, Mem0, and +2.87, +1.00 on LightMem and MemoryBank. The authors state that gains vary by backbone, memory system, and task dimension (Section 4.3).
Component Ablation
- What was tested: DeepSeek-V4-Flash, MemSyco-Bench. B only does Counterfactual Induction; B+R adds Context-Aware Reflection; the full version adds Evidence-Based Reasoning. Retrieved memories are the same (Section 4.4, Appendix C.4).
- Results: NaiveRAG's Avg. Acc. goes from Direct Gen's 70.25 to B's 84.26, B+R's 85.16, and the full version's 89.94; A-MEM goes from 71.71 to 84.19, 85.68, 90.45 (Table 3). The authors state that the three stages have complementary contributions, and that B's improvement over Direct Gen comes from the added counterfactual stage.
- Exceptions: In Appendix Table 8, Mem0's Personalized Memory Use full version is 74.33, lower than B's 79.33; LightMem's B+R average is 81.87, lower than B's 82.27. The authors state that the relative gains of intermediate variants vary by memory system, but the full version's Avg. Acc. is the highest in that group across all five systems.
Other Ablations and Analyses
- Figure 2a: MemSyco-Bench, PersistBench, MemTrapBench accuracies go from 96.0% to 68.0%, 100.0% to 84.0%, 92.0% to 80.0% respectively (model not stated).
- Table 5: On NaiveRAG's Memory–Evidence Conflict, Self-ReC. and Dyn. Part. are 100.00, MemAdapter is 99.33.
- Table 6: Task Boundary improves by 0.74–1.50 relative to Direct Gen; NaiveRAG's Trauma goes from 4.85 to 4.83.
- Table 7: MemoryBank's Sycophancy FR@1/2/3, MemAdapter is 31.50/44.00/51.00, Direct Gen is 64.50/79.50/82.00.
- Table 8: MemoryBank with only B has Valid Memory Selection at 73.71, lower than Direct Gen's 74.29.
- Table 9: On PersistBench, MemAdapter averages 6.63–6.95 seconds/sample, with P99 at 13.94–16.23 seconds. The authors state it falls within the runtime range of existing post-retrieval interventions.
What are some points that can be further explored?
The paper does not explicitly list limitations or future directions.
Limitations and Future Directions Noted by the Authors
The paper does not specifically discuss limitations. The Conclusion, Ethics Statement, and appendices do not frame any result as a limitation, shortcoming, or future work.
Experimental Coverage
- Generation backbones are DeepSeek-V4-Flash, GPT-5.6-sol, and Qwen3-8B; the main results in Table 1 use DeepSeek-V4-Flash (Sections 4.2–4.3).
- Memory systems are A-MEM, Mem0, NaiveRAG, MemoryBank, and LightMem; post-retrieval baselines are Direct Gen, Anti-Sycophancy, Self-ReCheck, Dynamic Partition, and MemGate (Section 4.1).
- Benchmarks are MemSyco-Bench (1,550), MemTrapBench (1,050), and PersistBench (500); cross-backbone comparisons and component ablations are reported on MemSyco-Bench (Sections 4.3–4.4, Appendix C.4).
- Embedding model is BAAI/bge-m3 with dimension 1,024; MemTrapBench retrieves top 10, and PersistBench retrieves 4–16 memories per instance. The preliminary comparison uses 75 instances, 25 per benchmark (Appendices A.2, B).
- The paper does not report the judge model name, the model used in the Section 2 preliminary experiment, or the number of random repetitions for the main experiments; PersistBench cross-domain and sycophancy failure rates use 3 generations per sample (Appendices A.3, D.3.1).
Summarize the main content of the paper
Three post-retrieval stages regulate the role of memory; the authors state the upstream memory system need not be modified.
MemAdapter is a post-retrieval conditioning framework for long-term memory agents, used to address memory-induced sycophancy.
- Problem: Historical beliefs and preferences are repeatedly retrieved in subsequent tasks. The authors argue that filtering incorrect memories before reasoning is insufficient, because correct and relevant memories can still exceed the influence allowed by the current task, and the same memory should not play the same role across different tasks.
- Method: Fix each retrieved memory, vary hypothetical tasks and summarize conditional usage boundaries; then write usage instructions based on the current request and evidence; during generation, align response segments to evidence or permitted memory influence, and return only the response to the user. Upstream memory construction and retrieval remain unchanged.
- Main results: On DeepSeek-V4-Flash, A-MEM, When to Use Memory Acc. is 91.22%, How to Use Memory Acc. is 89.39% (Table 1). Sycophancy FR@3 decreases across five memory systems, with A-MEM at 55.50%. The failure rate of beneficial memories does not uniformly decrease; MemoryBank rises to 9.00%.
- Other settings: On Qwen3-8B, LightMem, MemSyco average accuracy goes from 24.57% to 85.74% (Table 2). On GPT-5.6-sol, personalized memory accuracy decreases on NaiveRAG, A-MEM, and Mem0. In ablations, NaiveRAG's Avg. Acc. goes from 70.25 to 89.94 for the full version (Table 3).
- Authors' conclusion: The authors state that explicitly conditioning memory use after retrieval can improve memory use in long-term memory agents without modifying the upstream memory system (Section 5).