Back to browse
GitHub Repository

Agentic AI memory with Ebbinghaus forgetting curve decay. +16pp better recall than Mem0 on LoCoMo.

245 starsPython

AI memory with biological decay (52% recall)

by SachitRafa·Apr 26, 2026·98 points·53 comments

AI Analysis

●●SolidBig BrainShip It

Ebbinghaus forgetting curve cuts token waste 84% while doubling recall versus Zep.

Strengths
  • Biological decay model prevents context window pollution from stale data automatically.
  • Benchmarked on LoCoMo dataset showing 59% Recall@5 versus 28% for Zep Cloud.
  • Local-first DuckDB implementation requires zero external infrastructure or API keys.
Weaknesses
  • CC BY-NC license blocks commercial use, limiting adoption for professional teams.
  • AI memory space is crowded with Mem0 and Letta offering similar persistent layers.
Category
Target Audience

AI agent developers, LLM application builders

Similar To

Zep · Mem0 · Letta

Post Description

Most RAG setups fail because they treat memory like a static filing cabinet. When every transient bug fix or abandoned rule is stored forever, the context window eventually chokes on noise, spiking token costs and degrading the agent's reasoning.

This implementation experiments with a biological approach by using the Ebbinghaus forgetting curve to manage context as a living substrate. Memories are assigned a "strength" score where each recall reinforces the data and flattens its decay curve (spaced repetition), while unused data eventually hits a threshold and is pruned.

To solve the "logical neighbor" problem where semantic search misses relevant but non-similar nodes, a graph layer is layered over the vector store. Benchmarked against the LoCoMo dataset, this reached 52% Recall@5, nearly double the accuracy of stateless vector stores, while cutting token waste by roughly 84%.

Built as a local first MCP server using DuckDB, the hypothesis is that for agents handling long-running projects, "what to forget" is just as critical as "what to remember." I'd be interested to hear if others are exploring non-linear decay or similar biological constraints for context management.

GitHub: https://github.com/sachitrafa/cognitive-ai-memory

Similar Projects

AI/ML●●●Banger

Hippo, biologically inspired memory for AI agents

Biological decay mechanics beat vector search for agent memory that actually forgets.

Big BrainZero to OneNiche Gem
kitfunso
128292mo ago
Developer Tools●●●Banger

MuninnDB – ACT-R decay and Hebbian memory for AI agents

ACT-R decay and Hebbian learning as native primitives, not vector hacks.

Big BrainWizardryNiche Gem
mjbonanno
273mo ago
AI/ML●●●Banger

Sulcus Reactive AI Memory

Thermodynamic memory decay beats passive vector search—90% token reduction claimed.

Big BrainWizardry
mcdoolz
403mo ago