AI Navigate

[P] Applying the Ebbinghaus forgetting curve to AI agent retrieval -- a biologically-inspired memory system

Reddit r/MachineLearning / 3/13/2026

💬 OpinionIdeas & Deep AnalysisTools & Practical UsageModels & Research

Key Points

  • The author introduces claude-memory, an open-source Python package that layers a biological memory model on top of hybrid retrieval (vector similarity via ChromaDB plus BM25 keyword scoring).
  • Five cognitive-science-inspired mechanisms re-rank retrieval results, including temporal decay modeled on the Ebbinghaus forgetting curve, evergreen exemptions, salience weighting, retrieval strengthening, and consolidation bonus.
  • The implementation features a delta-sync indexer using SHA-256 for incremental updates and a periodic notes generator that reinforces consolidation.
  • With 125 tests passing under an MIT license, the author solicits feedback on the decay parameterization and whether the Ebbinghaus curve is the best choice versus alternatives.

Most retrieval systems for AI agents treat all indexed content as equally available regardless of age, access frequency, or contextual importance. This doesn't reflect how effective memory systems actually work.

I built claude-memory, an open-source Python package that layers a biological memory model on top of hybrid retrieval (vector similarity via ChromaDB + BM25 keyword scoring). Five mechanisms from cognitive science re-rank retrieval results:

  1. Temporal decay modeled on the Ebbinghaus forgetting curve -- relevance scores decay as a function of time since last access
  2. Evergreen exemptions -- designated critical documents excluded from decay (analogous to highly-consolidated long-term memories)
  3. Salience weighting -- metadata-driven importance signals modulate decay rate
  4. Retrieval strengthening -- each access event boosts a document's score, modeling the testing effect
  5. Consolidation bonus -- documents referenced in periodic summary notes receive reinforcement, analogous to memory consolidation during review

The system includes a delta-sync indexer (SHA-256 for incremental updates) and a periodic notes generator that feeds back into the consolidation mechanism.

125 tests passing, MIT license. Interested in feedback on the decay model parameterization and whether the Ebbinghaus curve is the right choice versus alternative forgetting functions.

submitted by /u/haustorium12
[link] [comments]