mlsanityData to 14 Oct 2026

InfMem: Learning System-2 Memory Control for Long-Context Agent

arXiv 2602.02704 ↗First posted 2 Feb 2026cs.CLcited by 9

Not on the map. Why?

Abstract (arXiv)

Reasoning over ultra-long documents requires synthesizing sparse evidence scattered across distant segments under strict memory constraints. While streaming agents enable scalable processing, their passive memory update strategy often fails to preserve low-salience bridging evidence required for multi-hop reasoning. We propose InfMem, a control-centric agent that instantiates System-2-style control via a PreThink-Retrieve-Write protocol. InfMem actively monitors evidence sufficiency, performs targeted in-document retrieval, and applies evidence-aware joint compression to update a bounded memory. To ensure reliable control, we introduce a practical SFT-to-RL training recipe that aligns retrieval, writing, and stopping decisions with end-task correctness. On ultra-long QA benchmarks ranging from 32k to 1M tokens, InfMem consistently outperforms MemAgent across backbones. Specifically, InfMem improves average absolute accuracy by 10.17, 11.84, and 8.23 points on Qwen3-1.7B, Qwen3-4B, and Qwen2.5-7B, respectively, while reducing inference time by 3.9x on average and by up to 5.1x through adaptive early stopping. Code is available at https://github.com/UCMP13753/InfMem.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 44 of its 53 references that are in the map. First posted on arXiv 2 Feb 2026.

Builds on

44 of 53 references.

References · 44

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  6. 2024Qwen2.5 Technical Reportcited by 4,942
  7. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  8. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  9. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  10. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  11. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  12. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
32 more
  1. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,444
  2. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  3. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
  4. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
  5. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  6. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
  7. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 830
  8. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
  9. 2023Active Retrieval Augmented Generationcited by 516
  10. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
  11. 2023Cognitive Architectures for Language Agentscited by 429
  12. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
  13. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246
  14. 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 238
  15. 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learningcited by 237
  16. 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 233
  17. 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
  18. 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 139
  19. 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 133
  20. 2023Retrieval meets Long Context Large Language Modelscited by 115
  21. 2023System 2 Attention (is something you might need too)cited by 89
  22. 2024Think-on-Graph 2.0: Deep and Faithful Large Language Model Reasoning with Knowledge-guided Retrieval Augmented Generationcited by 64
  23. 2025QwenLong-L1: Towards Long-Context Large Reasoning Models with Reinforcement Learningcited by 50
  24. 2023Large Language Models Are Semi-Parametric Reinforcement Learning Agentscited by 42
  25. 2024Retrieve, Summarize, Plan: Advancing Multi-hop Question Answering with an Iterative Approachcited by 40
  26. 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 17
  27. 2025Mamba Modulation: On the Length Generalization of Mambacited by 16
  28. 2025Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMscited by 9
  29. 2025Resona: Improving Context Copying in Linear Recurrence Models with Retrievalcited by 5
  30. 2025Improving Context Fidelity via Native Retrieval-Augmented Reasoningcited by 5
  31. 2025From Evidence to Trajectory: Abductive Reasoning Path Synthesis for Retrieval-Augmented Generation Agents Developmentcited by 2
  32. 2026Beyond Hard Writes and Rigid Preservation: Soft Recursive Least-Squares for Lifelong LLM Editingcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 9.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026HMARS: A Hierarchical Multi-Agent Memory System for Long-Context Reasoning
  2. 2026PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agents
  3. 2026Learning to Remember: End-to-End Training of Memory Agents for Long-Context Reasoning
  4. 2026Stop When Memory Suffices: Evidence-Conditioned Progressive Execution for LLM Agents
  5. 2026APDMem: Agent-Controlled Progressive Disclosure for Query-Adaptive Long-Term Memory
  6. 2026SF-AMS: Strategic Forgetting for Structured Memory in LLM Agent
  7. 2026Memory is Reconstructed, Not Retrieved: Graph Memory for LLM Agents
  8. 2026MARDoc: A Memory-Aware Refinement Agent Framework for Multimodal Long Document QA