Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

DMF: A Deterministic Memory Framework for Conversational AI Agents

About

Conversational AI agents require memory systems that are both scalable and semantically coherent across long interaction horizons. Existing approaches rely predominantly on large language model (LLM)-based summarisation at write time, which introduces non-determinism, escalating token costs, and opacity in pruning decisions. We present the Deterministic Memory Framework (DMF), a CPU-first approach that replaces generative memory compression with a fully deterministic pipeline grounded in classical NLP analysis, vector geometry, and mathematical scoring. DMF assigns each conversational interaction a Survival Score $\Omega$ computed from deterministic content signals, conversational cues, and structured provenance, combined through a logistic projection. An interaction-count decay law, denoted as $\Omega_{\mathrm{eff}}(\Delta n)$, governs how relevance evolves as new turns arrive, where $\Delta n$ is the number of newer interactions rather than wall-clock time, preserving full determinism. We present the mathematical formulation of DMF, its structured recall pipeline, the pruning decision procedure, and the evaluation protocol. Experiments are conducted on a purpose-built benchmark using the LoCoMo and LongMemEval datasets. We compare DMF against Mem0, a popular memory layer for AI agents. DMF achieves comparable accuracy while using zero tokens to prepare the memory context and 5x to 242x fewer tokens over the entire conversation. These results show that it is possible to eliminate LLM calls from the memory-management loop, reducing token costs to nearly zero and enabling deterministic memory systems for conversational AI agents.

Matteo Stabile, Enrico Zimuel• 2026

Related benchmarks

TaskDatasetResultRank
Memory-augmented Question AnsweringLoCoMo Multi-Hop
Token F127.29
25
Long-term Memory Question AnsweringLoCoMo Overall
Average Judge Score77.53
4
Long-term Memory Question AnsweringLoCoMo Temporal
Average Judge Score70.72
2
Long-term memory evaluationLongMemEval-10
Overall Score0.717
2
Long-term Memory Question AnsweringLoCoMo Single-Hop
Average Judge Score81.81
2
Token Consumption AnalysisLocomo
E2E Input Tokens1.06e+7
2
Token Consumption AnalysisLongMemEval-10
E2E Input Tokens5.69e+5
2
Showing 7 of 7 rows

Other info

Follow for update