Memory-R2: Fair Credit Assignment for Long-Horizon Memory-Augmented LLM Agents
Summary
Memory-R2 is a novel training framework designed for long-horizon memory-augmented Large Language Model (LLM) agents, addressing the critical challenge of fair credit assignment in multi-session reinforcement learning. Its core, LoGo-GRPO, integrates global trajectory-level optimization with local rerollouts from shared intermediate memory states, ensuring more precise supervision for memory construction. The framework also features a shared-parameter co-learning design, where a fact extractor and memory manager, instantiated from a single LLM backbone via role-specific prompts, jointly optimize memory formation and evolution. To stabilize training over extended memory horizons, Memory-R2 employs a progressive curriculum, scaling from 8 to 16 to 32 sessions. Benchmarking on LoCoMo, Memory-R2 with a Qwen2.5-7B-Instruct backbone achieved an F1 score of 50.60 and B1 of 44.01, outperforming Memory-R1's 43.14 F1 and 36.44 B1. It also demonstrated strong generalization across various benchmarks, model scales, and answer agents, notably improving Qwen2.5-3B's F1 from 10.3 to 46.8, while reducing inference latency.
Key takeaway
For Machine Learning Engineers developing long-horizon LLM agents, you should adopt training frameworks that explicitly address credit assignment challenges in multi-session environments. Implement LoGo-GRPO's global-local optimization and a progressive curriculum to stabilize training and improve memory quality. This approach enables robust, data-efficient memory construction, even for smaller models, and can reduce inference latency, making your agents more reliable and performant over extended interactions.
Key insights
Fair credit assignment and progressive training are crucial for long-horizon memory-augmented LLM agents.
Principles
- Memory makes RL environments non-stationary.
- Local rerollouts improve credit assignment fairness.
- Curriculum learning stabilizes long-horizon RL.
Method
Memory-R2 uses LoGo-GRPO, combining global trajectory rewards with local rerollouts from shared memory states. It employs a shared LLM backbone for fact extraction and memory management, and a progressive curriculum (8->16->32 sessions) for stable long-horizon RL.
In practice
- Implement local rerollouts for fairer RL credit.
- Use a progressive curriculum for long-horizon training.
- Co-learn memory roles with shared LLM parameters.
Topics
- Memory-Augmented LLMs
- Reinforcement Learning
- Credit Assignment
- Curriculum Learning
- LoGo-GRPO
- Memory Management Policies
Code references
Best for: Research Scientist, NLP Engineer, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.MA updates on arXiv.org.