mlsanityData to 14 Oct 2026

MemFactory: Unified Inference & Training Framework for Agent Memory

arXiv 2603.29493 ↗First posted 31 Mar 2026cs.CL cs.AIcited by 4

On the map: LLM agents and tool use → Agent memory systems

Abstract (arXiv)

Memory-augmented Large Language Models (LLMs) are essential for developing capable, long-term AI agents. Recently, applying Reinforcement Learning (RL) to optimize memory operations, such as extraction, updating, and retrieval, has emerged as a highly promising research direction. However, existing implementations remain highly fragmented and task-specific, lacking a unified infrastructure to streamline the integration, training, and evaluation of these complex pipelines. To address this gap, we present MemFactory, the first unified, highly modular training and inference framework specifically designed for memory-augmented agents. Inspired by the success of unified fine-tuning frameworks like LLaMA-Factory, MemFactory abstracts the memory lifecycle into atomic, plug-and-play components, enabling researchers to seamlessly construct custom memory agents via a "Lego-like" architecture. Furthermore, the framework natively integrates Group Relative Policy Optimization (GRPO) to fine-tune internal memory management policies driven by multi-dimensional environmental rewards. MemFactory provides out-of-the-box support for recent cutting-edge paradigms, including Memory-R1, RMM, and MemAgent. We empirically validate MemFactory on the open-source MemAgent architecture using its publicly available training and evaluation data. Across the evaluation sets, MemFactory improves performance over the corresponding base models on average, with relative gains of up to 14.8%. By providing a standardized, extensible, and easy-to-use infrastructure, MemFactory significantly lowers the barrier to entry, paving the way for future innovations in memory-driven AI agents.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 14 of its 16 references that are in the map. First posted on arXiv 31 Mar 2026.

Builds on

14 of 16 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025Memory in the Age of AI Agents15 Dec
  2. 2025Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Tasks14 Oct
  3. 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning27 Aug
  4. 2025MemEngine: A Unified and Modular Library for Developing Advanced Memory of LLM-based Agents4 May

Other references · 10

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2017Proximal Policy Optimization Algorithmscited by 15,215
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  5. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  6. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
  7. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  8. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  9. 2024SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuningcited by 355
  10. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Mem-α: Learning Memory Construction via Reinforcement Learning
  2. 2026Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agents
  3. 2026MemSkill: Learning and Evolving Memory Skills for Self-Evolving Agents
  4. 2025Memento: Fine-tuning LLM Agents without Fine-tuning LLMs
  5. 2026MemGym: a Long-Horizon Memory Environment for LLM Agents
  6. 2025Memp: Exploring Agent Procedural Memory
  7. 2026MemTrain: Self-Supervised Context Memory Training
  8. 2026MemCalib: Benchmarking and Optimizing Memory Use in LLM Agents