PI-Mem: Pushing Long-Context Reasoning to 3.6M Tokens with Parallel-Iterative Memory
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
Long-context reasoning remains a critical bottleneck for large language models, as recent recurrent-memory approaches face two inherent challenges: sequential chunk-wise updates can overwrite early critical evidence with later irrelevant content, and serial inter-chunk dependencies limit parallelism and cause latency to increase with context length. To address these issues, we propose PI-Mem (Parallel-Iterative Memory), a mechanism that processes all chunks in parallel and iteratively refines a shared memory over a bounded number of turns. In each turn, PI-Mem reads all chunks in parallel conditioned on the current memory, selects new or complementary evidence from each chunk, and merges the selected evidence into a compact shared memory for the next turn. To discourage redundant turns, we optimize the workflow through reinforcement learning with an auxiliary turn-efficiency reward, enabling the model to adaptively exit once sufficient evidence has been accumulated. We evaluate PI-Mem with Qwen3.5-35B-A3B and Qwen2.5-7B on the HotpotQA benchmark across context lengths up to 3.6 million tokens and find that it outperforms the recurrent-memory baseline by +6.25 and +7.81 absolute points while achieving 6.1× and 2.1× inference speedups, respectively. These results demonstrate that PI-Mem breaks the accuracy--efficiency trade-off in long-context reasoning and provides a scalable approach to complex multi-hop question answering over extremely long documents.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 39 of its 45 references that are in the map. First posted on arXiv 4 Aug 2026.
Builds on
39 of 45 references.
Closest ancestors · 6
Same direction, newest first
- 2026When to Memorize and When to Stop: Gated Recurrent Memory for Long-Context Reasoning11 Feb
- 2026Dynamic Long Context Reasoning over Compressed Memory via End-to-End Reinforcement Learning9 Feb
- 2025QwenLong-L1.5: Post-Training Recipe for Long-Context Reasoning and Memory Management15 Dec
- 2025LoongRL: Reinforcement Learning for Advanced Reasoning over Long Contexts22 Oct
- 2025SPELL: Self-Play Reinforcement Learning for Evolving Long-Context Language Models28 Sep
- 2025QwenLong-L1: Towards Long-Context Large Reasoning Models with Reinforcement Learning23 May
Other references · 33
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,276
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
21 more
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2026Kimi K2.5: Visual Agentic Intelligencecited by 449
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 226
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
- 2024Agent S: An Open Agentic Framework that Uses Computers Like a Humancited by 182
- 2025Qwen2.5-1M Technical Reportcited by 158
- 2025Scaling Long-Horizon LLM Agent via Context-Foldingcited by 136
- 2024Hello Again! LLM-powered Personalized Agent for Long-term Dialoguecited by 121
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
- 2025A Comprehensive Survey on Long Context Language Modelingcited by 113
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 95
- 2025Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Taskscited by 62
- 2025Mem-α: Learning Memory Construction via Reinforcement Learningcited by 49
- 2025Look Back to Reason Forward: Revisitable Memory for Long-Context LLM Agentscited by 37
- 2025IterResearch: Rethinking Long-Horizon Agents with Interaction Scalingcited by 22
- 2026LongRLVR: Long-Context Reinforcement Learning Requires Verifiable Context Rewardscited by 13
- 2026AgentSwing: Adaptive Parallel Context Management Routing for Long-Horizon Web Agentscited by 9
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agentcited by 8
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026CoEM: Empowering Long-Context Reasoning with Commit-on-Evidence Memory
- 2026MemReread: Enhancing Agentic Long-Context Reasoning via Memory-Guided Rereading
- 2026A Decomposition Perspective to Long-context Reasoning for LLMs
- 2025Beyond Context Limits: Subconscious Threads for Long-Horizon Reasoning
- 2026G-MemLLM: Gated Latent Memory Augmentation for Long-Context Reasoning in Large Language Models
- 2025Reuse, Don't Recompute: Efficient Large Reasoning Model Inference via Memory Orchestration
- 2026Unlocking the Working Memory of Large Language Models for Latent Reasoning
- 2026Batched Contextual Reinforcement: A Task-Scaling Law for Efficient Reasoning