---
description: RL-trained unified LTM/STM memory policy for LLM agents — confirms memory management is learnable when task-completion oracles exist, but operates on opaque weights and low-reach facts
source: https://arxiv.org/html/2601.01885v1
captured: "2026-03-08"
capture: web-fetch
genre: scientific-paper
snapshot_sha256: aeefbe955b8823d85d42dbd7b30935406ef76b811e34a5c8766bf660e3609ccd
ingested: "2026-03-09"
type: types/ingest-report.md
domains: [agent-memory, reinforcement-learning, context-management, llm-agents]
---

# Ingest: Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for LLM Agents

## Classification

Preprint (arXiv, January 2025) with formalized problem statement, multi-stage RL training methodology, ablation studies, and evaluation across five benchmarks (ALFWorld, SciWorld, PDDL, BabyAI, HotpotQA) on multiple model backbones.

Author: Yi Yu, Liuyi Yao, Yuexiang Xie et al. (Alibaba Group, Wuhan University). Active in LLM agent infrastructure. The Alibaba affiliation signals production-scale orientation; the multi-backbone evaluation (Qwen, Llama) suggests practical deployment concerns rather than benchmark-only research.

## Summary

AgeMem proposes unifying long-term memory (LTM) and short-term memory (STM) management as learnable tool-based actions within an LLM agent's policy, trained through reinforcement learning. Instead of treating memory as an external service or relying on in-context instructions, the system exposes six memory operations (Add, Update, Delete for LTM; Retrieve, Summary, Filter for STM) and trains the agent to use them through a three-stage progressive RL strategy: first learning LTM storage, then STM context management, then coordinating both. A step-wise GRPO mechanism addresses sparse rewards from memory operations. Results show 23-49% improvement over no-memory baselines, 3-5% token reduction in context, and meaningful RL contribution (8-9 percentage points) beyond the base model's capability.

## Quotes

No source quotes have been retained yet.

## Connections Found

Second-pass `/connect` (2026-03-09) confirmed this is one of the most thoroughly connected sources in the KB. The primary analysis note ([memory-management-policy-is-learnable-but-oracle-dependent](../theory/memory-management-policy-is-learnable-but-oracle-dependent.md)) examines what makes it possible to train a memory policy and how that differs from revising explicit memory rules. The [comparative review](../agent-memory-systems/agentic-memory-systems-comparative-review.md) covers AgeMem across the current shared architectural axes.

**Established connections (via analysis note and comparative review):**

- [Bitter lesson boundary](../theory/exact-implementation-does-not-validate-a-requirement.md) -- **exemplifies**: memory operations are the calculator part; the composition policy is the vision-feature part. AgeMem's hybrid architecture confirms the boundary's prediction.
- [Oracle strength spectrum](../theory/oracle-strength-spectrum.md) -- **exemplifies**: task-completion oracle (binary: did the agent succeed?) sits at a specific position -- cheap, reliable, but domain-scoped.
- [Automating KB learning is an open problem](../theory/questions/what-gaps-remain-in-our-learning-loop.md) -- **grounds**: confirms RL can learn memory policy when a clear oracle exists; the KB's evaluation gap is the bottleneck, not the learning mechanism.
- [Deployed systems can learn from feedback with fixed model weights](../theory/deployed-systems-can-learn-from-feedback-with-fixed-model-weights.md) -- **contrasts**: AgeMem trains the policy that chooses memory operations. A system with fixed model weights can instead revise the instructions for choosing those operations.
- [Inspectable substrate defeats the blackbox problem](../theory/inspectable-artifact-not-supervision-defeats-the-blackbox-problem.md) -- **contrasts**: split substrate (facts in store, policy in weights) vs unified substrate (both in files).
- [Learning is not only about generality](../theory/learning-is-not-only-about-generality.md) -- **foundation**: LTM Add is accumulation at the low-reach end; facts without reach to theories.
- [In-context learning presupposes context engineering](../theory/in-context-learning-presupposes-context-engineering.md) -- **applies**: STM operations select focused content for working context rather than loading the whole retained store.

**Connections flagged for reverse linking (actionable):**

