cs.AINov 25, 2026

TASK Memory: Beyond Text-Only Memory with Activation Steering and Knowledge Editing against Memory Hallucination

Authors: Jinkun Zhao, Wenjun Wu

Organizations: SKLCCSE, Institute of Artificial Intelligence Beihang University, Beijing, China · Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing Beihang University, Beijing, China

Abstract

LLM agents increasingly rely on external memory, yet they still hallucinate about what they remember. Often the correct memory is retrieved and placed in the prompt, but the answer contradicts it or the memory is applied to the wrong question. We call these use-time memory hallucinations. Across five open models, we find that they arise from the conflict between parametric knowledge and external memory and take three forms: memory-ignoring, where the model returns to a stale fact in its weights (up to 46% of queries); memory-misapplying, where it attributes the memory to unrelated entities (up to 24%, and 49% when retrieval is combined with weight editing); and version confusion, where 53% of answers about revised facts assert the superseded value when both versions remain stored. We propose TASK memory, which goes beyond text-only memory by combining a Text note with Activation Steering and Knowledge editing that share one in-model address. The text holds the content. A removable knowledge edit supplies the address through its subject key and supports multi-hop composition. A pair of steering vectors decides, query by query, whether the model adopts the memory or keeps its own answer; the vectors store no content and control how the text memory is used. On frozen models under a pre-registered, test-once protocol, TASK reduces memory-ignoring hallucinations to at most 1.5% in all ten model-dataset cells and cuts neighbour misuse from 39.2% to 7.5% (+10.8 pp composite on CounterFact). It improves a 300-memory library over BM25 RAG by 16.4 pp, an advantage that holds at 3,000 memories, resolves fact revisions without fact IDs, and adds 7.5 pp of multi-hop accuracy on MQuAKE. 21 of 23 cross-model comparisons (8B-27B, four families) are significant, and TASK beats three recent context-steering methods in 9 of 10 model-dataset cells.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Beyond Static Summarization: Proactive Memory Extraction for LLM Agents

    Jan 8, 2026Chengyuan Yang, Zequn Sun, Wei Wei +1Agent Memory ManagementPersistent Memory for Language Models

  2. FlexA-Mem: Budget-Adaptive Agentic Memory for LLM Agents

    Oct 23, 2026Wujiang Xu, Jiaojiao Han, Xi Zhu +5Memory Management for LLM AgentsStructured Memory for LLM Agents

  3. MMMem: Self-Improving Agents with Task-Aware Multimodal Experience Consolidation

    Nov 23, 2026Yuxuan Chen, Changwei Lv, Yunfei Li +9Multimodal MemoryMemory Consolidation for LLM Agents