RL-Guided Temporal Localization for Dual-Channel Retrieval in Long-Horizon Agent Memory
Organizations: Key Laboratory of Pervasive Computing, Ministry of Education, Department of Computer Science and Technology, Tsinghua University · Qiyuan Lab
Abstract
Time-aware retrieval is crucial for long-horizon LLM agents to effectively leverage ever-growing long-term memory. Existing methods focus on lexical or semantic similarity, leading to target memories being crowded out by temporally mismatched yet semantically similar candidates. Even time-aware approaches inject temporal cues only during memory organization or answer generation, overlooking temporal constraints at the retrieval stage, where candidate selection occurs - the root cause of the displacement. Inspired by the temporal contiguity effect in human episodic memory, we propose TIDER (Temporal Interval-driven Dual-channel Evidence Retrieval), a time-aware agentic retrieval framework. Central to TIDER is a reinforcement learning (RL)-trained temporal interval locator that infers the temporal windows in which the evidence lies. RL optimizes window localization as a discrete, non-differentiable retrieval decision, using composite rewards to convert sparse answer supervision into fine-grained retrieval feedback. These temporal windows first define the temporal retrieval channel; the retrieved candidates are then merged with results from the semantic channel and reranked by proximity to the windows. This temporal grounding enables TIDER to retrieve temporally aligned evidence that would otherwise be drowned out by the volume of semantically similar yet temporally mismatched memories. With a lightweight 1.7B locator, TIDER achieves state-of-the-art accuracy on both long-horizon memory benchmarks - 61.52% on LifeBench (+8.82%) and 78.96% on LoCoMo (+3.66%) - which indicates that temporal cues are crucial for pinpointing target evidence amid a vast pool of semantically similar historical events in long-term daily-life memory.
Figures & tables
| Method | IE | MR | ND | TKU | Overall | F1 |
|---|---|---|---|---|---|---|
| TsContriever [ 28 ] | 31.28 1.05 | 23.33 0.00 | 27.43 0.60 | 23.91 0.00 | 27.21 0.42 | 49.36 |
| MemOS [ 12 ] | 54.57 1.43 | 48.89 0.48 | 42.01 1.20 | 31.16 1.26 | 47.30 0.88 | 45.90 |
| Zep [ 21 ] | 43.61 0.40 | 39.44 0.96 | 32.99 0.60 | 30.43 2.17 | 38.40 0.37 | 38.55 |
| Mem0 [ 5 ] | 57.99 1.05 | 48.33 2.89 | 50.35 1.59 | 44.20 6.64 | 51.80 1.26 | 51.94 |
| TiMem [ 11 ] | 17.58 1.43 | 17.50 1.44 | 21.53 3.01 | 10.87 2.17 | 17.73 0.57 | 18.89 |
| NeSTR [ 13 ] | 56.16 1.37 | 52.22 1.27 | 53.12 1.80 | 42.03 3.32 | 52.70 0.65 | 61.25 |
| Method | Single-Hop | Multi-Hop | Temporal | Open-Domain | Overall | F1 |
|---|---|---|---|---|---|---|
| TsContriever [ 28 ] | 77.41 0.45 | 57.92 0.33 | 62.93 0.25 | 39.58 0.85 | 68.47 0.16 | 48.94 |
| MemOS [ 12 ] | 76.07 0.10 | 56.85 0.69 | 69.47 0.25 | 45.14 0.49 | 69.24 0.11 | 45.02 |
| Zep [ 21 ] | 50.42 0.29 | 42.20 0.77 | 19.11 0.29 | 38.19 0.49 | 41.62 0.21 | 26.88 |
| Mem0 [ 5 ] | 62.09 0.42 | 50.14 0.32 | 59.25 0.41 | 37.70 0.41 | 57.79 0.34 | 42.52 |
| TiMem [ 11 ] | 81.43 0.05 | 62.20 0.82 | 77.63 0.34 | 52.08 0.74 | 75.30 0.16 | 54.40 |
| NeSTR [ 13 ] | 82.60 0.25 | 63.00 1.02 | 66.56 0.18 | 47.57 0.60 | 73.48 0.23 | 53.54 |
| Variant | Temporal | Decay | IE | MR | ND | TKU | Overall | F1 | |
|---|---|---|---|---|---|---|---|---|---|
| TIDER (full) | ✓ | ✓ | ✓ | 67.12 | 60.83 | 60.42 | 47.83 | 61.52 | 69.23 |
| w/o decay rerank | ✓ | ✓ | 63.70 | 58.33 | 55.21 | 41.30 | 57.60 | 67.02 | |
| w/o temporal channel | ✓ | 58.22 | 52.50 | 51.04 | 34.78 | 52.21 | 47.62 | ||
| w/o summary (semantic) | 55.48 | 51.67 | 48.96 | 39.13 | 51.45 | 63.05 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Recall@10 | Recall@20 | nDCG@20 | MRR@20 |
|---|---|---|---|---|
| TsContriever | 17.91 | 23.84 | 20.48 | 42.98 |
| Semantic retriever (NeSTR input) | 32.74 | 39.35 | 37.21 | 67.55 |
| TIDER | 33.18 | 48.36 | 48.67 | 73.71 |
| User | #Items | #Clusters | Items / cluster (avg) | Timeline span (days) |
|---|---|---|---|---|
| user-0 | 136,208 | 15,603 | 8.73 | 990 |
| user-1 | 128,538 | 14,847 | 8.66 | 833 |
| user-2 | 132,862 | 15,369 | 8.64 | 2,726 |
| user-3 | 131,961 | 15,243 | 8.66 | 823 |
| user-4 | 121,168 | 14,036 | 8.63 | 7,014 |
| user-5 | 88,335 | 10,656 | 8.29 | 1,308 |
| Category | N | Top-30 localization coverage |
|---|---|---|
| Non-temporal | 50 | 87.60 |
| Single-window | 228 | 89.45 |
| Dual-window | 103 | 73.51 |
| Multi-window | 27 | 78.85 |
| Overall | 408 | 84.51 |
| Parameter | Value |
| Advantage estimator | GRPO |
| KL coefficient (loss) | 0.1 |
| Group size (rollouts per prompt) | 8 |
| Rollout temperature | 0.7 |
| Peak learning rate | |
| LR schedule | cosine, warmup ratio 0.1 |
| Bucket ( ) | DAR factor | Effective probability |
|---|---|---|
| 0 (non-temporal) | 10.0 | 0.159 |
| 1 (single-window) | 1.0 | 0.424 |
| 2 (dual-window) | 1.0 | 0.160 |
| (multi-window) | 4.0 | 0.257 |
| Variant | IE | MR | ND | TKU | Overall | F1 |
|---|---|---|---|---|---|---|
| TIDER (SFT+GRPO, 1.7B) | 67.12 | 60.83 | 60.42 | 47.83 | 61.52 | 69.23 |
| w/o | 60.96 | 56.67 | 58.33 | 32.61 | 55.88 | 67.46 |
| w/o | 66.44 | 56.67 | 58.33 | 43.48 | 59.07 | 69.20 |
| w/o | 64.38 | 60.83 | 56.25 | 47.83 | 59.56 | 68.81 |
| Locator | IE | MR | ND | TKU | Overall | F1 |
| TIDER (4B) | 65.07 | 61.67 | 59.38 | 50.00 | 61.03 | 69.57 |
| TIDER (1.7B) | 67.12 | 60.83 | 60.42 | 47.83 | 61.52 | 69.23 |
| ( B B) |
| Memory representation | Semantic retrieval | TIDER retrieval |
|---|---|---|
| Fixed chunks + session timestamps | 50.49 | 58.58 |
| Full temporally anchored memory pool | 52.21 | 61.52 |
| Retrieval budget | 10 | 20 | 30 | 40 | 50 | 100 |
|---|---|---|---|---|---|---|
| TIDER | 52.70 | 61.52 | 60.78 | 58.33 | 58.58 | 62.01 |
| Semantic Only | 46.86 | 52.21 | 52.90 | 57.49 | 56.04 | 57.73 |
| Parameter | Settings | Accuracy (%) |
|---|---|---|
| (days) | 3 / 7 / 14 | 61.76 / 61.52 / 59.07 |
| 0.75 / 0.85 / 0.95 | 59.56 / 61.52 / 61.27 | |
| Cluster-size cap | 20 / 40 / 80 | 57.84 / 61.52 / 60.54 |
| Summarizer | GPT-4.1-nano / GPT-4o-mini / GPT-5-mini | 60.29 / 61.52 / 63.73 |
| Method | Non-temporal | Single-window | Dual-window | Multi-window | Overall |
|---|---|---|---|---|---|
| MemOS | 52.67 1.15 | 48.83 1.10 | 42.07 1.48 | 44.44 11.11 | 47.30 0.88 |
| TiMem | 23.33 1.15 | 16.96 1.10 | 17.80 1.48 | 13.58 4.28 | 17.73 0.57 |
| Zep | 48.67 7.02 | 38.74 0.67 | 33.98 1.68 | 33.33 0.00 | 38.40 0.37 |
| Mem0 | 63.33 3.06 | 51.32 1.16 | 47.25 4.04 | 51.85 3.70 | 51.80 1.26 |
| TsContriever | 38.00 2.00 | 28.07 1.16 | 23.62 1.12 | 13.58 4.28 | 27.21 0.42 |
| NeSTR | 56.00 2.00 | 55.12 0.67 | 46.60 1.68 | 49.38 2.14 | 52.70 0.65 |
| Comparison | Acc | Exact | Holm | ||
|---|---|---|---|---|---|
| TIDER vs. MemOS | 13.48 | 92 | 37 | ||
| TIDER vs. TiMem | 43.14 | 188 | 12 | ||
| TIDER vs. Zep | 22.79 | 121 | 28 | ||
| TIDER vs. Mem0 | 8.33 | 66 | 32 | ||
| TIDER vs. TsContriever | 34.07 | 149 | 10 | ||
| TIDER vs. NeSTR | 8.09 | 59 | 26 |
| Method | Wrong | Retrieval miss | Temporal mismatch | Partial evidence | Reason failure | Retrieval-side failure |
|---|---|---|---|---|---|---|
| TIDER | 157 | 27 (17.2%) | 107 (68.2%) | 5 (3.2%) | 18 (11.5%) | 139 (88.5%) |
| MemOS | 212 | 41 (19.3%) | 132 (62.3%) | 13 (6.1%) | 26 (12.3%) | 186 (87.7%) |
| TiMem | 333 | 174 (52.3%) | 142 (42.6%) | 7 (2.1%) | 10 (3.0%) | 323 (97.0%) |
| Zep | 250 | 88 (35.2%) | 115 (46.0%) | 18 (7.2%) | 29 (11.6%) | 221 (88.4%) |
| Mem0 | 191 | 45 (23.6%) | 123 (64.4%) | 9 (4.7%) | 14 (7.3%) | 177 (92.7%) |
| TsContriever | 296 | 143 (48.3%) | 122 (41.2%) | 8 (2.7%) | 23 (7.8%) | 273 (92.2%) |
Temporal IR
Temporal information retrieval finds information relevant to when events occurred or facts were valid, not just what they describe.
See all 65 papers