HyperAIHyperAI

Command Palette

Search for a command to run...

MemAdapter: 기억 유발 아첨(sycophancy) 현상에 대응하는 반사실 적응

Ruqing Ning Haibo Meng Zhishang Xiang Zerui Chen Jinsong Su Xin Wang Qinggang Zhang

초록

장기 기억은 LLM 기반 에이전트가 작업과 세션 전반에 걸쳐 정보를 보유하고 재사용할 수 있게 하여 개인화와 장기적 상호작용을 지원한다. 그러나 지속적 기억은 아첨(sycophancy) 현상도 유발할 수 있으며, 사용자의 과거 신념이 부정확하거나 시대에 뒤떨어지거나 객관적 증거와 불일치하더라도 에이전트가 지나치게 동조하게 만들 수 있다. 기존 완화 방법들은 기억 유발 아첨이 편향되거나 잘못된 기억에서 비롯된다고 가정하고, 기억 파이프라인의 여러 단계에서 그러한 기억을 필터링하여 위험을 줄이려 한다. 그러나 실제 세계에서는 객관적이고 올바른 기억도 여전히 아첨을 유발할 수 있으며, 동일한 기억이 맥락에 따라 상이한 영향을 미치는 것이 타당할 수 있다. 이를 위해 우리는 검색된 기억을 적응적으로 통합하여 객관적이고 신뢰할 수 있는 추론을 지원하는 새로운 프레임워크인 MemAdapter를 제안한다. 구체적으로 MemAdapter는 세 가지 구성 요소로 이루어진다: (i) 반사실 유도(Counterfactual Induction)는 반사실적 추론을 활용하여 검색된 기억의 잠재적 위험을 드러낸다; (ii) 맥락 인지 성찰(Context-Aware Reflection)은 자기 성찰을 통해 현재 과제에 비추어 각 검색 기억의 추론적 영향을 보정한다; (iii) 증거 기반 추론(Evidence-Based Reasoning)은 기억의 정당한 영향을 보존하면서도 최종 응답을 적절한 증거에 근거하게 한다. 세 가지 벤치마크에 대한 광범위한 실험은 MemAdapter가 다양한 시나리오에서 기억 신뢰성을 일관되게 향상시킨다는 것을 보여준다. 코드는 https://github.com/DEEP-JLU/MemAdapter에서 확인할 수 있다.

One-sentence Summary

Researchers from Jilin University and Xiamen University propose MemAdapter, a framework that adaptively integrates retrieved memories through counterfactual induction, context-aware reflection, and evidence-based reasoning to reduce memory-induced sycophancy in LLM-based agents, addressing the limitations of prior filtering methods and improving memory reliability across three benchmarks.

Key Contributions

  • Identifies a post-retrieval failure mode in long-term memory agents where even accurate and relevant memories can be used beyond what the current task justifies, and introduces MemAdapter, a post-retrieval adaptation framework that dynamically adjusts how retrieved memories participate in reasoning without modifying upstream memory systems.
  • MemAdapter uses Counterfactual Induction to infer conditional-use rules and uncover potential memory risks, Context-Aware Reflection to calibrate each memory’s inferential influence for the current task and evidence, and Evidence-Based Reasoning to ground final responses while preserving legitimate memory influence.
  • Experiments on MemSyco-Bench, Persist-Bench, and MemTrapBench demonstrate consistent improvements in memory-use reliability across different memory systems and backbone models.

Introduction

Long-term memory has become a core component of LLM-based agents, enabling them to retain and reuse user information across tasks and sessions for personalization and long-horizon interaction. However, this same memory can reintroduce past user beliefs, preferences, and judgments into later reasoning, creating memory-induced sycophancy where agents over-align with outdated or inaccurate views. Prior mitigation methods mostly intervene before reasoning at the extraction, retrieval, or organization stages, treating the problem as biased or incorrect memory content. The authors argue that even accurate and task-relevant memories can be misused depending on the reasoning context, making appropriate memory influence a relational property rather than an intrinsic one. To address this gap, they propose MemAdapter, a post-retrieval adaptation framework that uses counterfactual induction, context-aware reflection, and evidence-based reasoning to regulate how retrieved memories influence final answers while preserving their legitimate use.

Method

The authors propose MemAdapter, a framework designed to mitigate memory-induced sycophancy by carefully calibrating the influence of retrieved memories during reasoning. As shown in the figure below, the architecture comprises three core modules: Counterfactual Induction, Context-Aware Reflection, and Evidence-Based Reasoning.

The first module, Counterfactual Induction, addresses the conditional nature of memory-induced risks. Rather than evaluating a memory in isolation, the authors formulate risk identification as a boundary-discovery problem. For each retrieved memory mim_imi​, the model holds the memory content fixed and systematically varies plausible downstream task conditions to construct a counterfactual task space, denoted as Hi={(tij,hij)}j=1Ni\mathcal{H}_i = \{(t_{ij}, h_{ij})\}_{j=1}^{N_i}Hi​={(tij​,hij​)}j=1Ni​​, where tijt_{ij}tij​ represents a task type and hijh_{ij}hij​ instantiates a concrete request and evidence configuration. The model then assesses the appropriate contribution vijv_{ij}vij​ of the memory in each setting, forming the set Vi={(hij,vij)}j=1Ni\mathcal{V}_i = \{(h_{ij}, v_{ij})\}_{j=1}^{N_i}Vi​={(hij​,vij​)}j=1Ni​​. By comparing these setting-specific contributions and grouping settings with equivalent impacts, the module induces a cross-context risk characterization Bi={(air,vir)}r=1RiB_i = \{(a_{ir}, v_{ir})\}_{r=1}^{R_i}Bi​={(air​,vir​)}r=1Ri​​, which provides a task-agnostic boundary of potential risks for subsequent calibration.

