Memory-R2: Fair Credit Assignment for Long-Horizon Memory-Augmented LLM Agents
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Memory-augmented LLM agents enable interactions that extend beyond finite context windows by storing, updating, and reusing information across sessions. However, training such agents with reinforcement learning in multi-session environments is challenging because memory turns the agent's past actions into part of its future environment. Once different rollouts write, update, or delete different memories, they no longer share the same intermediate memory state, making trajectory-level comparisons fundamentally unfair. This violates a key assumption behind group-relative methods such as GRPO, where rollouts are compared as if they were sampled from the same effective environment. Consequently, trajectory-level rewards provide noisy or biased credit signals for long-horizon memory operations. To address this challenge, we introduce Memory-R2, a training framework for long-horizon memory-augmented LLM agents. Its core algorithm, LoGo-GRPO, combines local and global group-relative optimization. The global objective preserves end-to-end learning from long-horizon trajectory-level rewards, while local rerollouts compare different memory-operation outcomes from the same intermediate memory state, yielding fairer group comparisons and more precise supervision for memory construction. Beyond credit assignment, Memory-R2 jointly optimizes memory formation and memory evolution with a shared-parameter co-learning design, where a fact extractor and a memory manager are instantiated from the same LLM backbone through role-specific prompts. To stabilize multi-step RL over long memory horizons, we adopt a progressive curriculum that increases the training horizon from 8 to 16 to 32 sessions. Together, these components provide an effective training paradigm for memory-augmented LLM agents in long-horizon multi-session settings.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 16 of its 32 references that are in the map. First posted on arXiv 20 May 2026.
Builds on
16 of 32 references.
Closest ancestors · 7
Same direction, newest first
- 2025Memory in the Age of AI Agents15 Dec
- 2025CAM: A Constructivist View of Agentic Memory for LLM-Based Reading Comprehension7 Oct
- 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning27 Aug
- 2025MemBench: Towards More Comprehensive Evaluation on the Memory of LLM-based Agents20 Jun
- 2025G-Memory: Tracing Hierarchical Memory for Multi-Agent Systems9 Jun
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agents27 Feb
Other references · 9
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
- 2021Beyond Goldfish Memory: Long-Term Open-Domain Conversationcited by 266
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2025WebAgent-R1: Training Web Agents via End-to-End Multi-Turn Reinforcement Learningcited by 162
- 2025A Comprehensive Survey on Long Context Language Modelingcited by 113
- 2025ReMA: Learning to Meta-think for LLMs with Multi-Agent Reinforcement Learningcited by 78
- 2025MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Modelscited by 68
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026TRACE: Turn-level Reward Assignment via Credit Estimation for Long-Horizon Agentscited by 11
- 2026The Horizon Gap: Planning, Memory, Execution, Training, and Evaluation for Long-Horizon LLM Agentscited by 1
- 2026Rosetta Memory: Adaptive Memory for Cross-LLM Agentscited by 0
- 2026Continual Learning in Transitioncited by 0
- 2026Spatial Memory Agent: Experience-Grounded Procedure Memory for Spatial Intelligencecited by 0
- 2026SpeakerMem-R1: Speaker-Centered Dual-Track Memory for Multi-Party Dialoguecited by 0
- 2026Coding Agent Memory Post-training: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via Reinforcement Learningcited by 0
- 2026Learning What to Remember: Long-horizon Counterfactual Memory Optimizationcited by 0
- 2026LatentHarness: Learning Latent Actions for Memory and Reasoning via Counterfactual Policy Distillationcited by 0
- 2026LatentHarness: Learning Latent Actions for Memory and Reasoning via Counterfactual Policy Distillation30 Sep 2026
- 2026Learning What to Remember: Long-horizon Counterfactual Memory Optimization29 Sep 2026
- 2026Coding Agent Memory Post-training: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via Reinforcement Learning28 Sep 2026
- 2026SpeakerMem-R1: Speaker-Centered Dual-Track Memory for Multi-Party Dialogue22 Sep 2026
- 2026Spatial Memory Agent: Experience-Grounded Procedure Memory for Spatial Intelligence13 Aug 2026
- 2026The Horizon Gap: Planning, Memory, Execution, Training, and Evaluation for Long-Horizon LLM Agents7 Aug 2026
- 2026Continual Learning in Transition6 Aug 2026
- 2026TRACE: Turn-level Reward Assignment via Credit Estimation for Long-Horizon Agents15 Jul 2026
- 2026Rosetta Memory: Adaptive Memory for Cross-LLM Agents5 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026Joint Optimization of Multi-agent Memory System
- 2026CHIME: Credit-Aware Hierarchical Memory Evolution for Long-Horizon Agentic Planning
- 2026From Player to Master: Enhancing Test-Time Learning of LLM Agents via Reinforcement Learning over Memory
- 2026TIGPO: Temporal Instance-Graph Policy Optimization for Long-Horizon LLM Agents
- 2026Mem-T: Densifying Rewards for Long-Horizon Memory Agents
- 2026MemCo: Memory-Centric Collaboration for Generalizing LLM Agents to Unseen Environments
- 2026Tree-based Credit Assignment for Multi-Agent Memory System
- 2026Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agents