Memory-T1: Reinforcement Learning for Temporal Reasoning in Multi-session Agents

Yiming Du, Baojun Wang, Yifan Xiang, Zhaowei Wang, Wenyu Huang, Boyang Xue, Bin Liang, Xingshan Zeng, Fei Mi, Haoli Bai, Lifeng Shang, Jeff Z. Pan, Yuxin Jiang, Kam-Fai Wong

TL;DR

Memory-T1 is a novel reinforcement learning (RL) framework designed to help AI agents navigate extensive dialogue histories to answer "when" and "in what order" events occurred. By employing a multi-level reward system that prioritizes temporal consistency, a 7B-parameter model equipped with Memory-T1 outperforms 14B models and maintains robust accuracy even when conversation history stretches to 128,000 tokens.

The Challenge of Temporal Reasoning

As we move toward "forever" AI assistants, agents must remember details across hundreds of different chat sessions. However, current Large Language Models (LLMs) struggle with temporal reasoning. If asked, "What did Emi say about her yoga class last Tuesday?", the model must:

  1. Find the relevant session within a massive, noisy history.
  2. Resolve relative time expressions (like "last Tuesday") into concrete dates.
  3. Ensure the retrieved events chronologically align with the query.

Existing models suffer from attentional dilution—as the history lengthens, they get "lost in the middle" and conflate events from different times. Furthermore, training models to fix this is difficult because standard binary "correct/incorrect" rewards are too sparse to teach the subtle art of chronological alignment.

Methods: The Memory-T1 Framework

Memory-T1 introduces a coarse-to-fine retrieval strategy powered by a sophisticated RL training loop.

Memory-T1 Architecture

1. The Two-Phase Pipeline

  • Phase 1: Candidate Generation: To avoid overwhelming the model, the framework first uses a "Temporal Filter" (where an LLM predicts the likely time window of the query) and a "Relevance Filter" (like BM25) to prune the history down to a small set of candidate sessions.
  • Phase 2: Fine-grained Selection: An RL-tuned agent evaluates these candidates, selects the exact evidence sessions, and generates the final answer.

2. Multi-Level Reward Design

The core innovation lies in the training process. Instead of merely checking if the final answer is correct, Memory-T1 uses Group Relative Policy Optimization (GRPO) with a three-part reward system:

  • Accuracy ($R_a$): Evaluates if the final answer is correct.
  • Evidence Grounding ($R_g$): Checks if the model cited the correct underlying sessions.
  • Temporal Consistency ($R_t$): Rewards the model for Chronological Proximity (how close the session date is to the target time) and Chronological Fidelity (whether the specific utterances inside the session are relevant to that time period). This dense signal is crucial for resolving subtle chronological ambiguities.

Datasets

  • Time-Dialog: The primary benchmark, containing 4,716 QA pairs over multi-session histories. The authors enhanced this dataset with fine-grained annotations for target time ranges and event spans to facilitate RL training.
  • LoCoMo: An established benchmark for long-term conversational memory, used to test how well the model generalizes to out-of-domain data.

Key Results and Insights

Experimental Results on Time-Dialog
  • State-of-the-Art Performance: Memory-T1 (7B) achieved an overall score of 67.0% on the Time-Dialog benchmark, establishing a new state-of-the-art for open-source models.
  • Punching Above Its Weight: The 7B model outperformed a 14B parameter baseline (Qwen2.5-14B) by 10.2%, proving that smart training data and reward structures can trump raw parameter counts for specialized retrieval tasks.
  • Extreme Robustness: In tests with context lengths up to 128k tokens, Memory-T1 maintained its performance. In contrast, standard baseline models collapsed as history grew.
  • The Power of Dense Signals: Ablation studies showed that removing the temporal consistency and grounding rewards resulted in a 15.0% performance drop, confirming that teaching a model why evidence is chronologically valid is far more effective than sparse accuracy rewards alone.

Limitations and Future Work

  • Annotation Dependency: The RL training process requires high-quality temporal annotations (time spans for events). While not needed during inference, they make the initial training data expensive to produce.
  • The "Oracle" Gap: Despite achieving SOTA among open-source models, Memory-T1 still trails behind an "Oracle" GPT-4 setup (which scores 86.2% when provided perfect evidence).
  • Complex Logic: The model still struggles with "deep compositional logic"—tasks requiring the comparison of multiple durations or complex timelines. Future work may involve integrating explicit reasoning chains to bridge this gap.

Summary updated

BibTeX
@inproceedings{du2026memory,
  author = {Yiming Du and Baojun Wang and Yifan Xiang and Zhaowei Wang and Wenyu Huang and Boyang XUE and Bin Liang and Xingshan Zeng and Fei Mi and Haoli Bai and Lifeng Shang and Jeff Z. Pan and Yuxin Jiang and Kam-Fai Wong},
  title = {{Memory-T1: Reinforcement Learning for Temporal Reasoning in Multi-session Agents}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=vQf2YR2Kpd},
}
Figure