Graph-Native Cognitive Memory for AI Agents: Formal Belief Revision Semantics for Versioned Memory Architectures
Abstract
While individual components for AI agent memory exist in prior systems, their architectural synthesis and formal grounding remain underexplored. We present Kumiho, a graph-native cognitive memory architecture grounded in formal belief revision semantics. The structural primitives required for cognitive memory -- immutable revisions, mutable tag pointers, typed dependency edges, URI-based addressing -- are identical to those required for managing agent-produced work as versionable assets, enabling a unified graph-native architecture that serves both purposes. The central formal contribution is a correspondence between the AGM belief revision framework and the operational semantics of a property graph memory system, proving satisfaction of the basic AGM postulates (K2--K6) and Hansson's belief base postulates (Relevance, Core-Retainment). The architecture implements a dual-store model (Redis working memory, Neo4j long-term graph) with hybrid fulltext and vector retrieval. On LoCoMo (token-level F1), Kumiho achieves 0.565 overall F1 (n=1,986) including 97.5% adversarial refusal accuracy. On LoCoMo-Plus, a Level-2 cognitive memory benchmark testing implicit constraint recall, Kumiho achieves 93.3% judge accuracy (n=401); independent reproduction by the benchmark authors yielded results in the mid-80% range, still substantially outperforming all published baselines (best: Gemini 2.5 Pro, 45.7%). Three architectural innovations drive the results: prospective indexing (LLM-generated future-scenario implications indexed at write time), event extraction (structured causal events preserved in summaries), and client-side LLM reranking. The architecture is model-decoupled: switching the answer model from GPT-4o-mini (~88%) to GPT-4o (93.3%) improves end-to-end accuracy without pipeline changes, at a total evaluation cost of ~$14 for 401 entries.
Figures & tables
| Dim. | Graphiti | Mem0 | Letta | Hindsight | Ours |
|---|---|---|---|---|---|
| Version | Bitemporal | Timestamped | Git | None | Immutable+tags |
| Conflict | Temporal | LLM | Git merge | Conf | AGM Supersedes |
| Retrieval | BM25+vec | Graph | File | 4-net | Hybrid |
| Formal | None | None | None | None | AGM postulates |
| URI | × | × | Git | × | kref:// |
| Consol | Temporal | None | Git GC | None | Dream State |
| Asset | Memory | Concept |
|---|---|---|
| Project | Scope | Container |
| Space | Topic | Namespace |
| Item | Unit | Identity |
| Revision | Belief | Snapshot |
| Artifact | Evidence | Pointer |
| Tag | Status | Mutable ref |
| Type | Implementation |
|---|---|
| Working | Redis buffer (TTL) |
| Episodic | Conversations |
| Semantic | Consolidated facts |
| Procedural | Tool execution |
| Associative | Graph edges |
| Meta | Tags + audit |
| Postulate | System Mechanism | Status |
| Primary formal claims (proved): | ||
| Success | New revision contains ; tag updated | ✓ |
| Inclusion | Base-level: | ✓ |
| Vacuity | No conflict no retraction needed | ✓ |
| Consistency | Supersedes replaces, not accumulates | ✓ |
| Extensionality | Syntactic = logical equiv. for ground atoms | ✓ |
| Mode | Context | Reranker | Cost |
|---|---|---|---|
| client | Agent via MCP | Host agent LLM | Zero |
| dedicated | API / Playground | User’s model | User’s key |
| auto | Any | Detect context | Adaptive |
| Guard | Mechanism |
|---|---|
| Dry Run | Assessment-only mode |
| Published Protect | Never deprecate “published” |
| Circuit Breaker | Max 50% deprecation |
| Error Isolate | Per-action try/except |
| Audit Report | Markdown report artifact |
| Cursor Persist | Resume from checkpoint |
| Threat | Mitigation |
|---|---|
| PII leakage via summaries | LLM-based redaction before graph ingest. Limitation : LLM redaction has non-zero false negative rates; no formal guarantees. |
| Membership inference via embeddings | Embeddings are stored per-tenant in isolated database partitions. Limitation : embedding inversion attacks are an active research area. |
| Prompt injection in Dream State | Consolidation operates on stored metadata, not raw user input; safety guards (circuit breaker, published protection) limit blast radius. |
| Metadata re-identification | Topics and keywords can be identifying even without PII. Limitation : current redaction targets named entities, not topical fingerprints. |
| Malicious artifacts via tool output | Artifact pointers are stored, not artifact content; the graph never executes or parses artifact data. |
| Credential leakage | The ingest pipeline rejects known credential patterns (API keys, tokens) before summarization. |
| Dimension | Flat RAG | Tiered Buffers | Extended Context | Static KG | Kumiho |
|---|---|---|---|---|---|
| Retrieval | Embedding only | Embedding + scan | In-context | Query language | Hybrid + graph nav |
| Statefulness | Stateless | Tiered buffers | Ephemeral | Current state | Versioned history |
| Relationships | None | None | None | Fixed ontology | 6 typed edge types |
| Provenance | None | None | None | Schema-dependent | Complete lineage |
| Temporal Nav. | Point-in-time | Current window | Current window | Mostly current | Full history + tags |
| Consolidation | None | Manual / rule | N/A | Batch ETL | LLM Dream State |
| Feature | Graphiti | Mem0g | A-MEM | Letta | MAGMA | Hindsight | MemOS | Kumiho |
| Property graph storage | ✓ | ✓ | (✓) | ✓ | ✓ | |||
| Hybrid retrieval ( 2 modalities) | ✓ | (✓) | (✓) | (✓) | ✓ | |||
| Immutable revision history | (✓) | (✓) | (✓) | ✓ | ||||
| Formal belief revision | ✓ | |||||||
| URI-based addressing | ✓ | |||||||
| Typed edge ontology ( 6) | (✓) | (✓) | (✓) | ✓ |
| # | Principle | Category |
|---|---|---|
| 1 | Structural Reuse | Structure |
| 2 | Universal Addressability | Structure |
| 3 | Immutable Rev., Mutable Ptr. | Formal |
| 4 | Explicit Over Inferred Rel. | Formal |
| 5 | Non-Blocking Enhancement | Performance |
| 6 | Conservative Memory Mgmt. | Safety |
| Type | Summary | Raw | Ratio |
|---|---|---|---|
| Simple fact | 12 | 500 | 42 |
| Preference | 18 | 800 | 44 |
| Profile | 80 | 4K | 50 |
| Paper session | 65 | 12K | 185 |
| Planning | 90 | 25K | 278 |
| System | Single | Multi | Temp. | Open | Overall | Source |
| Zep | 0.357 | 0.194 | 0.420 | 0.496 | — | Zep (2025) |
| OpenAI Mem | — | — | — | — | 0.34 | Zep (2025) |
| Mem0 | 0.387 | 0.286 | 0.489 | 0.477 | 0.40 | Zep (2025) |
| Mem0-Graph | 0.381 | 0.243 | 0.516 | 0.493 | 0.40 | Zep (2025) |
| Memobase | 0.463 | 0.229 | 0.642 | 0.516 | — | Memobase (2025) |
| ENGRAM | 0.231 | 0.183 | 0.219 | 0.086 | 0.211 | Patel and Patel (2025) |
| Category | F1 | |
| Single-hop | 841 | 0.462 |
| Multi-hop | 282 | 0.355 |
| Temporal | 321 | 0.533 |
| Open-domain | 96 | 0.290 |
| Retrieval average | 1,540 | 0.447 |
| Adversarial (refusal acc.) † | 446 | 0.975 |
| Innovation | LoCoMo-Plus | LoCoMo F1 |
|---|---|---|
| Prospective idx | Bridges cue-trigger gap | Improves temporal/multi-hop |
| Event extraction | Preserves causal chains | Preserves factual detail |
| LLM reranking | 100% goal retrieval hit | Better sibling selection |
| Graph-aug. recall | Connected memory discovery | Multi-hop 0.355 (best) |
| System | Model | Acc. (%) |
| RAG (text-ada-002) | text-ada-002 | 23.5 |
| RAG (text-embed-small) | text-embed-small | 24.9 |
| RAG (text-embed-large) | text-embed-large | 29.8 |
| Mem0 | Various | 41.4 |
| A-MEM | Various | 42.4 |
| SeCom | Various | 42.6 |
| Type | Correct | 4o (%) | 4o-mini (%) | |
|---|---|---|---|---|
| Causal | 101 | 97 | 96.0 | 96.0 |
| State | 100 | 96 | 96.0 | 95.0 |
| Value | 100 | 96 | 96.0 | 89 |
| Goal | 100 | 85 | 85.0 | 73 |
| Overall | 401 | 374 | 93.3 | 88 |
| Time Gap | Acc. (%) | Notes | |
|---|---|---|---|
| 2 weeks | 35 | 88.6 | More goal-type entries |
| 2 wk – 1 mo | 77 | 97.4 | Peak performance |
| 1 – 3 mo | 164 | 93.9 | Largest cohort |
| 3 – 6 mo | 93 | 93.5 | No degradation |
| 6 mo | 32 | 84.4 | Cliff eliminated |
| Post. | Simple | Multi | Chain | Temp. | Adv. | Pass |
|---|---|---|---|---|---|---|
| ✓ | ✓ | ✓ | ✓ | ✓ | 100% | |
| ✓ | ✓ | ✓ | ✓ | ✓ | 100% | |
| ✓ | ✓ | ✓ | ✓ | ✓ | 100% | |
| ✓ | ✓ | ✓ | ✓ | ✓ | 100% | |
| ✓ | ✓ | – | ✓ | ✓ | 100% | |
| Rel. | ✓ | ✓ | ✓ | ✓ | ✓ | 100% |
Graph-Based Agent Memory
Graph-based agent memory organizes an agent’s experiences, facts, and procedures as linked structures for persistent, evidence-aware retrieval and reuse.
See all 133 papers