The second module, Context-Aware Reflection, bridges the gap between cross-context boundaries and the specific downstream task. Given the current request qqq, available evidence ccc, retrieved memories M\mathcal{M}M, and the conditional boundaries B\mathcal{B}B, the model performs self-reflection to reassess each memory in context. It examines each mim_imi​ alongside its boundary BiB_iBi​ to account for updates, qualifications, and conflicts among the retrieved set. This process yields a task-conditioned representation U={ui}i=1n\mathcal{U} = \{u_i\}_{i=1}^nU={ui​}i=1n​, where each uiu_iui​ serves as a natural-language instruction detailing exactly what the memory may support, which parts of the reasoning it may affect, the extent of its influence, and the conclusions it cannot justify.

The final module, Evidence-Based Reasoning, ensures that the calibrated constraints are strictly respected during answer generation. It prevents useful personalization information from being implicitly promoted into factual evidence. Given the inputs q,c,Mq, c, \mathcal{M}q,c,M, and the influence instructions U\mathcal{U}U, the system jointly generates the final answer yyy and an internal answer-support trace L\mathcal{L}L according to the function (y,L)=REBR(q,c,M,U)(y, \mathcal{L}) = \mathcal{R}_{\mathrm{EBR}}(q, c, \mathcal{M}, \mathcal{U})(y,L)=REBR​(q,c,M,U). The support trace L\mathcal{L}L explicitly associates each major response span with its role, supporting source, and applicable memory-influence instruction. Before returning the final response yyy to the user, the framework verifies that every recorded source is present, supports the corresponding span, and that all memory usage remains within the scope defined by its instruction.

Experiment

A preliminary study shows that even accurate, task-relevant memories can induce sycophancy, so memory risk depends on contextual use rather than content alone. The main experiments evaluate MemAdapter across three memory-use benchmarks and five memory systems, finding consistent improvements in appropriate memory use, robustness across heterogeneous memory systems, and advantages over existing intervention methods. Cross-backbone tests further indicate that these benefits generalize beyond the primary backbone, though gains vary by memory system and task dimension. Ablation results attribute much of the improvement to Counterfactual Induction, with additional benefit from Evidence-Based Reasoning.

MemAdapter improves memory-use behavior over direct generation and existing interventions across MemSyco-Bench, PersistBench, and MemTrapBench. Gains are consistent for MemSyco-Bench dimensions and MemTrapBench scores across evaluated memory systems, while sycophancy failure also decreases on PersistBench. Some PersistBench metrics, particularly beneficial-memory failure, show memory-system-dependent trade-offs. MemAdapter achieves the best When to Use Memory and How to Use Memory accuracy among compared interventions across all evaluated memory systems. Compared with direct generation, MemAdapter improves both MemTrapBench scores across all evaluated memory systems and reduces sycophancy failure rates on PersistBench. In the NaiveRAG block, MemAdapter improves most metrics but slightly increases beneficial-memory failure rate, illustrating a memory-system-dependent trade-off.

MemAdapter improves overall memory-use performance over direct generation across both GPT-5.6-sol and Qwen3-8B backbones. The gains vary by memory system and task dimension, with Qwen3-8B showing especially clear improvements in memory-evidence conflict handling and valid memory selection. Personalized memory use improves consistently with Qwen3-8B but shows mixed changes with GPT-5.6-sol. MemAdapter raises average accuracy relative to direct generation across the evaluated memory systems and backbones. Under Qwen3-8B, gains are particularly pronounced for memory-evidence conflict handling and valid memory selection, while GPT-5.6-sol shows more moderate or mixed changes in some systems. Personalized memory use improves across evaluated memory systems with Qwen3-8B, whereas GPT-5.6-sol exhibits mixed changes, including declines for some memory systems.

Across both tested memory systems, MemAdapter progressively improves memory-use accuracy over direct generation as more components are added. Counterfactual Induction produces broad gains across all task-specific metrics, and the final Evidence-Based Reasoning stage adds further improvement, especially in valid memory selection and average accuracy. The full configuration achieves the highest reported accuracy within each represented memory system. Counterfactual Induction yields consistent improvements across every task-specific metric and substantially raises average accuracy over direct generation for both memory systems. Adding Evidence-Based Reasoning provides further gains, with the full configuration achieving the best average performance and a notable increase in valid memory selection.

The evaluation spans MemSyco-Bench, PersistBench, and MemTrapBench, comparing MemAdapter with direct generation and existing interventions across multiple memory systems and backbones. MemAdapter consistently improves memory-use accuracy, especially for When to Use Memory, How to Use Memory, conflict handling, and valid memory selection, while also reducing sycophancy failure, though some PersistBench beneficial-memory metrics show memory-system-dependent trade-offs. Ablations indicate that Counterfactual Induction provides broad gains and Evidence-Based Reasoning adds further improvements, with the full configuration achieving the best performance.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp