Coding Agent Memory Post-training: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via Reinforcement Learning
Read the original on arXiv AI →The Flow has not summarised this story yet — read it at arXiv AI.
The Flow has not summarised this story yet — read it at arXiv AI.
The paper introduces Coding Agent Memory Gym II (CAMG-II), a set of long‑horizon reinforcement learning environments that provide both native task interfaces and Bash access with an episode‑persistent workspace for file‑based memory. It also presents Coding Agent Memory Post‑Training II (CAMP‑II), a policy trained via fully asynchronous on‑policy distillation to learn file‑based memory behaviors directly from a frozen teacher. CAMP‑II achieves nearly three times the performance of the strongest baseline on CAMG‑II and shows improved success rates on external benchmarks Terminal‑Bench 2.1 and SWE‑Bench Pro V2.
The paper introduces Coding Agent Memory Post-Training II (CAMP-II), a method that trains a single policy across five long‑horizon RL environments using fully asynchronous on‑policy distillation (OPD) to learn file‑based memory behavior. CAMP-II leverages a frozen teacher with a prior for file operations, enabling the policy to create, revise, search, and reuse files as memory across context replacements. On the new Coding Agent Memory Gym II (CAMG‑II) benchmark, CAMP‑II achieves nearly three times the performance of the strongest OPD baseline and its learned memory strategy generalizes to external benchmarks Terminal‑Bench 2.1 and SWE‑Bench Pro V2, improving success rates.
arXiv:2607. 13591v1 Announce Type: cross Abstract: Large Language Model (LLM) agents increasingly rely on external memory systems to accumulate experience across tasks.
Large Language Model (LLM) agents increasingly rely on external memory systems to accumulate experience across tasks. Yet nearly all existing approaches, from graph-structured memories to reflective insight stores, access memory through fixed, hand-designed heuristics.
AgenticRag‑R1 is a reinforcement‑learning framework that integrates reasoning, retrieval, and memory through a stack and fine‑grained action space. It uses hierarchical action‑aware rewards and an information‑aware trajectory rejection strategy to support long‑horizon learning. Experiments on multi‑hop, open‑domain, and agentic reasoning benchmarks show that AgenticRag‑R1 outperforms strong baselines and produces robust, interpretable, memory‑aware reasoning behaviors.
MemoryArena is a new evaluation gym that benchmarks agent memory in interdependent multi‑session tasks. Unlike prior benchmarks that test memorization or single‑session action in isolation, MemoryArena requires agents to acquire memory while interacting with the environment and then use that memory to guide future decisions across a range of tasks such as web navigation, planning, information search, and formal reasoning. The benchmark reveals that agents excelling on existing long‑context memory tests perform poorly here, highlighting a gap in current memory evaluation methods.