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

agent 2605.19932 — Cross-paper Synthesis

PEEK in Context — Orientation Cache vs the Agent-Memory / Context-Management Cluster #

Mode A per-paper synthesis. Target: PEEK: Context Map as an Orientation Cache for Long-Context LLM Agents (2605.19932). Peers span its direct backbone (RLM) and the agent-memory / context-management / long-context-degradation neighborhood.

相关论文 #

PEEK lives at the intersection of three otherwise-separate research lines, and its 2×2 design space (active/passive × agent-task/external-context) is the cleanest way to place each peer.

本篇 vs 相关论文的 delta #

维度PEEK (2605.19932)最近邻 peerdelta 性质
Managed objectcurated orientation knowledge about a recurring external context, as constant-size prompt text [2605.19932]RLM: the context itself as REPL variable [2512.24601]新增层 — sits above RLM, not a substitute
Persistence layersystem-prompt text (semantic layer)SideQuest: KV cache [2602.22603]; Q4: persisted KV bytes [2603.04428]正交层 — text vs KV
Reuse horizoninter-query, same context $C$ over $Q_{1:n}$ [2605.19932]SideQuest: intra-task eviction [2602.22603]; CMV: cross-session branch reuse [2602.22402]增量 — different reuse granularity
Curation philosophylossy distillation, discards task-specific rules [2605.19932]CMV: structurally lossless, preserves all user/assistant msgs [2602.22402]矛盾 — see below
Management driverLLM Distiller, no ground truth [2605.19932]SideQuest: LLM aux thread, hindsight-trained [2602.22603]共识 — model > heuristic
Validationempirical only, no guarantee [2605.19932]all peers also empirical-only [2512.24601]同质 — whole cluster lacks proofs

What is genuinely new. PEEK is the first to name and fill the active × external-context quadrant. Every peer occupies a neighbor: RLM offloads the context (passive-ish access via code), CMV actively maintains agent-task state, SideQuest/Q4 actively manage the KV layer, Pancake/RAG passively serve external material. PEEK's specific contribution — the Distiller/Cartographer separation operating on trajectories without ground truth — is its hardest-to-replicate piece; collapsing them costs −7.7% and a naive runtime full-swap costs −14.86% [2605.19932]. This is a sharper architectural claim than SideQuest's single aux-thread (which merges extraction and command emission in one pass) [2602.22603].

Incremental vs the cluster. The "model is its own best memory manager" thesis is shared with SideQuest, and the "small resident + rest out of window" thesis is shared with the dynamic-context blog and (implicitly) with retrieve-then-solve in 2510.05381 — PEEK's novelty is the artifact, not the resident-minimal instinct.

Contradiction (lossy vs lossless). PEEK discards task-specific facts to keep orientation under budget [2605.19932], whereas CMV's central claim is that compaction destroying 98% of session state is the disease, and lossless preservation of every user/assistant turn is the cure [2602.22402]. 矛盾根源: the two operate on different objects under different reuse assumptions. CMV preserves agent-task state where any past decision may be re-needed within the same project; PEEK distills external-context orientation where task-specific spend is provably non-transferable to the next query. Both can be correct in their own quadrant — but PEEK's "discard the trajectory, it hurts" and CMV's "never discard a turn" cannot both be adopted by a single agent without a quadrant-aware router.

