Memadapter: Counterfactual Adaptation Against Memory-induced Sycophancy
cs.AI
Submitted: 2026-10-04
Updated: 2026-10-04
Code: https://github.com/DEEP-JLU/MemAdapter
License: http://creativecommons.org/licenses/by/4.0/
The gist: Long-term memory enables LLM-based agents to retain and reuse information across tasks and sessions, supporting personalization and long-horizon interactions.
Terminology
Abstract
Long-term memory enables LLM-based agents to retain and reuse information across tasks and sessions, supporting personalization and long-horizon interactions. However, persistent memories can also induce sycophancy, causing agents to over-align with users' historical beliefs even when they are inaccurate, outdated, or inconsistent with objective evidence. Existing mitigation methods assume that memory-induced sycophancy originates from biased or incorrect memories and attempt to reduce this risk by filtering such memories at different stages of the memory pipeline. However, in the real world, objective and correct memories can still induce sycophancy, and the same memory can warrant different influence across different contexts. To this end, we propose MemAdapter, a novel framework that adaptively integrates retrieved memories to support objective and reliable reasoning. Specifically, MemAdapter consists of three components: (i) Counterfactual Induction, which leverages counterfactual reasoning to uncover the potential risk of retrieved memories; (ii) Context-Aware Reflection, which calibrates the inferential influence of each retrieved memory in light of the current task via self-reflection; and (iii) Evidence-Based Reasoning, which grounds the final response in appropriate evidence while preserving the legitimate influence of memory. Extensive experiments on three benchmarks demonstrate that MemAdapter consistently improves memory reliability across diverse scenarios. Our code is available at https://github.com/DEEP-JLU/MemAdapter.
Sources
- Recalling Too Well: Sycophancy Evaluation and Mitigation in Memory-Augmented Models
- STALE: Can LLM Agents Know When Their Memories Are No Longer Valid?
- Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
- Graph Engineering in the Era of LLM Agents: From Individual Intelligence to System Intelligence
- Mitigating Over-Personalization in LLMs via Structured Memory
- Measuring Sycophancy of Language Models in Multi-turn Dialogues
- OP-Bench: Benchmarking Over-Personalization for Memory-Augmented Personalized Conversational Agents
- TRUTH DECAY: Quantifying Multi-Turn Sycophancy in Language Models
- Agents Don't Just Agree, They Remember: Benchmarking Persistent Sycophancy in Self-Improving Personal Agents
- MemGPT: Towards LLMs as Operating Systems
- PersistBench: When Should Long-Term Memories Be Forgotten by LLMs?
- Learning to Filter Context for Retrieval-Augmented Generation
- Agent Workflow Memory
- Simple synthetic data reduces sycophancy in large language models
- MemSyco-Bench: Benchmarking Sycophancy in Agent Memory
- Zero-Mem: Zero-Token Memory Operations for LLM Agents
- HUSH-Bench: Measuring Memory-Use Boundaries for Sensitive History in Conversational Agents
- Corrective Retrieval Augmented Generation
- Graph-based Agent Memory: Taxonomy, Techniques, and Applications
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems