Mechanistic Attention Guidance for Agent Memory Refinement
Abstract
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/AGMRcode-3262/
Create a lesson
Related papers
WebCoach: Self-Evolving Web Agents with Cross-Session Memory Guidance
Shared title terminologycs.AIGenglin Liu, Shijie Geng, Sha Li et al.
Agentic Waterfall: An Intent-Driven Information Discovery Framework for Reclaiming User Control in the Attention Economy
Shared title terminologycs.AIYige Luo, Shining Zhang, Jikun Liu et al.
Coordinating from Memory: Graph-Structured Experience Reuse for Multi-Agent Adaptation in Dynamic Manufacturing
Shared title terminologycs.AIChengxiao Dai, Zhanhui Lin, Zhaokun Yan et al.
Supra Cognitive Modes: A Routed Architecture for Agent Memory
Shared title terminologycs.AIJoshua Tobkin, David Yang
SR-Agent: An Experience-Driven Agentic Framework for Post-Ranking Strategy Refinement in E-Commerce Recommendation
Shared title terminologycs.AIHanchen Yang, Kaiwen Yang, Junpeng Zhuang et al.
Retain or Consolidate? Budget-Dependent Operator Selection for Language Agent Memory
Shared title terminologycs.AIQingcan Kang, Mingyang Liu, Shixiong Kai et al.