PEEK: Context Map as an Orientation Cache for Long-Context LLM Agents
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Large language model (LLM) agents increasingly operate over long and recurring external contexts, like document corpora and code repositories. Across invocations, existing approaches preserve either the agent's trajectory, passive access to raw material, or task-level strategies. None of them preserves what we argue is most needed for repeated same-context workloads: reusable orientation knowledge (e.g., what the context contains, how it is organized, and which entities, constants, and schemas have historically been useful) about the recurring context itself. We introduce PEEK, a system that caches and maintains this orientation knowledge as a context map: a small, constant-sized artifact in the agent's prompt that gives it a persistent peek into the external context. The map is maintained by a programmable cache policy with three modules: a Distiller that extracts transferable knowledge from inference-time signals, a Cartographer that translates it into structured edits, and a priority-based Evictor that enforces a fixed token budget. On long-context reasoning and information aggregation, PEEK improves over strong baselines by 6.3-34.0% while using 93-145 fewer iterations and incurring 1.7-5.8x lower cost than the state-of-the-art prompt-learning framework, ACE. On context learning, PEEK improves solving rate and rubric accuracy by 6.0-14.0% and 7.8-12.1%, respectively, at 1.4x lower cost than ACE. These gains generalize across LMs and agent architectures, including OpenAI Codex, a production-grade coding agent. Together, these results show that a context map helps long-context LLM agents interact with recurring external contexts more accurately and efficiently.
Key facts. Cited by 4 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 34 of its 72 references that are in the map. First posted on arXiv 19 May 2026.
Builds on
34 of 72 references.
Closest ancestors · 3
Same direction, newest first
- 2025Scaling Long-Horizon LLM Agent via Context-Folding13 Oct
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization16 Sep
Other references · 31
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2025OpenAI GPT-5 System Cardcited by 910
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 242
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 211
- 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 204
19 more
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 199
- 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agentcited by 183
- 2025TurboQuant: Online Vector Quantization with Near-optimal Distortion Ratecited by 116
- 2025AgentRewardBench: Evaluating Automatic Evaluations of Web Agent Trajectoriescited by 99
- 2025Recursive Language Modelscited by 94
- 2025KVLink: Accelerating Large Language Models via Efficient KV Cache Reusecited by 60
- 2026Qwen3-Coder-Next Technical Reportcited by 60
- 2026CL-bench: A Benchmark for Context Learningcited by 46
- 2025Oolong: Evaluating Long Context Reasoning and Aggregation Capabilitiescited by 33
- 2024DroidSpeak: KV Cache Sharing for Cross-LLM Communication and Multi-LLM Servingcited by 30
- 2024FanOutQA: A Multi-Hop, Multi-Document Question Answering Benchmark for Large Language Modelscited by 29
- 2024Context Parallelism for Scalable Million-Token Inferencecited by 25
- 2025Strata: Hierarchical Context Caching for Long Context Language Model Servingcited by 25
- 2025Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agentscited by 23
- 2024METIS: Fast Quality-Aware RAG Systems with Configuration Adaptationcited by 16
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Servingcited by 9
- 2025InfiniteHiP: Extending Language Model Context Up to 3 Million Tokens on a Single GPUcited by 7
- 2025BitDecoding: Unlocking Tensor Cores for Long-Context LLMs with Low-Bit KV Cachecited by 7
- 2024Training Ultra Long Context Language Model with Fully Pipelined Distributed Transformercited by 6
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Position: Coding Benchmarks Are Misaligned with Agentic Software Engineeringcited by 3
- 2026Cost-Utility Alignment in LLM Agent Trajectories:Profiling,Attribution,Diagnosis,Adaptation,and Evaluationcited by 1
- 2026Ground Truth First: A Longitudinal Evaluation Instrument for Agent Memory, and the Tenure Crossover in Memory-Architecture Rankingscited by 0
- 2026ContextPipe: Database-Inspired Context Assembly for Long-Horizon Agentscited by 0
- 2026ContextPipe: Database-Inspired Context Assembly for Long-Horizon Agents1 Sep 2026
- 2026Cost-Utility Alignment in LLM Agent Trajectories:Profiling,Attribution,Diagnosis,Adaptation,and Evaluation25 Aug 2026
- 2026Ground Truth First: A Longitudinal Evaluation Instrument for Agent Memory, and the Tenure Crossover in Memory-Architecture Rankings24 Jul 2026
- 2026Position: Coding Benchmarks Are Misaligned with Agentic Software Engineering16 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioception
- 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agents
- 2026ARC: Active and Reflection-driven Context Management for Long-Horizon Information Seeking Agents
- 2026ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RL
- 2026Persistent Context Graphs for Efficient Memory Compaction in LLM Agents
- 2025ContextPilot: Fast Long-Context Inference via Context Reuse
- 2026Beyond Compaction: Structured Context Eviction for Long-Horizon Agents
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models