Memory-R2: Fair Credit Assignment for Long-Horizon Memory-Augmented LLM Agents

· Source: cs.MA updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, extended

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

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

Topics

Code references

Best for: Research Scientist, NLP Engineer, AI Scientist, Machine Learning Engineer, AI Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.MA updates on arXiv.org.