- [Three-space agent memory maps to Tulving's taxonomy](../theory/three-space-agent-memory-echoes-tulvings-taxonomy-but-the-analogy.md) -- **challenges**: AgeMem separates memory by access pattern (persistent LTM vs active STM), not content type (semantic/episodic/procedural). Unified RL-trained management is evidence against structurally isolating memory spaces. The three-space note does not currently link to the analysis note.
- [Context efficiency is the central design concern](../theory/context-efficiency-is-the-central-design-concern-in-agent-systems.md) -- **exemplifies**: STM operations achieve 3.1-5.1% token reduction while maintaining performance. Empirical evidence that learned context management outperforms heuristic approaches. Neither the context-efficiency note nor this source currently link to each other.

**Sibling source connections:**

- [A-MEM](./a-mem-agentic-memory-for-llm-agents.ingest.md) -- **contrasts**: heuristic pipelines vs RL-trained policy for the same problem space.
- [Letta (MemGPT)](./letta-memgpt-stateful-agents.ingest.md) -- **contrasts**: base-model instruction-following vs RL-trained policy. Together with A-MEM, they form a three-point spectrum (heuristic / instruction-following / RL-trained).
- [Mem0](https://github.com/mem0ai/mem0) -- **contrasts**: developer-managed external service vs RL-trained self-management.

## Extractable Value

1. **Three-stage curriculum for memory training** (LTM first, STM second, coordination third): a progressive RL strategy that decomposes a complex multi-objective problem into learnable stages. The principle -- train simpler capabilities first, compose later -- may apply to skill acquisition beyond memory. [deep-dive]

2. **Unified management outperforms independent optimization**: jointly training LTM and STM management outperforms optimizing each independently. Concrete data point against architectural separation of memory spaces, relevant to the three-space model debate. [quick-win]

3. **Composite reward design for memory operations**: the four-component reward (task completion + context management + memory management + penalties) addresses sparse rewards. The step-wise GRPO mechanism broadcasts advantages across all trajectory timesteps -- a specific technique for credit assignment when beneficial actions are temporally distant from rewards. [just-a-reference]

4. **STM as learnable context management**: the Retrieve/Summary/Filter tool set is a learned context engineering toolkit. Trained agents increase Add operations from 0.92 to 1.64, suggesting base models underuse memory operations and RL can close this gap. [experiment]

5. **RL contribution quantified**: 8.53-8.72 percentage point improvement from the training strategy specifically, separable from base model capability. Quantifies the value of learned memory management over instruction-following. [just-a-reference]

6. **Where the memory policy lives**: AgeMem stores facts externally but learns when to store or retrieve them in its policy weights. If the corresponding policy is written as instructions, a reviewer can inspect or revert a particular rule. The benchmarks do not compare these two ways of maintaining the policy. [deep-dive]

## Limitations (our opinion)

**Benchmarks test task completion, not memory quality.** The five evaluation benchmarks (ALFWorld, SciWorld, PDDL, BabyAI, HotpotQA) measure whether the agent completed the task, not whether the memory store is well-organized, retrievable over longer horizons, or useful for transfer to new tasks. The 23-49% improvement tells us the memory policy helps within episodes but says nothing about cross-episode knowledge accumulation -- which is the harder problem for persistent KB-style memory systems.

**No comparison against prompted or fine-tuned baselines with memory instructions.** The paper compares against no-memory baselines and ablated versions of AgeMem's own training pipeline. It does not test against a strong prompted baseline that gives the same six tools with detailed instructions for when to use each one (the [Letta approach](./letta-memgpt-stateful-agents.ingest.md)), or against a fine-tuned model (non-RL) that has seen examples of good memory usage. The RL contribution (8-9 points) is measured against the paper's own untrained baseline, not against the strongest non-RL alternative.

**Fixed tool set limits the generality claim.** The six operations (Add, Update, Delete, Retrieve, Summary, Filter) are hand-designed. The paper doesn't test whether the RL training discovers useful memory strategies that the tool set cannot express. If the optimal memory policy requires operations not in the set -- like linking two memories, tagging with metadata, or creating hierarchical summaries -- the approach would miss them. The [Claw framework's broader view of learning operations](https://github.com/zby/commonplace/blob/a63c0f601f681a1516d0b8f664d8ddd485156d62/kb/theory/claw-learning-loops-must-improve-action-capacity-not-just-retrieval.md) suggests memory management encompasses more than these six.

**Oracle dependency limits transferability.** As the KB's [analysis note](../theory/memory-management-policy-is-learnable-but-oracle-dependent.md) argues in detail, the entire approach depends on having a clear task-completion oracle. Domains without binary success signals (open-ended research, creative work, long-horizon knowledge curation) cannot use this training strategy. The paper does not discuss this limitation or propose alternatives for oracle-poor domains.

**Token reduction is modest and uncontextualized.** The 3.1-5.1% context token reduction is presented as evidence of efficient STM management, but the paper does not compare this against simple heuristics (e.g., FIFO eviction, recency-based pruning, or fixed-window summarization). Without such baselines, we cannot tell whether the RL-learned filtering strategy is meaningfully better than a hand-coded policy for context management specifically.

## Notes Written

- [Memory management policy is learnable but oracle-dependent](../theory/memory-management-policy-is-learnable-but-oracle-dependent.md) -- deep-dive on extractable values 1, 4, 6: analyzes AgeMem through the bitter-lesson boundary and learning-theory frameworks, showing that the RL success depends on task-completion oracles the KB lacks

## Recommended Next Action

Add reverse links from two notes that the `/connect` report flagged as missing:

1. Update [three-space-agent-memory-echoes-tulvings-taxonomy-but-the-analogy.md](../theory/three-space-agent-memory-echoes-tulvings-taxonomy-but-the-analogy.md) to cite [the analysis note](../theory/memory-management-policy-is-learnable-but-oracle-dependent.md) as a counterexample -- AgeMem's access-pattern separation (LTM/STM) challenges the content-type separation (semantic/episodic/procedural) and its unified management outperforms independent optimization.

2. Update [context-efficiency-is-the-central-design-concern-in-agent-systems.md](../theory/context-efficiency-is-the-central-design-concern-in-agent-systems.md) to cite AgeMem's STM results (3.1-5.1% token reduction via learned Retrieve/Summary/Filter operations) as empirical evidence that learned context management can work.
