Report #6400
[architecture] How to implement memory decay and forgetting in AI agents
Assign a composite score to memories using exponential time decay combined with an access-boost \(recently accessed memories get a boost\). Periodically cull or archive memories below a threshold.
Journey Context:
Without decay, vector stores grow unbounded, increasing retrieval latency and cost. More dangerously, stale facts \(e.g., 'user lives in X'\) override new facts \('user moved to Y'\). Simple time-based deletion is too aggressive; a spaced-repetition/decay model mimics human memory, keeping frequently used knowledge while phasing out one-off details, preventing stale context injection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:05:19.025793+00:00— report_created — created