mlsanityData to 14 Oct 2026

MemTrain: Self-Supervised Context Memory Training

arXiv 2606.03197 ↗First posted 2 Jun 2026cs.CLcited by 0

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

Abstract (arXiv)

Memory is an indispensable capability for long-horizon LLM agents, enabling them to preserve and utilize information accumulated across extended interactions. Existing memory-agent approaches are typically trained end-to-end with reinforcement learning on downstream tasks. However, collecting high-quality annotated problems for memory-intensive scenarios is costly, and the resulting training data often lack sufficient diversity to cover general memory behaviors. In this work, we propose MemTrain, a self-supervised training framework for generally enhancing the context-memory capability of LLM agents for more effective downstream post-training. MemTrain introduces two coupled proxy tasks over unlabeled Wikipedia corpora: (1) an end-to-end masked reconstruction objective, which requires the model to recover masked entities after multiple rounds of memory updates, thereby encouraging memory maintenance from the final outcome perspective; and (2) an intermediate memory recall objective, which requires the model to reconstruct masked historical information using intermediate memory states, encouraging faithful compression and memory completeness throughout the interaction process. The two objectives are jointly optimized using GRPO. Extensive experiments on long-text QA and search-based QA benchmarks demonstrate that MemTrain consistently improves downstream memory-intensive reasoning performance across different models, achieving gains of up to 17.67 points over direct task-specific post-training.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 26 of its 26 references that are in the map. First posted on arXiv 2 Jun 2026.

Builds on

26 of 26 references.

Closest ancestors · 7

Same direction, newest first

  1. 2026MemoBrain: Executive Memory as an Agentic Brain for Reasoning12 Jan
  2. 2025AgentFold: Long-Horizon Web Agents with Proactive Context Management28 Oct
  3. 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization16 Sep
  4. 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning27 Aug
  5. 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents18 Jun
  6. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
  7. 2025A-MEM: Agentic Memory for LLM Agents17 Feb

Other references · 19

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  3. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  4. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
  5. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  6. 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
  7. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
  8. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
  9. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
  10. 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 301
  11. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246
  12. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
7 more
  1. 2024CompAct: Compressing Retrieved Documents Actively for Question Answeringcited by 64
  2. 2025Reinforcement Pre-Trainingcited by 40
  3. 2025MemSearcher: Training LLMs to Reason, Search and Manage Memory via End-to-End Reinforcement Learningcited by 27
  4. 2025Reinforcement Learning on Pre-Training Datacited by 12
  5. 2025PretrainZero: Reinforcement Active Pretrainingcited by 8
  6. 2025Fast Quiet-STaR: Thinking Without Thought Tokenscited by 5
  7. 2026To Retrieve or To Think? Cross-Boundary Context Evolution for Multi-hop Complex Reasoningcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026MemGym: a Long-Horizon Memory Environment for LLM Agents
  2. 2025Mem-α: Learning Memory Construction via Reinforcement Learning
  3. 2026Memex(RL): Scaling Long-Horizon LLM Agents via Indexed Experience Memory
  4. 2026MemAgent: Learning to Manage Heterogeneous Memory Providers for LLM Agents
  5. 2026MemFactory: Unified Inference & Training Framework for Agent Memory
  6. 2026ElasticMem: Latent Memory as a Learnable Resource for LLM Agents
  7. 2026Towards Autonomous Memory Agents
  8. 2026MemToolAgent: Leveraging Memory for Tool Using Agents Based on Environment and User Feedback