arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.20202

MemTrapBench: Benchmarking Cognitive Traps in LLM Memory Use

Mengru Wang, Haozhe Luo, Zhenqian Xu, Zhixiang Cui, Haoming Xu, Qu Yang, Jizhan Fang, Junfeng Fang, Ningyu Zhang

Abstract

Memory has become a key component of large language models, enabling them to retain information and learn from long-term interactions. However, existing memory benchmarks mainly evaluate whether information is correctly extracted, stored, and retrieved, while largely overlooking how retrieved memories reshape model reasoning and affect performance on the current task. We identify memory-induced cognitive traps: even faithfully recorded and semantically relevant memories can distort model reasoning or beliefs and degrade current task performance. To systematically evaluate these failure modes, we introduce MemTrapBench, which covers two forms of cognitive traps: Reasoning Fixation and Belief Distortion. Experiments across two model families and five representative memory frameworks show that MemTrapBench is challenging: all evaluated memory strategies underperform the no-memory setting, with even the strongest methods suffering drops of more than 10%. To mitigate these cognitive traps, we propose AdaptiveMem, a simple yet effective inference-time method that instructs LLMs to avoid memory traps. AdaptiveMem mitigates cognitive traps on MemTrapBench while preserving or improving performance on standard memory benchmarks across diverse memory frameworks .

1Zhejiang University, 2National University of Singapore,

3Northeastern University, 4Heriot-Watt University, 5Tencent

mengruwg@zju.edu.cn, zhangningyu@zju.edu.cn

1 Introduction

Figure

Figure 1: Memory is not always what you need. (a) Without memory, Gemini-3-Flash-Preview finds the factorial solution to the query. The retrieved memory contains valid and relevant examples in this figure that are solved using basic arithmetic, but it causes the model to fixate on the same operation regime and prevents it from considering factorial. (b) On Gemini-3-Flash-Preview, using the full interaction history memory reduces performance across all four Memory Trap scenarios compared with the no-memory setting.

Recent memory frameworks have made substantial progress (Huang et al. 2026; Zhang et al. 2025; Yu et al. 2026; Zhang et al. 2026c; Zhang et al. 2026b; Tan et al. 2026; Hu et al. 2025b) in extending the effective context available to large language models (LLMs) and agents (Du et al. 2025; Wu et al. 2025b; Hu et al. 2025b; Chen et al. 2026; Yan et al. 2026). Most existing studies focus on constructing and maintaining external memory from long interaction histories, then retrieving relevant information to support subsequent queries (Behrouz et al. 2025; Xu et al. 2026a; Chhikara et al. 2025; Tan et al. 2025b; Shen et al. 2026; Uddin et al. 2026; Wang et al. 2025a; Tavakoli et al. 2025). Accordingly, existing benchmarks primarily assess memory extraction, storage, updating, and retrieval (Tan et al. 2025a; Wu et al. 2025a; Hu et al. 2025a).

Yet memory is not always what we need, as it may impair rather than enhance model capabilities. Prior work has mainly studied failures arising from memory-management issues, such as outdated or incorrect memories, extraction and update errors, irrelevant retrieval, and failure to retrieve required information (Schacter et al. 2011; Tang et al. 2026; Hu et al. 2025a). In contrast, we focus on a complementary question: how does memory use itself reshape model reasoning and affect performance on the current task? We show that memory can degrade performance relative to answering the same query without memory by inducing cognitive traps. Fig. 1(a) illustrates this phenomenon with a number game, where the goal is to reach 24 using a given set of numbers. The memory contains previously solved instances using addition, subtraction, multiplication, and division. However, the new instance [4,1,1,1][4,1,1,1] requires the higher-order factorial operation, yielding 4!×1×1×1=244!\times 1\times 1\times 1=24 . Without memory, the model identifies this solution. With memory, it repeatedly explores the previously successful space of basic operations and overlooks factorial, leading to strategy fixation. The prior solutions remain valid, yet they anchor the model to a particular reasoning pattern and limit its exploration of alternatives. We refer to such failures as memory-induced cognitive traps.

To address this gap, we introduce MemTrapBench, a benchmark for evaluating memory-induced cognitive traps in LLMs. As illustrated in Fig. 2, we construct MemTrapBench through carefully designed trap seeds, multi-turn dialogue generation, and two-stage quality control combining automated filtering with expert validation. Our MemTrapBench contains 1,050 instances spanning four scenarios under two categories: Reasoning Fixation and Belief Distortion. Reasoning Fixation includes Cognitive Bias and Trauma, which capture fixation within a task, and Task Boundary, which examines whether previously established strategies persist across task transitions. Belief Distortion is instantiated by Safety, which tests whether counterfactual or sandbox-specific premises in history override otherwise straightforward safety judgments. Rather than evaluating individual stages of memory management, MemTrapBench focuses on how memory changes the reasoning strategies, beliefs, and capabilities expressed on the current task. The most closely related concurrent work is MemSyco-Bench, which focuses on memory-induced sycophancy. In contrast, MemTrapBench studies a broader range of cognitive traps in which memory distorts the model’s reasoning strategies or beliefs. We provide a more detailed comparison in the Related Work section.

We evaluate MemTrapBench on the Gemini and Qwen model families using full interaction histories and four recent memory frameworks. All evaluated memory strategies reduce performance relative to the no-memory setting. Specifically, even the strongest memory method suffers a performance drop of more than 10 percentage points on Gemini-3-Flash-Preview and Qwen3-30B-A3B-Instruct-2507. Controlled experiments further show that this degradation is driven by trap-inducing memory semantics rather than context length alone. To mitigate these failures, we propose AdaptiveMem, a prompt-based skill that guides LLMs to identify and account for potential memory traps before using memory. As a flexible prompt, AdaptiveMem can be directly integrated into diverse memory frameworks without modifying their underlying architectures. It consistently improves these frameworks on MemTrapBench, while preserving or enhancing their performance on standard memory benchmarks. On Gemini-3-Flash-Preview, AdaptiveMem improves LightMem (Fang et al. 2025) by 14.9 percentage points on MemTrapBench without degrading its general memory performance.

The main contributions are summarized as follows:

  • We formulate memory-induced cognitive traps, showing that memory use can reshape model reasoning or beliefs and degrade current-task performance.
  • We introduce MemTrapBench to evaluate cognitive traps in existing memory frameworks and show that all evaluated frameworks are vulnerable to them.
  • We propose AdaptiveMem, a prompt-based skill for more reliable memory use.

Figure

Figure 2: Overview of our MemTrapBench construction.

References (49)