Driven by the development of persistent, self-adapting autonomous agents, equipping these systems with high-fidelity memory access for long-horizon reasoning has emerged as a critical requirement. However, prevalent retrieval-based memory frameworks often follow an incremental processing paradigm that continuously extracts and updates conversational memories into vector databases, relying on semantic retrieval when queried. While this approach is fast, it inherently relies on lossy abstraction, frequently missing contextually critical information and struggling to resolve queries that rely on fine-grained contextual understanding. To address this, we introduce D-Mem, a dual-process memory system. It retains lightweight vector retrieval for routine queries while establishing an exhaustive Full Deliberation module as a high-fidelity fallback. To achieve cognitive economy without sacrificing accuracy, D-Mem employs a Multi-dimensional Quality Gating policy to dynamically bridge these two processes. Experiments on the LoCoMo and RealTalk benchmarks using GPT-4o-mini and Qwen3-235B-Instruct demonstrate the efficacy of our approach. Notably, our Multi-dimensional Quality Gating policy achieves an F1 score of 53.5 on LoCoMo with GPT-4o-mini. This outperforms our static retrieval baseline, Mem0∗ (51.2), and recovers 96.7% of the Full Deliberation's performance (55.3), while incurring significantly lower computational costs.
Figures & tables
Figure 1: Architectural overview of D-Mem. Components of Part A illustrates the memory mechanism of Mem0 ∗ . The elements highlighted in soft pale pink denote our key modifications over the original Mem0 framework: (1) utilizing the top-10 similar memories rather than a general summary during the Extraction Phase, and (2) incorporating an additional relevance filtering step prior to memory updates. Part B illustrates the Quality Gating mechanism, which evaluates the initial answer from Mem0 ∗ and dynamically determines whether to trigger the Full Deliberation fallback.
LoCoMo
RealTalk
Method
F1
LLM
BLEU
Time(s)
Tokens
F1
LLM
BLEU
Time(s)
Tokens
GPT-4o-mini
Full Context
46.2
72.3
37.8
–
–
–
–
–
–
–
RAG
20.8
30.2
16.4
–
–
–
–
–
–
–
LangMem
35.8
51.3
29.4
–
–
–
–
–
–
–
Mem0
41.5
61.3
34.2
–
–
–
–
–
–
–
Table 1: Summary of overall scores and efficiency across four settings. The baseline performance comes from Nan et al. (2025) and Zhou and Han (2025) .
Figure 2: F1 Improvement of Quality Gating over Mem0 ∗ by Question Category on the LoCoMo Dataset.
Method
Status
LoCoMo
RealTalk
Rate
F1
LLM
BLEU
Tokens
Rate
F1
LLM
BLEU
Tokens
GPT-4o-mini
Majority Voting
W/O FB
98.2%
51.6
73.4
41.4
6902.1
97.1%
38.0
61.1
23.9
7262.1
W/ FB
1.8%
35.1
59.3
28.7
41082.7
2.9%
19.7
38.1
17.3
58445.0
Consensus
W/O FB
75.5%
57.4
78.1
46.7
6834.7
70.5%
42.1
65.7
25.9
7148.4
W/ FB
24.5%
41.6
69.8
31.5
42315.1
29.5%
32.0
54.4
22.9
55959.9
Table 2: Impact of Fallback Mechanism in Gated Deliberation across Datasets. W/O FB: Without Fallback; W/ FB: With Fallback; Rate: Percentage of queries falling into this routing status.