InfMem: Learning System-2 Memory Control for Long-Context Agent
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
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
32 more
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,444
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 830
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2023Active Retrieval Augmented Generationcited by 516
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
- 2023Cognitive Architectures for Language Agentscited by 429
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 238
- 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learningcited by 237
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 233
- 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
- 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 139
- 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 133
- 2023Retrieval meets Long Context Large Language Modelscited by 115
- 2023System 2 Attention (is something you might need too)cited by 89
- 2024Think-on-Graph 2.0: Deep and Faithful Large Language Model Reasoning with Knowledge-guided Retrieval Augmented Generationcited by 64
- 2025QwenLong-L1: Towards Long-Context Large Reasoning Models with Reinforcement Learningcited by 50
- 2023Large Language Models Are Semi-Parametric Reinforcement Learning Agentscited by 42
- 2024Retrieve, Summarize, Plan: Advancing Multi-hop Question Answering with an Iterative Approachcited by 40
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 17
- 2025Mamba Modulation: On the Length Generalization of Mambacited by 16
- 2025Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMscited by 9
- 2025Resona: Improving Context Copying in Linear Recurrence Models with Retrievalcited by 5
- 2025Improving Context Fidelity via Native Retrieval-Augmented Reasoningcited by 5
- 2025From Evidence to Trajectory: Abductive Reasoning Path Synthesis for Retrieval-Augmented Generation Agents Developmentcited by 2
- 2026Beyond Hard Writes and Rigid Preservation: Soft Recursive Least-Squares for Lifelong LLM Editingcited by 1
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026MementoGUI: Learning Agentic Multimodal Memory Control for Long-Horizon GUI Agentscited by 11
- 2026Scaling Self-Evolving Agents via Parametric Memorycited by 5
- 2026AttriMem: Attribution-Guided Process Feedback for Agent Memory Constructioncited by 5
- 2026MemCoT: Test-Time Scaling through Memory-Driven Chain-of-Thoughtcited by 2
- 2026MemOPD: On-Policy Distillation through Memory State Alignment for Long-Horizon Agentscited by 2
- 2026MemReread: Enhancing Agentic Long-Context Reasoning via Memory-Guided Rereadingcited by 0
- 2026PI-Mem: Pushing Long-Context Reasoning to 3.6M Tokens with Parallel-Iterative Memorycited by 0
- 2026Contract Memory Compiler: Resolve, Then Traversecited by 0
- 2026MemDuet: Learning Dual-Process Memory for Long-Context Reasoningcited by 0
- 2026MemDuet: Learning Dual-Process Memory for Long-Context Reasoning14 Oct 2026
- 2026Contract Memory Compiler: Resolve, Then Traverse26 Sep 2026
- 2026MemOPD: On-Policy Distillation through Memory State Alignment for Long-Horizon Agents7 Aug 2026
- 2026PI-Mem: Pushing Long-Context Reasoning to 3.6M Tokens with Parallel-Iterative Memory4 Aug 2026
- 2026AttriMem: Attribution-Guided Process Feedback for Agent Memory Construction23 Jul 2026
- 2026Scaling Self-Evolving Agents via Parametric Memory3 Jun 2026
- 2026MementoGUI: Learning Agentic Multimodal Memory Control for Long-Horizon GUI Agents18 May 2026
- 2026MemReread: Enhancing Agentic Long-Context Reasoning via Memory-Guided Rereading11 May 2026
- 2026MemCoT: Test-Time Scaling through Memory-Driven Chain-of-Thought9 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2026HMARS: A Hierarchical Multi-Agent Memory System for Long-Context Reasoning
- 2026PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agents
- 2026Learning to Remember: End-to-End Training of Memory Agents for Long-Context Reasoning
- 2026Stop When Memory Suffices: Evidence-Conditioned Progressive Execution for LLM Agents
- 2026APDMem: Agent-Controlled Progressive Disclosure for Query-Adaptive Long-Term Memory
- 2026SF-AMS: Strategic Forgetting for Structured Memory in LLM Agent
- 2026Memory is Reconstructed, Not Retrieved: Graph Memory for LLM Agents
- 2026MARDoc: A Memory-Aware Refinement Agent Framework for Multimodal Long Document QA