Mechanistic Attention Guidance for Agent Memory Refinement
Not on the map. Why?
Abstract (arXiv)
Existing self-evolving memory systems mainly improve agent memory based on textual outputs, such as task trajectories and reflections. However, this text-based paradigm rarely incorporates internal mechanistic signals, leaving how retrieved memory is actually utilized during task execution underexplored. This limitation can lead to unreliable error attribution and hallucinated memory modifications. In this work, we show that retrieval-head attention provides a mechanistic signal for revealing segment-level memory utilization. By aggregating attention over memory segments and decision steps, we construct a context utilization matrix that exposes recurring memory-use patterns and indicates corresponding refinement strategies. Building on this observation, we propose Attention-Guided Memory Refinement (AGMR), a framework that uses utilization patterns revealed by attention to guide targeted segment-level memory updates. AGMR corrects or enhances memory for failed executions, simplifies memory for successful executions, and verifies each update through re-execution. Experiments on interactive decision-making benchmarks show that AGMR improves both task performance and memory efficiency over text-only memory refinement baselines. Code is available at https://anonymous.4open.science/r/AGMR_code-3262/
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 39 of its 43 references that are in the map. First posted on arXiv 20 Jul 2026.
Builds on
39 of 43 references.
References · 39
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,502
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,156
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,541
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,135
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,219
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,167
- 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,101
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,032
- 2023Towards Understanding Sycophancy in Language Modelscited by 1,018
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 856
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 842
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 813
27 more
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 760
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 551
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 432
- 2024Agent Workflow Memorycited by 372
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 371
- 2022ScienceWorld: Is your Agent Smarter than a 5th Grader?cited by 309
- 2025Memory in the Age of AI Agentscited by 291
- 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memorycited by 269
- 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learningcited by 229
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 224
- 2025Why Language Models Hallucinatecited by 213
- 2024Trial and Error: Exploration-Based Trajectory Optimization for LLM Agentscited by 194
- 2023Synapse: Trajectory-as-Exemplar Prompting with Memory for Computer Controlcited by 185
- 2025Chain-of-Thought Reasoning In The Wild Is Not Always Faithfulcited by 169
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memorycited by 150
- 2024Faithfulness vs. Plausibility: On the (Un)Reliability of Explanations from Large Language Modelscited by 105
- 2025Memp: Exploring Agent Procedural Memorycited by 99
- 2025Remember Me, Refine Me: A Dynamic Procedural Memory Framework for Experience-Driven Agent Evolutioncited by 71
- 2025FLEX: Continuous Agent Evolution via Forward Learning from Experiencecited by 51
- 2025The Hallucination Tax of Reinforcement Finetuningcited by 39
- 2025Query-Focused Retrieval Heads Improve Long-Context Reasoning and Re-rankingcited by 31
- 2024FaithLM: Towards Faithful Explanations for Large Language Modelscited by 19
- 2026Trajectory-Informed Memory Generation for Self-Improving Agent Systemscited by 17
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentationcited by 11
- 2025Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inferencecited by 10
- 2024QUITO: Accelerating Long-Context Reasoning through Query-Guided Context Compressioncited by 7
Built on by
Not cited yet.