mlsanityData to 7 Oct 2026

PEEK: Context Map as an Orientation Cache for Long-Context LLM Agents

arXiv 2605.19932 ↗First posted 19 May 2026cs.AI cs.CL cs.LGcited by 4

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

  1. 2025Scaling Long-Horizon LLM Agent via Context-Folding13 Oct
  2. 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
  3. 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization16 Sep

Other references · 31

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  3. 2025OpenAI GPT-5 System Cardcited by 910
  4. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  5. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  6. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
  7. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
  8. 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 242
  9. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
  10. 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
  11. 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 211
  12. 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 204
19 more
  1. 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 199
  2. 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agentcited by 183
  3. 2025TurboQuant: Online Vector Quantization with Near-optimal Distortion Ratecited by 116
  4. 2025AgentRewardBench: Evaluating Automatic Evaluations of Web Agent Trajectoriescited by 99
  5. 2025Recursive Language Modelscited by 94
  6. 2025KVLink: Accelerating Large Language Models via Efficient KV Cache Reusecited by 60
  7. 2026Qwen3-Coder-Next Technical Reportcited by 60
  8. 2026CL-bench: A Benchmark for Context Learningcited by 46
  9. 2025Oolong: Evaluating Long Context Reasoning and Aggregation Capabilitiescited by 33
  10. 2024DroidSpeak: KV Cache Sharing for Cross-LLM Communication and Multi-LLM Servingcited by 30
  11. 2024FanOutQA: A Multi-Hop, Multi-Document Question Answering Benchmark for Large Language Modelscited by 29
  12. 2024Context Parallelism for Scalable Million-Token Inferencecited by 25
  13. 2025Strata: Hierarchical Context Caching for Long Context Language Model Servingcited by 25
  14. 2025Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agentscited by 23
  15. 2024METIS: Fast Quality-Aware RAG Systems with Configuration Adaptationcited by 16
  16. 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Servingcited by 9
  17. 2025InfiniteHiP: Extending Language Model Context Up to 3 Million Tokens on a Single GPUcited by 7
  18. 2025BitDecoding: Unlocking Tensor Cores for Long-Context LLMs with Low-Bit KV Cachecited by 7
  19. 2024Training Ultra Long Context Language Model with Fully Pipelined Distributed Transformercited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioception
  2. 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agents
  3. 2026ARC: Active and Reflection-driven Context Management for Long-Horizon Information Seeking Agents
  4. 2026ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RL
  5. 2026Persistent Context Graphs for Efficient Memory Compaction in LLM Agents
  6. 2025ContextPilot: Fast Long-Context Inference via Context Reuse
  7. 2026Beyond Compaction: Structured Context Eviction for Long-Horizon Agents
  8. 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models