mlsanityData to 7 Oct 2026

MemGym: a Long-Horizon Memory Environment for LLM Agents

arXiv 2605.20833 ↗First posted 20 May 2026cs.CLcited by 3

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

Abstract (arXiv)

Memory is a central capability for LLM agents operating across long-horizon tasks. Existing memory benchmarks predominantly evaluate retention of personalized information in multi-turn chat scenarios, overlooking the dynamic memory formation that occurs during extended agent execution. Consequently, the memory systems they produce transfer poorly to realistic agentic environments, such as coding and web navigation. We present MemGym, a benchmark for agentic memory that unifies existing agent gyms and in-house memory-grounded pipelines behind one memory-reasoning interface. MemGym spans five evaluation tracks grouped into four agentic regimes: tool-use dialogue (tau2-bench), multi-turn deep-research search (MEMGYM-DR), coding (SWE-Gym and MEMGYM-CODEQA), and computer use (WebArena-Infinity). MemGym reports memory-isolated scores that decouple memory performance from reasoning, retrieval, and tool-use ability, so memory strategies can be ranked without those confounders. Our synthetic pipelines for MEMGYM-CODEQA and MEMGYM-DR are length-controllable, ablation-verified at every stage, and tightly aligned with downstream scenarios. To make evaluation on coding environments academically tractable, we train MemRM, a lightweight reward model (Qwen3-1.7B fine-tuned with QLoRA) that scores compression quality as a fast scalar read in place of full Docker rollouts.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 54 of its 61 references that are in the map. First posted on arXiv 20 May 2026.

Builds on

54 of 61 references.

Closest ancestors · 8

Same direction, newest first

  1. 2026AMA-Bench: Evaluating Long-Horizon Memory for Agentic Applications26 Feb
  2. 2026MemoryArena: Benchmarking Agent Memory in Interdependent Multi-Session Agentic Tasks18 Feb
  3. 2026SimpleMem: Efficient Lifelong Memory for LLM Agents5 Jan
  4. 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions7 Jul
  5. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
  6. 2025A-MEM: Agentic Memory for LLM Agents17 Feb
  7. 2024Evaluating Very Long-Term Conversational Memory of LLM Agents27 Feb
  8. 2024A Human-Inspired Reading Agent with Gist Memory of Very Long Contexts15 Feb

Other references · 46

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2025Qwen3 Technical Reportcited by 8,195
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  7. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  8. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  9. 2023Let's Verify Step by Stepcited by 3,598
  10. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  11. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  12. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
34 more
  1. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  2. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
  3. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  4. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
  5. 2018World Modelscited by 1,444
  6. 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,411
  7. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  8. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,280
  9. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  10. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
  11. 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,134
  12. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  13. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
  14. 2023ExpeL: LLM Agents Are Experiential Learnerscited by 814
  15. 2017Selective Classification for Deep Neural Networkscited by 799
  16. 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
  17. 2025τ2-Bench: Evaluating Conversational Agents in a Dual-Control Environmentcited by 558
  18. 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
  19. 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 519
  20. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
  21. 2023Adapting Language Models to Compress Contextscited by 350
  22. 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
  23. 2024HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Modelscited by 273
  24. 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
  25. 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 204
  26. 2022OpenAlex: A fully-open index of scholarly works, authors, venues, institutions, and conceptscited by 166
  27. 2025LightMem: Lightweight and Efficient Memory-Augmented Generationcited by 163
  28. 2023The Semantic Scholar Open Data Platformcited by 109
  29. 2024MEMORYLLM: Towards Self-Updatable Large Language Modelscited by 89
  30. 2023Recursively Summarizing Enables Long-Term Dialogue Memory in Large Language Modelscited by 62
  31. 2025MemoryBench: A Benchmark for Memory and Continual Learning in LLM Systemscited by 56
  32. 2024Larimar: Large Language Models with Episodic Memory Controlcited by 53
  33. 2025REALTALK: A 21-Day Real-World Dataset for Long-Term Conversationcited by 31
  34. 2026AMemGym: Interactive Memory Benchmarking for Assistants in Long-Horizon Conversationscited by 20

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Evaluating Memory Structure in LLM Agents
  2. 2026Memory in the LLM Era: Modular Architectures and Strategies in a Unified Framework
  3. 2026Mem2ActBench: A Benchmark for Evaluating Long-Term Memory Utilization in Task-Oriented Autonomous Agents
  4. 2026MemToolAgent: Leveraging Memory for Tool Using Agents Based on Environment and User Feedback
  5. 2026EvoMemBench: Benchmarking Agent Memory from a Self-Evolving Perspective
  6. 2026MemWeaver: Weaving Hybrid Memories for Traceable Long-Horizon Agentic Reasoning
  7. 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers
  8. 2026Anatomy of Agentic Memory: Taxonomy and Empirical Analysis of Evaluation and System Limitations