GAAMA: Graph Augmented Associative Memory for Agents

Swarna Kamal Paul, Shubhendu Sharma, Nitin Sareen
3/29/2026
cs.AIcs.IRcs.MA

No official code found. Best implementation: swarna-kpaul/gaama (7 stars, MIT, last commit 2026-04-25).

Abstract

AI agents that interact with users across multiple sessions require persistent long-term memory to maintain coherent, personalized behavior. Current approaches either rely on flat retrieval-augmented generation (RAG), which loses structural relationships between memories, or use memory compression and vector retrieval that cannot capture the associative structure of multi-session conversations. There are few graph based techniques proposed in the literature, however they still suffer from hub dominated retrieval and poor hierarchical reasoning over evolving memory. We propose GAAMA, a graph-augmented associative memory system that constructs a concept-mediated hierarchical knowledge graph through a three-step pipeline: (1)~verbatim episode preservation from raw conversations, (2)~LLM-based extraction of atomic facts and topic-level concept nodes, and (3)~synthesis of higher-order reflections. The resulting graph uses four node types (episode, fact, reflection, concept) connected by five structural edge types, with concept nodes providing cross-cutting traversal paths that complement semantic similarity. Retrieval combines cosine-similarity-based $k$-nearest neighbor search with edge-type-aware Personalized PageRank (PPR) through an additive scoring function. On the LoCoMo-10 benchmark (1,540 questions across 10 multi-session conversations), GAAMA achieves 78.9\% mean reward, outperforming a tuned RAG baseline (75.0\%), HippoRAG (69.9\%), A-Mem (47.2\%), and Nemori (52.1\%). Ablation analysis shows that augmenting graph-traversal-based ranking (Personalized PageRank) with semantic search consistently improves over pure semantic search on graph nodes (+1.0 percentage point overall).

View on arXivView PDF

Code Implementations(1)

swarna-kpaul/gaamaCommunity74%
MIT

GAAMA: Graph Augmented Associative Memory for Agents

71PythonMar 23, 20265 months agoMIT

Similar Papers

Cite this paper

@article{paul2026gaama,
  title  = {GAAMA: Graph Augmented Associative Memory for Agents},
  author = {Swarna Kamal Paul and Shubhendu Sharma and Nitin Sareen},
  year   = {2026},
  eprint = {2603.27910},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.27910v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.27910.svg)](https://codeofpaper.com/paper/2603.27910)

Discussion