可攻击面 #

  1. Benchmark selection bias on the headline generality claim. PEEK rejects BrowseComp-Plus, FanOutQA, and QuALITY because their tasks have nearly disjoint per-task evidence or contexts too short to need a cache [2605.19932]. But BrowseComp is exactly the workload SideQuest and RLM treat as central [2602.22603] [2512.24601]. Rebuttal: PEEK's "+6.3–34.0% generality" is conditioned on the single-persistent-context regime it hand-selected; on the multi-document agentic-search regime that dominates deep-research agents, PEEK by its own admission offers little, since orientation knowledge is not reused across disjoint contexts. The generalization across base LMs/agents [2605.19932] does not rescue this — it varies the model, not the workload shape.
    1. The static-map lower bound may be confounded by length-degradation, not orientation content. PEEK's strongest sanity check is that a frozen map already beats base RLM [2605.19932]. But 2510.05381 shows that input length alone degrades reasoning even with perfect retrieval [2510.05381]. Rebuttal: part of the frozen-map gain could be that any small resident summary lets the agent answer without re-expanding the long context into the working window — a length-reduction effect RLM's own offloading should already capture. PEEK's negative-control battery (raw prefix +0.73%, behavioral nudges +5.65%) [2605.19932] partially defends against this, but it never isolates "curated orientation" from "any length-reducing resident note" on a length-matched control where content is scrambled but token count held fixed.
      1. Serial maintenance tax vs SideQuest's parallel design. PEEK's maintenance is 6.2–17.9% of cost with the Distiller ≈ ⅔ of it [2605.19932], and it runs after each query in the loop. SideQuest deliberately forks management onto a parallel auxiliary thread off the critical path [2602.22603]. Rebuttal: PEEK's overhead is "partially self-offsetting" only because the map keeps iterations productive [2605.19932]; in latency-bound interactive use (not the offline benchmark setting) the synchronous Distiller pass is a per-query stall SideQuest's architecture avoids by construction.
        1. No KV / memory-pressure story. PEEK reduces iterations but says nothing about GPU KV-cache footprint — the bottleneck SideQuest (56–65% peak-token reduction) [2602.22603], Q4 (72% memory, 4× agents) [2603.04428], and Pancake (memory-op 82%→3.2%) [2602.21477] all target. Rebuttal: as a serving-cost paper PEEK is incomplete; its cost numbers are token/$ accounting, not memory-capacity or throughput-under-batching, so its efficiency claim is not comparable to the systems-level Pareto fronts its neighbors report.
          1. Reconstructed scoring equation. The one numbered equation (OOLONG $0.75^{|y-\hat y|}$) was reconstructed because the PDF dropped the exponent [2605.19932]. A skeptic can note the headline OOLONG deltas depend on a partial-credit metric the authors restored by convention; sensitivity of the +34.0% figure to the exact scoring rule is unreported.
          2. 生态位 #

            PEEK's paradigm move is to assert a previously-unoccupied cell and then defend it as load-bearing. Positioned against the cluster, the agent-memory stack stratifies cleanly:

            
            [ environment / offload ]   RLM — prompt as REPL variable        (2512.24601)
            [ active external-context ]  PEEK — curated orientation map        ← 本篇
            [ passive external memory ]  Pancake / RAG — vector DB substrate   (2602.21477)
            [ agent-task state ]         CMV — DAG snapshots, lossless trim     (2602.22402)
            [ KV / below-prompt ]        SideQuest (evict) · Q4 (persist)       (2602.22603, 2603.04428)
            [ harness / lazy load ]      dynamic context discovery — files      (blog)
            

            The niche is real because PEEK's neighbors each manage a different object, and PEEK is the only one curating active knowledge about the external context rather than the context, the trajectory, the KV, or the retrieval index. Its adoption evidence is unusually strong for a brand-new paradigm: it works unchanged on a different backbone agent (RLM → production OpenAI Codex) and across base LMs from GPT-5-mini to Qwen3-Coder-Next-FP8, with a small GPT-5-mini + PEEK becoming competitive with frontier models on the CL-bench leaderboard [2605.19932]. That cross-backbone portability is exactly the property RLM lacks at the prompt level (RLM's system prompt is not portable across models without per-model tuning) [2512.24601], suggesting PEEK's value lands precisely where its backbone is most brittle.

            The paradigm-shift framing mirrors the cluster's broader drift away from heuristics: SideQuest replaces attention-score eviction with model reasoning, Pancake replaces static vector DBs with workload-aware caching, and PEEK replaces hand-crafted/passive context with an auto-grown curated artifact. The common substrate is "let the model (or a model-derived policy) manage its own context," and PEEK is the semantic-layer instantiation of that substrate.

            未探索方向 #

            1. Stacked semantic + KV management. PEEK (prompt-text orientation) and SideQuest (KV eviction) operate on disjoint layers and are individually composable — SideQuest itself notes it can be deployed inside RLM-style hierarchical agents [2602.22603], which is exactly PEEK's substrate. An agent that keeps a PEEK map resident and runs SideQuest-style eviction on the per-query trajectory would attack both iteration-quality and KV-footprint at once — neither paper measures the combined Pareto front.
              1. Multi-context PEEK via a memory substrate. PEEK assumes one persistent context per session; Pancake provides exactly the multi-agent, multi-context ANN substrate to store many context maps keyed by context, and retrieve the right map when a recurring corpus reappears [2602.21477]. This would lift PEEK out of its admitted single-context limitation [2605.19932] and into the multi-document regime where it currently abstains.
                1. Branchable / persistable maps. CMV's DAG model [2602.22402] and Q4's persistent KV [2603.04428] together suggest a context map that (a) branches along a session DAG so divergent workstreams keep divergent orientation, and (b) is persisted (as text and as warm KV of the prompt prefix) for instant restart — turning PEEK's "frozen after m=1" map [2605.19932] into a durable cross-session asset.
                  1. Length-aware adaptive budget. PEEK shows budget-robustness across B∈{512,1024,2048} [2605.19932] but fixes B per run. 2510.05381's degradation curves [2510.05381] give a principled signal for setting B as a function of how much length-induced degradation the base model suffers — a learned or measured budget instead of a default.
                    1. Learned cache policy. RLM demonstrates that scaffold behavior is a trainable axis (1,000 trajectories give +28%; RL length-generalizes 64k→1M) [2512.24601], and SideQuest teaches semantic eviction with only 215 hindsight-annotated traces [2602.22603]. PEEK's Distiller/Cartographer are currently prompted LLM calls; distilling them into a small fine-tuned policy (à la SideQuest) could remove most of the 6.2–17.9% maintenance tax while keeping the two-stage contract.
                      1. Native many-questions-over-one-context benchmark. PEEK's rejected-benchmark analysis [2605.19932] is itself an unmet need: the cluster lacks a benchmark that natively poses many hard, evidence-overlapping queries over one persistent context. Building it would let PEEK, RLM, SideQuest, and a Pancake-backed multi-context variant be compared on a common, non-cherry-picked Pareto front.