NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

Sikuan Yan, Ahmed Bahloul, Ercong Nie, Susanna Schwarzmann, Riccardo Trivisonno, Volker Tresp, Yunpu Ma

NeurIPS page · Open on the map

Category: LLM Reasoning, Memory & RAG › Test-Time Scaling and Optimization · Type: new method · Keywords: memory-augmented LLM agents, fair credit assignment, group-relative reinforcement learning, long-horizon training, co-learning memory formation, curriculum learning for sessions

Areas: LLM Reasoning › Reasoning Strategies › Self-Evolution and Improvement; Memory › Agent Memory Systems › Memory-Augmented Agents; AI Agents › Agent Capabilities › Autonomous Agent Memory; RL for LLMs & Agents › Language Model Agents › Agentic Reinforcement Learning

Summary

Memory-R2 introduces a training framework with LoGo-GRPO that enables fair credit assignment for long-horizon memory-augmented LLM agents by combining global and local group-relative optimization and co-learning memory formation and evolution.

Explained to a 5-year-old

Some computer programs remember things they have seen before, like a big notebook. When they learn by trying things out, they sometimes get confused because each time they try, the notebook is different. The researchers made a new way to help the programs learn fairly by comparing their tries when the notebook is the same, and they also teach the program to write and read its notes together. This helps the program get better at remembering and using what it learned over long periods. Now the programs can be smarter and keep their memories longer.

Explained to a 5-year-old, longer

Some computer programs remember things they have seen before, like a big notebook that never forgets. When these programs learn by trying different actions, they get rewards for good choices. However, because each program writes its own notes in the notebook, the notes can be different each time, making it hard to compare how well they did. This makes the learning unfair, like comparing two kids' drawings when one has extra colors. The researchers noticed this problem and wanted to help programs learn more fairly. They created a new training method that looks at two kinds of comparisons: one that looks at the whole long sequence of actions and another that looks at short pieces when the notebook is the same. This way, the program can see if its actions were good in the big picture and also if they were good in small steps. They also made the program learn to write notes and read them at the same time, so the notes become more useful. The program works in sessions, where each session is like a short story, and it alternates between writing facts and managing memories. To make learning stable, they start with short sessions and slowly make the sessions longer. This helps the program keep its memory across many long interactions without getting confused. As a result, the program can remember more and make better decisions over long periods of time.

For a technical reader

Memory-R2 is a training framework for LLM agents that maintain persistent memory across multiple sessions. It addresses the unfair credit assignment caused by divergent memory states by combining global group-relative optimization with local rerollouts from identical intermediate memory states. The framework also uses a shared-parameter co-learning design where a fact extractor and a memory manager are instantiated from the same LLM via role prompts, and it employs a curriculum that gradually increases session length. This approach enables stable, end-to-end learning of long-horizon tasks while providing more precise supervision for memory writing, updating, and retrieval.

Problem

Training memory-augmented language models with reinforcement learning in multi-session settings is difficult because past actions become part of the environment, causing trajectory-level rewards to be unfair and noisy when memories differ across rollouts. This violates the assumption that rollouts are comparable, leading to biased credit assignment for long-horizon memory operations.

Method

The approach combines global group-relative optimization to preserve end-to-end learning from trajectory-level rewards with local rerollouts that compare alternative continuations from identical intermediate memory states, providing fairer credit signals. It also employs a shared-parameter co-learning design where a fact extractor and a memory manager are instantiated from the same LLM backbone via role-specific prompts, and each session is chunked into a multi-step decision process with alternating memory roles. A progressive curriculum gradually increases the number of sessions to stabilize training as the memory horizon grows.

Contributions

It proposes a fair credit assignment framework for long-horizon memory-augmented agents, introducing a hybrid global-local group-relative optimization algorithm and a co-learning architecture that jointly learns memory formation and evolution. It also presents a curriculum learning scheme to scale training to longer horizons, providing an effective training paradigm for memory-intensive LLM agents.

Practical relevance

This framework enables reliable training of long-horizon memory-augmented LLM agents, facilitating applications that require persistent knowledge across extended interactions.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction