Dynamic Long Context Reasoning over Compressed Memory via End-to-End Reinforcement Learning
On the map: LLM reasoning → Test-time compute and efficient thinking
also in 1 more
Abstract (arXiv)
Large Language Models (LLMs) face significant challenges in long-context processing, including quadratic computational costs, information forgetting, and the context fragmentation inherent in retrieval-augmented generation (RAG). We propose a cognitively inspired framework for efficient long-context inference based on chunk-wise compression and selective memory recall, rather than processing all raw tokens. The framework segments long inputs into chunks and encodes each chunk into compressed memory representations using a learned compressor. A gating module dynamically selects relevant memory blocks, which are then iteratively processed by a reasoning module with an evolving working memory to solve downstream tasks. The compressor and reasoner are jointly optimized via end-to-end reinforcement learning, while the gating module is trained separately as a classifier. Experimental results show that the proposed method achieves competitive accuracy on multi-hop reasoning benchmarks such as RULER-HQA, extrapolates context length from 7K to 1.75M tokens, and offers a favorable accuracy-efficiency trade-off compared to strong long-context baselines. In particular, it achieves up to a 2 times reduction in peak GPU memory usage and a 6 times inference speedup over MemAgent.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 38 of its 41 references that are in the map. First posted on arXiv 9 Feb 2026.
Builds on
38 of 41 references.
Closest ancestors · 2
Same direction, newest first
- 2025QwenLong-L1.5: Post-Training Recipe for Long-Context Reasoning and Memory Management15 Dec
- 2025QwenLong-L1: Towards Long-Context Large Reasoning Models with Reinforcement Learning23 May
Other references · 36
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 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
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
24 more
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2025Group Sequence Policy Optimizationcited by 788
- 2024Training Large Language Models to Reason in a Continuous Latent Spacecited by 763
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
- 2023Adapting Language Models to Compress Contextscited by 350
- 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
- 2025From RAG to Memory: Non-Parametric Continual Learning for Large Language Modelscited by 223
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 192
- 2024RedPajama: an Open Dataset for Training Large Language Modelscited by 178
- 2025Qwen2.5-1M Technical Reportcited by 158
- 2022StreamingQA: A Benchmark for Adaptation to New Knowledge over Time in Question Answering Modelscited by 123
- 2025A Comprehensive Survey on Long Context Language Modelingcited by 113
- 2024Long Context Compression with Activation Beaconcited by 101
- 2025On the Theoretical Limitations of Embedding-Based Retrievalcited by 98
- 2023RecurrentGPT: Interactive Generation of (Arbitrarily) Long Textcited by 84
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 74
- 2025Dynamic Parametric Retrieval Augmented Generation for Test-time Knowledge Enhancementcited by 24
- 2024Quest: Query-centric Data Synthesis Approach for Long-context Scaling of Large Language Modelcited by 15
- 2025Reconstructing Context: Evaluating Advanced Chunking Strategies for Retrieval-Augmented Generationcited by 12
- 2025UniGist: Towards General and Hardware-aligned Sequence-level Long Context Compressioncited by 8
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026LightThinker++: From Reasoning Compression to Memory Managementcited by 4
- 2026FSFM: A Biologically-Inspired Framework for Selective Forgetting of Agent Memorycited by 3
- 2026OneDayAgent: Towards a Long-Horizon Harness for Autonomous Agentscited by 1
- 2026PI-Mem: Pushing Long-Context Reasoning to 3.6M Tokens with Parallel-Iterative Memorycited by 0
- 2026EM^2Mem: Event-Centric Multimodal Memory for Large Language Modelscited by 0
- 2026EM^2Mem: Event-Centric Multimodal Memory for Large Language Models1 Sep 2026
- 2026OneDayAgent: Towards a Long-Horizon Harness for Autonomous Agents4 Aug 2026
- 2026PI-Mem: Pushing Long-Context Reasoning to 3.6M Tokens with Parallel-Iterative Memory4 Aug 2026
- 2026FSFM: A Biologically-Inspired Framework for Selective Forgetting of Agent Memory22 Apr 2026
- 2026LightThinker++: From Reasoning Compression to Memory Management4 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2025Breadcrumbs Reasoning: Memory-Efficient Reasoning with Compression Beacons
- 2025Think Silently, Think Fast: Dynamic Latent Compression of LLM Reasoning Chains
- 2026Memory Augmentation Unlocks Efficient Chain-of-Thought Reasoning
- 2026CoEM: Empowering Long-Context Reasoning with Commit-on-Evidence Memory
- 2025Look Back to Reason Forward: Revisitable Memory for Long-Context LLM Agents
- 2026LongAttnComp: Cross-Family Context Compression for Long-Context Reasoning
- 2026LongR: Unleashing Long-Context Reasoning via Reinforcement Learning with Dense Utility Rewards
- 2026G-MemLLM: Gated Latent Memory Augmentation for Long-Context Reasoning in Large Language Models