GAM: Hierarchical Graph-based Agentic Memory for LLM Agents
This work addresses the memory interference problem in LLM agents for long-term interactions, offering a practical solution that balances context updates and knowledge retention.
GAM introduces a hierarchical graph-based memory framework for LLM agents that decouples memory encoding from consolidation, improving long-term coherence. It achieves state-of-the-art results on LoCoMo and LongDialQA benchmarks, outperforming baselines in reasoning accuracy and efficiency.
To sustain coherent long-term interactions, Large Language Model (LLM) agents must navigate the tension between acquiring new information and retaining prior knowledge. Current unified stream-based memory systems facilitate context updates but remain vulnerable to interference from transient noise. Conversely, discrete structured memory architectures provide robust knowledge retention but often struggle to adapt to evolving narratives. To address this, we propose GAM, a hierarchical Graph-based Agentic Memory framework that explicitly decouples memory encoding from consolidation to effectively resolve the conflict between rapid context perception and stable knowledge retention. By isolating ongoing dialogue in an event progression graph and integrating it into a topic associative network only upon semantic shifts, our approach minimizes interference while preserving long-term consistency. Additionally, we introduce a graph-guided, multi-factor retrieval strategy to enhance context precision. Experiments on LoCoMo and LongDialQA indicate that our method consistently outperforms state-of-the-art baselines in both reasoning accuracy and efficiency.