CoMem: Context Management with A Decoupled Long-Context Model
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Context management enables agentic models to solve long-horizon tasks through iterative summarization of previous interaction histories. However, this process typically incurs substantial decoding overhead for the extra summarization tokens, which significantly affect the end-to-end response latency at deployment. In this paper, we introduce CoMem, a novel framework that decouples memory management from the primary agent workflow, enabling these processes to execute in parallel. We propose a k-step-off asynchronous pipeline that overlaps the memory model's summarization with the agent's inference, effectively masking the latency of context processing. To ensure robustness under this asynchronous setting, we introduce a reward-driven training strategy that aligns the memory model to capture sufficient statistics for the agent's decision-making. Theoretical analysis confirms that CoMem offers a superior efficiency-effectiveness trade-off compared to coupled architectures. Our extensive experimental results on SWE-Bench-Verified show that CoMem provides 1.4x latency improvements upon vanilla long-context solutions while preserving most of the performance. Furthermore, we demonstrate that these latency gains scale favorably with increased system throughput, offering a modular path forward for the independent optimization of agent reasoning and memory compression.
Key facts. Cited by 5 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 24 of its 34 references that are in the map. First posted on arXiv 29 May 2026.
Builds on
24 of 34 references.
Closest ancestors · 6
Same direction, newest first
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Management28 Oct
- 2025Scaling Long-Horizon LLM Agent via Context-Folding13 Oct
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
- 2025Look Back to Reason Forward: Revisitable Memory for Long-Context LLM Agents27 Sep
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization16 Sep
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents18 Jun
Other references · 18
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2024The AI Scientist: Towards Fully Automated Open-Ended Scientific Discoverycited by 1,002
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
- 2025BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agentscited by 616
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
6 more
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Managementcited by 51
- 2024Compute Or Load KV Cache? Why Not Both?cited by 25
- 2025Sliding Window Attention Training for Efficient Large Language Modelscited by 21
- 2025Beyond Turn Limits: Training Deep Search Agents with Dynamic Context Windowcited by 19
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026DRSR: Learning Set-Level Deletion Risk for Efficient Long-Horizon Agentscited by 0
- 2026Memory Control Signals Emerge Before Action in Long Horizon Agentscited by 0
- 2026StateComp: Learning When to Compress History in Long Horizon Agentscited by 0
- 2026Stable Geometry with Divergent Task Evidence for Efficient Long-Horizon Agent Compressioncited by 0
- 2026When Can Agents Forget Their Reasoning? ICLR for Long-Horizon Agent Context Compressioncited by 0
- 2026When Can Agents Forget Their Reasoning? ICLR for Long-Horizon Agent Context Compression24 Sep 2026
- 2026Stable Geometry with Divergent Task Evidence for Efficient Long-Horizon Agent Compression23 Sep 2026
- 2026StateComp: Learning When to Compress History in Long Horizon Agents23 Sep 2026
- 2026Memory Control Signals Emerge Before Action in Long Horizon Agents23 Sep 2026
- 2026DRSR: Learning Set-Level Deletion Risk for Efficient Long-Horizon Agents23 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2026ACM: Agentic Context Management for Long Horizon Tasks
- 2026ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RL
- 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agents
- 2026PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning
- 2026MemoryCPT: An End-to-End Agent Memory Framework for Cost-Performance Trade-off
- 2026AMA-Bench: Evaluating Long-Horizon Memory for Agentic Applications
- 2026Parallel Context Compaction for Long-Horizon LLM Agent Serving
- 2026HyMem: Hierarchical Context Management for Long-Horizon Agents via Information Isolation