PEEK: Context Map as an Orientation Cache for Long-Context LLM Agents
Zhuohan Gu, Qizheng Zhang, Omar Khattab, Samuel Madden
NeurIPS 2026
TL;DR. PEEK keeps a small, fixed-size context map in an LLM agent's prompt that caches reusable orientation knowledge about a recurring external context, making long-context agents more accurate and cheaper.
Abstract. 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.8$\times$ 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.4$\times$ 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.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Summary
The paper addresses LLM agents that repeatedly operate over the same long external context, such as a document corpus or code repository, across many invocations. It argues that existing approaches preserve the wrong thing: agent trajectories, passive raw access, or task-level strategies, but not reusable orientation knowledge about the recurring context itself (what it contains, how it is organized, which entities, constants, and schemas have proven useful). PEEK caches this as a constant-sized "context map" in the agent's prompt, maintained by three modules: a Distiller that extracts transferable knowledge from inference-time signals, a Cartographer that converts it into structured edits, and a priority-based Evictor enforcing a fixed token budget. On long-context reasoning and information aggregation, it reports 6.3–34.0% improvements over strong baselines with 93–145 fewer iterations and 1.7–5.8× lower cost than the state-of-the-art prompt-learning framework ACE; on context learning it reports 6.0–14.0% and 7.8–12.1% gains in solving rate and rubric accuracy. Gains are reported to generalize across base LMs and agent architectures including OpenAI Codex.
Main strengths
-
The empirical results are strong and broad. Reviewer 5Jmj credits substantial improvements over a well-chosen baseline set, such as RAG, shared chat history, context compaction, and ACE, with an improved cost-quality tradeoff, and notes the GPT-5.5 / Qwen3-Coder / Codex results suggest the idea is not tied to one model or agent implementation. Reviewer Uvyu describes the evaluation as relatively comprehensive with useful analyses of when and why competing methods fail.
-
The problem framing is clear: reviewer 5Jmj points out the Active/Passive × Agent-Task/External-Context design space as making the missing quadrant easy to understand and cleanly separating PEEK from shared chat, RAG, compaction, and prompt-learning methods. Reviewer rgQD credits the three-module division of labor as having clear engineering motivation, with the Table 3 ablations supporting the modular separation.
Main weaknesses
-
The boundary between orientation caching and answer memoization is not clear, and this goes directly to the paper's central claim. One of the map's five sections, "Reusable Results," is explicitly defined as caching derived computations from prior queries. The three evaluated OOLONG subsets are trec_coarse, agnews, and yahoo. These are classification-aggregation tasks over a shared corpus, where multiple queries plausibly reuse the same aggregate computations. Reviewers 5Jmj and rgQD both argue that this crosses from caching orientation into caching answers, which would give PEEK an advantage over baselines that have no cross-query accumulation mechanism at all.
-
In Table 3: the ablations test no-eviction/frozen cache, collapsing the Distiller and Cartographer into one call, and varying cache size. None disables the "Reusable Results" entry type specifically, and no entry-type usage or hit-rate breakdown is reported. Reviewer rgQD states plainly that without this, readers cannot determine whether gains come from structural navigational knowledge or cross-query answer reuse.
-
The evaluation protocol is ambiguous in a way that affects interpretation. As reviewer Uvyu notes, it is unclear whether the map is built on a separate adaptation set before evaluation or updated online during the same scored query sequence. If the latter, the reported gains may reflect test-time adaptation rather than generalization in the usual sense.
-
Reviewer 5Jmj raises a distinct attribution question: the experiments do not separate what PEEK caches (context knowledge vs. task strategy) from how it is maintained (the structured three-module pipeline).
-
Reviewer Uvyu observes there is no direct evaluation of context-map quality itself: coverage, correctness of cached facts, redundancy, or stability across updates. The map sufficiency is inferred only from downstream performance.
Final justification
I have read the author's response and the full discussion. My initial meta-review raised five concerns, and the authors addressed all with new experiments rather than with argument, including the ablation that goes to the paper's main claim, the question of whether PEEK caches orientation knowledge about a context or merely caches answers to its questions. That experiment came back in their favor: the mechanism the reviewers proposed may have caused performance to collapse, and it does not. The protocol clarity is resolved and turns out to favor the paper, map quality is now measured directly rather than inferred from downstream scores, and the two controls Reviewer 5Jmj specified separate what is cached from how it is maintained. Where results went against the authors, they reported them plainly, and they volunteered a correction to their own appendix. Two reviewers raised their scores.
What remains are limitations rather than defects: query-order sensitivity is argued rather than measured, and the method's applicability is scoped to one large persistent context queried many times rather than shown to generalize across context types. Reviewer rgQD maintains a borderline-reject, but rgQD does not contest the new evidence, and holds that formalizing existing engineering practice into an explicit caching framework does not clear the conceptual-novelty bar for this venue. That concern is valid, and all three reviewers scored Originality low. AC weighs it against what the paper delivers: a problem formulation that turns an informal practice into a measurable design question, ablations showing the design choices genuinely carry the result, and large, consistent gains that hold across models, agent architectures, and a production coding agent. A contribution that is engineering rather than theory can still be a contribution, and this one is well-scoped and useful. AC's initial reservation was that the central claim was asserted rather than tested; it has since been tested by the control asked for. The final recommendation is acceptance, consistent with the two reviewers who reached the same position on the same evidence, and AC expects the camera-ready to include the rebuttal's new experiments along with an explicit limitations discussion of the derived-result caching, the order-variance caveat, and the corrected appendix listing.
Read meta-review
Meta-review
Summary
The paper addresses LLM agents that repeatedly operate over the same long external context, such as a document corpus or code repository, across many invocations. It argues that existing approaches preserve the wrong thing: agent trajectories, passive raw access, or task-level strategies, but not reusable orientation knowledge about the recurring context itself (what it contains, how it is organized, which entities, constants, and schemas have proven useful). PEEK caches this as a constant-sized "context map" in the agent's prompt, maintained by three modules: a Distiller that extracts transferable knowledge from inference-time signals, a Cartographer that converts it into structured edits, and a priority-based Evictor enforcing a fixed token budget. On long-context reasoning and information aggregation, it reports 6.3–34.0% improvements over strong baselines with 93–145 fewer iterations and 1.7–5.8× lower cost than the state-of-the-art prompt-learning framework ACE; on context learning it reports 6.0–14.0% and 7.8–12.1% gains in solving rate and rubric accuracy. Gains are reported to generalize across base LMs and agent architectures including OpenAI Codex.
Main strengths
-
The empirical results are strong and broad. Reviewer 5Jmj credits substantial improvements over a well-chosen baseline set, such as RAG, shared chat history, context compaction, and ACE, with an improved cost-quality tradeoff, and notes the GPT-5.5 / Qwen3-Coder / Codex results suggest the idea is not tied to one model or agent implementation. Reviewer Uvyu describes the evaluation as relatively comprehensive with useful analyses of when and why competing methods fail.
-
The problem framing is clear: reviewer 5Jmj points out the Active/Passive × Agent-Task/External-Context design space as making the missing quadrant easy to understand and cleanly separating PEEK from shared chat, RAG, compaction, and prompt-learning methods. Reviewer rgQD credits the three-module division of labor as having clear engineering motivation, with the Table 3 ablations supporting the modular separation.
Main weaknesses
-
The boundary between orientation caching and answer memoization is not clear, and this goes directly to the paper's central claim. One of the map's five sections, "Reusable Results," is explicitly defined as caching derived computations from prior queries. The three evaluated OOLONG subsets are trec_coarse, agnews, and yahoo. These are classification-aggregation tasks over a shared corpus, where multiple queries plausibly reuse the same aggregate computations. Reviewers 5Jmj and rgQD both argue that this crosses from caching orientation into caching answers, which would give PEEK an advantage over baselines that have no cross-query accumulation mechanism at all.
-
In Table 3: the ablations test no-eviction/frozen cache, collapsing the Distiller and Cartographer into one call, and varying cache size. None disables the "Reusable Results" entry type specifically, and no entry-type usage or hit-rate breakdown is reported. Reviewer rgQD states plainly that without this, readers cannot determine whether gains come from structural navigational knowledge or cross-query answer reuse.
-
The evaluation protocol is ambiguous in a way that affects interpretation. As reviewer Uvyu notes, it is unclear whether the map is built on a separate adaptation set before evaluation or updated online during the same scored query sequence. If the latter, the reported gains may reflect test-time adaptation rather than generalization in the usual sense.
-
Reviewer 5Jmj raises a distinct attribution question: the experiments do not separate what PEEK caches (context knowledge vs. task strategy) from how it is maintained (the structured three-module pipeline).
-
Reviewer Uvyu observes there is no direct evaluation of context-map quality itself: coverage, correctness of cached facts, redundancy, or stability across updates. The map sufficiency is inferred only from downstream performance.
Final justification
I have read the author's response and the full discussion. My initial meta-review raised five concerns, and the authors addressed all with new experiments rather than with argument, including the ablation that goes to the paper's main claim, the question of whether PEEK caches orientation knowledge about a context or merely caches answers to its questions. That experiment came back in their favor: the mechanism the reviewers proposed may have caused performance to collapse, and it does not. The protocol clarity is resolved and turns out to favor the paper, map quality is now measured directly rather than inferred from downstream scores, and the two controls Reviewer 5Jmj specified separate what is cached from how it is maintained. Where results went against the authors, they reported them plainly, and they volunteered a correction to their own appendix. Two reviewers raised their scores.
What remains are limitations rather than defects: query-order sensitivity is argued rather than measured, and the method's applicability is scoped to one large persistent context queried many times rather than shown to generalize across context types. Reviewer rgQD maintains a borderline-reject, but rgQD does not contest the new evidence, and holds that formalizing existing engineering practice into an explicit caching framework does not clear the conceptual-novelty bar for this venue. That concern is valid, and all three reviewers scored Originality low. AC weighs it against what the paper delivers: a problem formulation that turns an informal practice into a measurable design question, ablations showing the design choices genuinely carry the result, and large, consistent gains that hold across models, agent architectures, and a production coding agent. A contribution that is engineering rather than theory can still be a contribution, and this one is well-scoped and useful. AC's initial reservation was that the central claim was asserted rather than tested; it has since been tested by the control asked for. The final recommendation is acceptance, consistent with the two reviewers who reached the same position on the same evidence, and AC expects the camera-ready to include the rebuttal's new experiments along with an explicit limitations discussion of the derived-result caching, the order-variance caveat, and the corrected appendix listing.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes PEEK, a context-management framework for long-context LLM agents that repeatedly interact with the same external corpus. Instead of preserving raw chat history, passively retrieving documents, or learning task-level prompts, PEEK maintains a compact context map that stores reusable orientation knowledge about the external context, such as its structure, key entities, constants, schemas, and useful prior findings. The map is updated through a modular cache policy consisting of a Distiller, Cartographer, and Evictor. Experiments on long-context reasoning and context-learning benchmarks show that PEEK improves accuracy, reduces iterations and cost, and generalizes across different LLMs and agent architectures.
Strengths and weaknesses
Strengths:
-
The paper studies an important and timely problem: how to extract reusable and transferable knowledge from long external contexts to better support LLM agents, rather than simply retrieving or compressing raw context.
-
The proposed PEEK framework achieves strong empirical performance on several benchmarks, demonstrating the effectiveness of maintaining a context map for recurring long-context tasks.
-
The experimental evaluation is relatively comprehensive. The paper compares against multiple strong baselines, studies different LMs and agent architectures, and provides useful analyses of when and why certain methods fail.
Weaknesses:
-
Ambiguity in the construction and evaluation protocol of the context map. The paper would benefit from a clearer description of when and how the context map is constructed during evaluation. In particular, it is not fully clear whether the map is built using a separate set of adaptation queries and then evaluated on held-out queries, or whether it is updated directly during the evaluation sequence. If the latter is the case, the reported gains may reflect test-time adaptation to the same external context rather than generalization in the conventional sense. A more explicit separation between map construction, adaptation, and held-out evaluation would make the experimental protocol more transparent and would help clarify what kind of generalization PEEK is actually demonstrating.
-
Lack of criteria for context-map sufficiency or convergence. The paper claims that only a small number of interactions are sufficient to produce an effective context map, with several experiments using no more than four update steps. However, it remains unclear how the authors determine that the resulting map is sufficiently complete, accurate, or stable. The current evidence is mainly based on downstream task performance, but there is no direct evaluation of the quality of the context map itself, such as coverage of important entities, correctness of cached facts, redundancy, stability across updates, or resistance to task-specific contamination. Without such analysis, it is difficult to assess whether the map has genuinely captured reusable orientation knowledge or whether it has merely accumulated useful hints for the evaluated query sequence.
-
Limited analysis of generalization across heterogeneous contexts and datasets. The paper demonstrates that PEEK generalizes across different base LMs and agent architectures, which is encouraging. However, this does not fully address generalization across substantially different data distributions, domains, or context structures. Since the effectiveness of a context map likely depends on the organization, stability, and repetitiveness of the external context, it would be important to evaluate whether PEEK remains effective on more heterogeneous, less structured, noisier, or dynamically changing datasets. Additional experiments that construct context maps on one type of context and evaluate them on different but related contexts, or that test PEEK under significant domain shifts, would strengthen the generalization claim.
Questions
-
What is the key difference between PEEK and context compaction or summarization methods? Although PEEK maintains and updates a context map, the number of update steps is typically small, often no more than four. This makes the method look similar to extracting or summarizing useful information from a long external context. Could the authors clarify what fundamentally distinguishes PEEK from existing context compaction or summarization-based approaches?
-
Is the technical novelty mainly a workflow design? From an implementation perspective, PEEK appears to rely largely on a sequence of LLM prompts, including the Distiller, Cartographer, and Evictor. Therefore, the technical novelty seems somewhat limited and may be better characterized as a workflow or system design rather than a new algorithmic method. Could the authors clarify the main technical contribution beyond prompt-based orchestration?
-
How should we assess the quality of the generated context map? Figure 4 provides an example of a context map generated by PEEK, but the task background and evaluation criteria for this map are not very clear. It is therefore difficult to understand why this particular context map should be considered good, or what aspects of it make it useful for downstream tasks. A more detailed qualitative analysis or explicit criteria for map quality would make this example more convincing.
Limitations
yes
Final justification
The authors clarified the target scope of PEEK and provided additional evidence supporting its effectiveness in persistent-context scenarios. Although its applicability remains limited, I find this scope reasonable. Therefore, I have increased my score.
Formatting concerns
None
4 comments
Response to Authors
I thank the authors for the additional analyses and clarifications. However, my main concern remains the limited applicability of PEEK, as its effectiveness appears to rely on repeated interactions with the same persistent context, which restricts its generality across broader scenarios. Therefore, I will maintain my score.
Follow-up on Reviewer Uvyu's applicability concern
We thank Reviewer Uvyu for the follow-up! We agree PEEK targets repeated querying of one large external context and claim nothing beyond that. Scope in this sense is not unique to PEEK: every method in the Figure 2 design space is defined by the regime it serves, and we position context maps as complementary to retrieval, compaction, and prompt learning rather than a replacement for them. But that regime is where much real agent usage already sits.
From talking with users, we found that this is already how these systems are used in the real world. A user uploads a large corpus once: a collection of research papers, a set of supplier invoices, or a dataset of product reviews, and then asks a stream of natural-language questions about it. For meat-packing operators analyzing shipment and inspection records, for example, the corpus often stays fixed for weeks while the questions change every day. They point a coding agent such as Codex or Claude Code at the directory and work through it question by question: "which lots were rejected most often last quarter?" is followed by "which suppliers do those rejections concentrate in?", then a dozen more. This is also where our results are strongest: the largest gains we measure anywhere are on Codex, a production coding agent (+44.0 / +35.6 / +52.0, Table 2).
We also did not manufacture the benchmark setting. As noted in §4.1 we chose OOLONG and CL-bench because they are natively structured as many tasks over one shared context and needed no data engineering from us. What is still missing, and what §5 calls for, are datasets whose questions each touch a broad slice of the corpus rather than one or two chunks, since that is the regime a context map is built for and the one current benchmarks under-serve.
We will make these workloads explicit in the camera-ready. If the reviewer has scenarios in mind where this seems unrepresentative, we would welcome them.
Thank the authors for the additional clarifications. While I still believe that many real-world agents operate in evolving environments where the context itself changes over time, the authors have clearly clarified the target scope of PEEK, and I find this positioning reasonable. Therefore, I have increased my score. Good luck!
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces PEEK, a system that maintains a context map for agents that repeatedly interact with long external contexts, by actively caching reusable orientation knowledge directly into the system prompt, using a Distiller to extract knowledge from execution trajectories, a Cartographer to apply structured edits, and an Evictor to enforce a fixed token budget. The authors evaluate on the long-context reasoning and context learning benchmarks OOLONG and CL-bench, demonstrating that compared to baselines including RAG, Compaction Agents, and Agentic Context Engineering (ACE), PEEK improves accuracy, reduces the number of required interaction iterations, and lowers cost.
Strengths and weaknesses
Quality The technical design of this paper is broadly sound. The three-module division of labor among the Distiller, Cartographer, and Evictor has clear engineering motivation, and the ablation studies (Table 3) support the necessity of the modular separation design. The experiments span three model or agent architectures — GPT-5.5, Qwen3-Coder-Next, and Codex — providing reasonably thorough generalization validation. However, the paper has a notable weakness: its core claims are insufficiently substantiated. The context map in PEEK includes "Reusable Results" entries, which cache derived computational results produced during historical queries. In the three subsets of the OOLONG benchmark (TREC-Q, AGNews, Yahoo), multiple tasks sharing the same external context are structurally highly correlated: once the first query computes a label distribution and writes it into Reusable Results, subsequent related queries can answer by direct table lookup without re-reasoning. Base RLM, RAG, and Compaction Agent have no such cross-query information accumulation mechanism and must compute from scratch for every query, creating an asymmetry. This advantage goes beyond the scope of what the paper claims as "orientation and navigational knowledge caching," and more closely resembles answer memoization. Yet the paper neither provides ablation results with Reusable Results disabled, nor reports the proportional distribution of entry types (Roadmap / Understanding / Constants / Reusable Results / Schema) observed during actual runs, leaving readers unable to determine whether the performance gains stem from the accumulation of structural navigational knowledge or from cross-query answer reuse.
Clarity The paper is professionally written and clearly structured overall. The design space analysis in Figure 2 serves as an effective positioning tool, the figures maintain appropriate information density, and the experimental presentation in Sections 4.3–4.5 is well-layered. Overall, the writing quality is high and does not impede understanding of the main contributions.
Significance The problem this paper addresses — reducing the cost and iteration count of repeated long-context interactions — has practical value in industrial settings, and Figure 5 provides an intuitive illustration of the system's advantages. However, as noted above, if the answer memoization effect of Reusable Results is the primary driver, the overall significance of this work would be correspondingly diminished. Furthermore, the evaluation is limited to two specific benchmark types, and the high structural correlation among tasks within OOLONG may artificially amplify the gains attributable to cross-query accumulation.
Originality The claims of the paper position "active external-context state" as a previously empty quadrant in the design space, yet this quadrant has long seen widespread informal use in engineering practice — from maintaining knowledge-base index files in tools such as Obsidian and injecting them into prompts, to context summary mechanisms in various agent memory systems — all of which substantially overlap with the core idea of a context map. The distinction between PEEK and prompt learning methods such as ACE is deliberately framed as a binary of "context knowledge vs. task strategy," but this boundary is extremely blurry in practice, and the historical query results cached in Reusable Results fall squarely between the two categories and resist clean classification.
Questions
Please provide complete OOLONG results under the condition of disabling Reusable Results entries, along with the count distribution across all five context map entry types and the cache hit rate for each, so as to constitute a decisive experiment for determining whether performance gains originate from "navigational knowledge" rather than "answer memoization."
Limitations
The authors discuss several limitations in Section 5 and the appendices with a reasonably candid tone. However, a key limitation of interpretability regarding the source of performance gains remains: the paper does not discuss the potential confounding effect of Reusable Results on the results, which is an issue that should be explicitly acknowledged in the limitations section of the main text and controlled for experimentally, rather than left for readers to infer.
Formatting concerns
null
1 comment
Rebuttal
We are grateful to the reviewer for framing the central objection as a testable mechanism, which makes the disagreement resolvable by experiment. We ran that experiment and report the two artifacts requested by name. We address each concern below.
#1: Provide complete OOLONG results with Reusable Results disabled.
The proposed mechanism, "the first query computes a label distribution, subsequent queries answer by table lookup", predicts collapse to base RLM. Removing those entries costs 8.1 / 4.5 / 16.0 points, but 19.7 / 18.4 / 18.0 points of gain survive.
| Benchmark | Method | Cost | Accuracy |
|---|---|---|---|
| TREC-Q | base RLM | $5.02 | 30.3 |
| RLM + ACE (online) | $29.42 | 48.8 | |
| RLM + PEEK, RR disabled | $5.28 | 50.0 | |
| RLM + PEEK (Table 1) | $5.10 | 58.1 | |
| AGNews | base RLM | $2.24 | 46.5 |
| RLM + ACE (online) | $5.20 | 61.6 | |
| RLM + PEEK, RR disabled | $2.47 | 64.9 | |
| RLM + PEEK (Table 1) | $2.30 | 69.4 | |
| Yahoo | base RLM | $0.93 | 23.0 |
| RLM + ACE (online) | $4.10 | 42.0 | |
| RLM + PEEK, RR disabled | $2.08 | 41.0 | |
| RLM + PEEK (Table 1) | $2.39 | 57.0 |
Reusable Results contributes materially, most on Yahoo, and with it disabled the system
sits at parity with ACE on accuracy. We make no accuracy claim for the ablated variant. All
three gains over base RLM are significant under a paired sign test on identical questions
(p = 0.0012 / 0.014 / 0.0079), and rise to +22.5 / +18.0 / +20.0 on frozen-map queries.
The result we would draw is the cost column: orientation knowledge alone reaches ACE's accuracy at 2.0× to 5.6× lower cost, adapting on at most 4 queries rather than on every query. Derived aggregates are what carry the full system past ACE, and we now report the price of removing them so readers can judge it directly. Note also that on TREC-Q and AGNews the full system is both cheaper and more accurate than the ablated variant (5.10 vs. 5.28 dollars on TREC-Q, 2.30 vs. 2.47 on AGNews): the agent re-derives aggregates it would otherwise have cached, so caching them pays for itself. We verified the ablation removes the aggregates rather than displacing them: afterwards 0 of 30 maps contain a label→count table and 0 aggregate items remain, against 26 of 30 in Table 1.
The traces agree. On frozen-map questions the agent references a Reusable Results entry in
its executed code in 13.8% of cases, and median iterations are identical (3.0) whether or
not the map held a label→count table. That 13.8% and the 16-point Yahoo drop measure
different things: the code-reference rate is an upper bound on lookup-style reuse, while a
cached distribution can also inform planning or cross-check a fresh result without appearing
in code. A genuine answer key would cut iterations, and it does not.
Conceptually, Reusable Results holds facts about the context, closer to a dictionary's
word-frequency table than to a rule, whereas playbooks accumulate rules such as "Do not
classify technology/security articles as Business merely because a company is mentioned."
The scenario described, an aggregate computed once and reused, is one we deliberately
target. But the paper cannot simply assert this, so we made it testable.
#2: Report the count distribution across entry types and the per-type cache hit rate.
Across the final OOLONG maps (216 items, 7.2 per map at B = 1024):
| Section | items | % items | % of map tokens |
|---|---|---|---|
| Parsing Schema | 64 | 29.6% | 30.2% |
| Context Understanding | 46 | 21.3% | 21.5% |
| Reusable Results | 44 | 20.4% | 23.6% |
| Domain Constants | 34 | 15.7% | 12.2% |
| Context Roadmap | 28 | 13.0% | 12.5% |
RR is 19% / 23% / 19% of items on TREC-Q / AGNews / Yahoo, so roughly 77% of the budget is something else.
For hit rate we report two measures and distinguish them. The independent one is behavioral:
the 13.8% code-reference rate and identical median iterations above. The second is the
Distiller's own per-item tagging, now made persistent, a system-internal signal useful for
comparing sections against each other but not an external validation. Hit rate = share of
item-update observations tagged helpful (TREC-Q, 31 update steps):
| Section | obs | helpful | harmful | neutral | stale | mean lifetime |
|---|---|---|---|---|---|---|
| Context Roadmap | 13 | 100.0% | 0.0% | 0.0% | 0.0% | 2.67 |
| Domain Constants | 17 | 88.2% | 0.0% | 11.8% | 0.0% | 2.46 |
| Context Understanding | 20 | 85.0% | 0.0% | 15.0% | 0.0% | 1.57 |
| Parsing Schema | 40 | 62.5% | 0.0% | 37.5% | 0.0% | 2.11 |
| Reusable Results | 22 | 68.2% | 13.6% | 13.6% | 4.5% | 2.44 |
This speaks to the reviewer's reading: Reusable Results is the only section ever tagged
harmful or stale, while every orientation section is 0.0% on both. Over the same 31 updates
the policy issued 98 ADD, 34 REPLACE and 19 DELETE operations with item lifetimes of 1.6 to
2.7 updates, so the map is actively revised rather than accumulated.
#3: Evaluation limited to two benchmark types; OOLONG tasks are highly correlated.
The narrow benchmark base is a real constraint, and it is why we call for new datasets. We searched specifically for tasks requiring interaction with an entire corpus and rarely found them: in BrowseComp-Plus a query needs about 7.3 documents out of 800, in FanOutQA only 1.1% of dev question pairs share any evidence page, and QuALITY articles average about 5.6K tokens so one LM call suffices. App. D documents all three retrofits. OfficeQA has the same shape: 89,000 pages of U.S. Treasury Bulletins, yet each question resolves from one or two pages, so nothing accumulates. That is a property of the benchmark, not the method.
The scenario we target, and will state explicitly, is one large persistent corpus queried many times by tasks that each touch a broad slice of it: enterprise log and feedback analysis, repository-wide code questions, corpus-level analytics. Where a task needs one or two chunks, retrieval is the right tool.
On correlation inflating the gains, the ablation above is the direct control. If correlated tasks were letting later queries reuse an earlier aggregate, disabling those entries would collapse the result. It costs real points, which we report, but 18.0 to 19.7 points of gain remain on every split.
#4: The active external-context quadrant is already occupied by informal engineering practice.
The underlying intuition is not new and we should have said so: knowledge-base index files and agent-memory summaries do occupy this space informally. Our claim is narrower and turns on what we mean by cache.
Inside an agent scaffold there is a constant-sized region of the prompt, for RLM a blurb in the system message, that persists across invocations. The problem we pose is a caching problem: given that fixed budget, what should sit there? We call it a cache rather than a summary because it has a cache's defining properties: bounded capacity (a hard token budget fixed across every experiment), residency (never compacted away, never externalized into environment storage), and a replacement policy (98 ADD, 34 REPLACE, 19 DELETE over 31 updates).
The cited examples occupy neighboring design space but do not specify that combination. An index or memory summary can in principle be bounded, and we do not claim otherwise. The distinction is that PEEK makes capacity pressure part of the method: every candidate competes for a fixed resident budget, so admission and replacement are unavoidable. App. B.2 measures how much occupancy matters: at the same 1,024-token capacity a raw prefix gives +0.73% and sub-goal retrieval +4.92%, against PEEK's +22.9 to +34.0%. We do not claim to replace retrieval, compaction or prompt learning, only that fixed-capacity agent-side prompt caching with an explicit replacement policy is underexplored.
The context-knowledge / task-strategy boundary is blurry and Reusable Results sits on it.
Rather than defend the taxonomy we tested it, and the conclusions do not depend on where the
line falls.
#5: The limitations section should acknowledge the confound.
Agreed, and it will. The camera-ready will state in the main-text limitations that
Reusable Results caches derived computations; that on aggregation-style benchmarks this
reuse is a deliberate part of the design; that the evaluated OOLONG subset is counting-only;
and that the disable-RR ablation is the control separating this from orientation knowledge.
We will also state that the map's value depends on the agent interacting broadly with the
context.
Finally: the two artifacts requested by name are reported above, and the limitations text will state the confound explicitly rather than leaving it for readers to infer. We hope these settle the attribution question, and would be grateful if the reviewer would consider revisiting their rating in light of them.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes PEEK, a context-management method for long-context LLM agents that repeatedly answer different queries over the same external context. Instead of preserving raw chat history, retrieved chunks, or task-level prompt rules, PEEK maintains a small fixed-budget “context map” in the agent prompt. This map stores reusable orientation knowledge about the external context, such as its organization, key entities, schemas, constants, and reusable intermediate results. The map is updated through a Distiller that analyzes execution trajectories, a Cartographer that converts extracted knowledge into structured edits, and an Evictor that enforces the token budget. Experiments on OOLONG and CL-bench report consistent improvements over RLM, shared chat, RAG, context compaction, and ACE, with additional studies across different base LMs and agent backbones.
Strengths and weaknesses
Strengths
S1. Empirical gains are strong across several settings. The reported improvements are substantial across the main benchmarks. PEEK outperforms several reasonable baselines, including RAG, shared chat, context compaction, and ACE, while also improving the cost-quality tradeoff. The additional experiments with GPT-5.5, Qwen3-Coder, and Codex suggest that the idea is not tied to a single base model or agent implementation.
S2. Positioning is clear and target setting is well-defined. The paper provides a clear and intuitive positioning of the problem through the Active/Passive x Agent-Task/External-Context design space. This framing makes the missing “active external-context” quadrant easy to understand and helps distinguish PEEK from shared chat history, RAG, compaction, and prompt-learning methods. The target setting of repeated same-context workloads is also concrete and practically relevant, making the motivation easy to follow.
Weaknesses
W1. The boundary between orientation caching and answer-relevant memoization is unclear. The central claim is that PEEK caches reusable orientation knowledge about the external context, not task-specific answers. However, the map also includes “Reusable Results,” which may store derived computations such as counts, distributions, classifications, or other aggregates. In benchmarks like OOLONG, where multiple questions over the same context may reuse similar aggregate computations, this can become close to caching intermediate answers rather than merely caching orientation. A key ablation is needed to disentangle orientation caching from reusable computation caching. I recommend evaluating a variant of PEEK without the Reusable Results section, or with the map restricted to roadmap, schema, constants, and high-level context understanding.
W2. Evaluation may depend strongly on query order and repeated-task structure. PEEK is evaluated in a sequential repeated-context setting, but the paper does not sufficiently analyze how results depend on the order of queries. Since the map is updated from earlier task trajectories, different query orders may expose different facts or schemas. This makes the reported results potentially sensitive to ordering effects. The paper would be stronger with multiple random task orders, and an analysis of how many initial queries are needed before the map becomes useful.
W3. The experiments do not disentangle what PEEK caches (context-level knowledge vs. task-level strategy) from how it is maintained (the structured Distiller-Cartographer-Evictor pipeline), leaving the source of PEEK's gains ambiguous. The ACE comparison alone cannot settle this: ACE is designed to accumulate task-level playbooks, so simply outperforming it does not establish which factor is responsible: a better caching target (context vs. task), a better maintenance mechanism, or only the former. The decisive missing experiments are two ablations operating on the same trajectory signal: (a) storing the distilled information as a flat free-text summary rather than a sectioned map, which isolates the contribution of the structured pipeline; and (b) redirecting ACE's reflect-curate mechanism to accumulate context knowledge instead of task playbooks, which isolates the contribution of the caching target. If variant (b) approaches PEEK, the core contribution is just the reorientation of what is cached rather than a new maintenance mechanism.
Questions
Please see weaknesses
Limitations
yes
Final justification
The rebuttal substantially addressed my main attribution concerns through the Reusable Results-disabled, flat-note, and context-redirected ACE ablations. The query-order sensitivity concern remains not fully resolved, but I understand the clarified scope as repeated querying of persistent external contexts. Overall, I find the remaining limitations acceptable relative to the strengthened empirical evidence.
Formatting concerns
.
2 comments
Rebuttal
We thank the reviewer for stating each concern as a concrete, falsifiable experiment. W1 and W3 name three ablations, and we ran all three on every OOLONG split. We address each concern below.
#1: The boundary between orientation caching and answer-relevant memoization is unclear. Evaluate a variant without Reusable Results.
We ran it. Removing Reusable Results costs 8.1 / 4.5 / 16.0 points, but 19.7 / 18.4 / 18.0
points of gain over base RLM survive.
| Benchmark | Method | Cost | Accuracy |
|---|---|---|---|
| TREC-Q | base RLM | $5.02 | 30.3 |
| RLM + ACE (online) | $29.42 | 48.8 | |
| RLM + PEEK, RR disabled | $5.28 | 50.0 | |
| RLM + PEEK (Table 1) | $5.10 | 58.1 | |
| AGNews | base RLM | $2.24 | 46.5 |
| RLM + ACE (online) | $5.20 | 61.6 | |
| RLM + PEEK, RR disabled | $2.47 | 64.9 | |
| RLM + PEEK (Table 1) | $2.30 | 69.4 | |
| Yahoo | base RLM | $0.93 | 23.0 |
| RLM + ACE (online) | $4.10 | 42.0 | |
| RLM + PEEK, RR disabled | $2.08 | 41.0 | |
| RLM + PEEK (Table 1) | $2.39 | 57.0 |
Reusable Results contributes materially, most on Yahoo, and with it disabled the system
sits at parity with ACE on accuracy. We make no accuracy claim for the ablated variant. What
the ablation rules out is the proposed mechanism, which predicts collapse toward base RLM.
All three gains over base RLM are significant under a paired sign test on identical
questions (p = 0.0012 / 0.014 / 0.0079), and rise to +22.5 / +18.0 / +20.0 on frozen-map
queries that never contributed to building the map.
The result we would draw is the cost column. Orientation knowledge alone reaches ACE's accuracy at 2.0× to 5.6× lower cost, while adapting on at most 4 queries rather than running a reflector and curator over every query. Two further points follow from the same column. Derived aggregates are what carry the full system past ACE. And on TREC-Q and AGNews the full system is both cheaper and more accurate than the ablated variant (5.10 vs. 5.28 dollars on TREC-Q, 2.30 vs. 2.47 on AGNews), because the agent re-derives aggregates it would otherwise have cached, so caching them pays for itself rather than merely buying accuracy.
We verified that the ablation removes the aggregates rather than relocating them: afterwards 0 of 30 maps contain a label→count table and 0 aggregate items remain, against 26 of 30 in Table 1.
The cached aggregates also do not act as an answer key. Splitting all frozen-map questions by whether the live map held a label→count table:
| share of questions | median iterations | mean | |
|---|---|---|---|
| map did hold the aggregate | 88.1% | 3.0 | 3.62 |
| map did not | 11.9% | 3.0 | 3.20 |
The agent does the same aggregation work either way, slightly more when the table is
present, and only 27% of questions whose map held the aggregate finished in ≤2 iterations,
where a lookup would resolve in one. In the traces the agent references a Reusable Results
entry in its executed code in 13.8% of cases.
That 13.8% and the 16-point Yahoo drop measure different things. The code-reference rate is an upper bound on lookup-style reuse; a cached distribution can also inform planning or cross-check a freshly computed result without appearing in code. The iteration data discriminates: a genuine answer key would cut iterations, and it does not.
What the agent references is method knowledge: record-parsing recipes, the exact label enum, and warnings such as "canonical label words frequently appear inside Instance text." By contrast, ACE playbooks from our own runs accumulate rules: "Do not classify technology/security articles as Business merely because a company is mentioned." Per the §1 analogy, an analyst returning to a 50k-entry corpus keeps a table of contents, memos on entities and constants, a record of what has been inspected, and answers to common intermediate results. All are properties of the corpus, the last a derived aggregate.
#2: Results may depend on query order. Multiple random orders, and how many queries are needed.
The queries are already shuffled, so the update and frozen phases draw from the same
difficulty distribution. Order exposure is also bounded by construction: only the first
m ≤ 4 queries can influence the map, so ordering acts only through which few queries land
first. Methods that adapt on every query are more exposed, not less, since ACE's playbook at
query i depends on the order of all i−1 predecessors.
Two observations suggest the dependence is weak. In exploratory runs, reshuffling perturbed
scores modestly; we did not log those runs systematically, so we report this as an
observation rather than a measurement. And m = 1 already yields 54.6 / 58.7 / 46.0 against
base RLM's 30.3 / 46.5 / 23.0, so an arbitrary single update query recovers most of the
gain. The map does not depend on a favorable draw.
The systematic measurement is still missing and we will state it as a limitation. We would
add that which queries arrive first is a curriculum question for context adaptation
generally, applying to any method that learns a prompt from an execution stream;
characterizing it properly, along with selecting m adaptively, is its own paper.
On m: we explored 1–10 and found m ≤ 4 sufficient throughout. We chose 4 to balance cost
and latency, not by tuning on the metric, and since the curve is not monotone we will report
the sweep rather than a single value.
#3: Disentangle what PEEK caches from how it is maintained. (a) flat free-text note, (b) ACE redirected to context knowledge.
Both variants, on the same trajectory signal.
(a) Flat free-text note. Distiller and budget unchanged; the Cartographer becomes a prose rewriter, preserving the two-stage separation while removing sections, item ids and edit operations.
| TREC-Q | AGNews | Yahoo | |
|---|---|---|---|
| base RLM | 30.3 | 46.5 | 23.0 |
| flat free-text note | 48.0 | 65.0 | 49.0 |
| RLM + PEEK (sectioned map) | 58.1 | 69.4 | 57.0 |
| value of the structured map | +10.1 | +4.4 | +8.0 |
The gain is robust to serialization, since a flat note still recovers +17.7 / +18.5 / +26.0 over base RLM. But the structured map is worth a further 4.4 to 10.1 points at an identical budget, so structure is not cosmetic. Collapsing the two stages into one call is the separate ablation in Table 3 (−7.7); making the map append-only costs −10.2.
(b) ACE's reflect–curate redirected to context knowledge. Mechanism untouched, only the target changed: 53.0 / 64.5 / 22.0, i.e. +4.2 / +2.9 / −20.0 against ACE, and below base RLM on Yahoo.
Redirecting the target does not approach PEEK, and the reason is not size. ACE's curator is ADD-only, so contradictory versions of the same fact accumulate with no way to remove them. One Yahoo knowledge base holds four overlapping label-count entries plus an entry recording, verbatim, that a sub-LLM extraction "produced incorrect label counts … contradicting the reusable-results mapping": noticed, written down, never removable. PEEK issued 19 DELETEs and 34 REPLACEs over 31 updates on TREC-Q. Taken with (a), what carries the result is neither format nor target alone but the ability to revise and evict under a fixed budget.
This isolates an axis rather than claiming displacement. ACE shares the trajectory signal and the accumulation mechanism, so redirecting its target is a control on what gets cached, not an argument that context maps supersede prompt learning. Figure 2 places the two in distinct quadrants, and we expect a playbook and a map to be complementary occupants of a prompt.
Finally: all three experiments the reviewer specified are now run, and the camera-ready
will carry them along with a limitations paragraph on Reusable Results, the m sweep, and
the order-variance caveat. We recognize the reviewer's assessment rested on questions that
were open at review time; if these results resolve them, we would be grateful if the
reviewer would consider revisiting their rating.
I thank the authors for the detailed rebuttal and additional experiments. The new ablations largely address my W1/W3 concerns, while W2 remains only partially addressed without systematic order-variance analysis. Still, I view the clarified scope reasonable: the paper focuses on the same-corpus-many-questions setting, rather than a broader curriculum study. I increase my score based on my strong expectation that the rebuttal results and limitations will be properly reflected in the camera-ready.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We appreciate the reviewer's reading of our evaluation protocol, and the request that map quality be assessed directly rather than inferred from downstream scores. We address each concern below.
#1: When is the map constructed? Gains may reflect test-time adaptation rather than generalization.
The queries are already shuffled, so the update and frozen phases draw from the same difficulty distribution. Two guarantees apply.
First, no query benefits from its own update. In Alg. 1 the agent answers
Q_iand that answer is scored before the Distiller is invoked onQ_i's trajectory, so even within the update phase every answer is produced under a map built only from strictly earlier queries.Second, queries
m+1…nare answered under a fully frozen map:mupdate queriesGains are larger on queries the map never saw, and the ranking against every baseline holds there: base RLM 27.5 / 44.3 / 21.7, Shared Chat 30.0 / 47.0 / 21.7, RAG 33.7 / 62.6 / 33.3, Compaction Agent 40.0 / 50.7 / 28.3, ACE 48.3 / 64.5 / 48.3, PEEK 57.2 / 69.2 / 65.0.
The asymmetry also runs opposite to the worry. We run the full version of ACE following its official usage, with a reflector and curator writing playbook edits after every query: online adaptation on 100% of the stream, no frozen phase. PEEK updates on the first
m≤ 4 queries per context and is frozen thereafter, yet wins on every split.On that configuration, one correction: we pasted the wrong prompt into the appendix. The listing shows a bounded variant from our earlier exploratory runs, which were truncation- and retrieval-limited. The main-paper results use the full version of ACE as described above, and we will replace the listing with the prompt actually used.
#2: No criteria for map sufficiency, correctness, redundancy, or stability.
The reviewer is right that the paper inferred map quality only from downstream performance. We can now report it directly.
Correctness. Every quantitative claim the maps make about corpus size, checked against the true window statistics: 21 of 23 correct within 10%, 19 exact to the character. Both errors are conservative understatements.
Composition. Across the final OOLONG maps (216 items, 7.2 per map at B = 1024): Parsing Schema 29.6% of items, Context Understanding 21.3%, Reusable Results 20.4%, Domain Constants 15.7%, Context Roadmap 13.0%.
Redundancy and coverage. Near-duplication is rare: 0 to 1.5% of within-map item pairs exceed 0.6 token-set Jaccard. Cached label enumerations cover 70 to 100% of each label set.
Stability. We report two measures and distinguish them. The independent one is behavioral: on frozen-map questions the agent references a
Reusable Resultsentry in its executed code in 13.8% of cases, and median iterations are identical (3.0) whether or not the map holds a label→count table. The second is the Distiller's own per-item tagging, now made persistent, a system-internal signal useful for comparing sections but not an external validation. Hit rate = share of item-update observations taggedhelpful(TREC-Q, 31 update steps):Over those 31 updates the policy issued 98 ADD, 34 REPLACE and 19 DELETE operations with mean item lifetimes of 1.6 to 2.7 updates, so the map is actively revised rather than accumulated.
Reusable Resultsis the only section ever tagged harmful or stale.Sufficiency. A single update query already yields 54.6 / 58.7 / 46.0 against base RLM's 30.3 / 46.5 / 23.0, consistent with orientation knowledge saturating quickly. We explored
m= 1–10 and foundm≤ 4 sufficient throughout. The curve is not monotone, so we do not claim convergence and will report the sweep.No labeled-answer leakage. The Distiller receives neither the ground-truth answer nor the agent's final answer; both slots are hard-coded to "not applicable" (App. E.3). Separately, disabling
Reusable Resultsstill leaves +19.7 / +18.4 / +18.0 over base RLM.#3: Generalization across heterogeneous contexts and datasets.
Generalization across models and agents is indeed not generalization across contexts. What we can report is where context maps fail, which speaks to dependence on context organization. App. D documents three rejected benchmarks. In BrowseComp-Plus and FanOutQA the shared context concatenates independent documents with nearly disjoint per-task evidence (in FanOutQA only 1.1% of dev question pairs share an evidence page), so the map degenerates into a grab bag that can mislead. QuALITY contexts are shared but average about 5.6K tokens, so one call suffices. OfficeQA searches 89,000 pages of U.S. Treasury Bulletins, yet each question is answered from one or two pages.
This is why our call for new benchmarks is specific: what is missing are datasets posing many hard questions over one large persistent context, each touching a broad slice of it. The domains we target are enterprise log and feedback analytics, repository-wide code questions, and corpus-level aggregation.
#4: What distinguishes PEEK from context compaction or summarization?
Three differences, each with a control in the paper.
Source of signal. Compaction summarizes the context; the Distiller reads the agent's execution trajectory, so the map records what the agent needed and where it stalled, such as parsing pitfalls and misleading surface patterns, which no context-derived summary can know. MemAgent reaches 42.0 / 49.5 / 30.0 on OOLONG against PEEK's 58.1 / 69.4 / 57.0.
It is a cache, not a summary. A compaction summary is compressed context state; PEEK maintains bounded prompt-resident state with explicit admission, revision and eviction. Table 3 isolates that policy's value: making the map append-only costs −10.2 on average.
The small number of updates is the claim, not an accident.
m≤ 4 makes PEEK cheap precisely because orientation knowledge saturates quickly, which is what makes a bounded cache the right abstraction. App. B.2 is the control: at the same budget, content that is a summary or excerpt does poorly, with a raw prefix giving +0.73%, sub-goal retrieval +4.92%, runtime feedback −14.86%.#5: Is the technical novelty mainly a workflow design?
It is a systems contribution rather than a new learning algorithm, and the three modules are LLM calls with structured outputs. What we would put forward is the problem formulation: a constant-sized region of the system message persists across invocations, and deciding what earns a place in it is an admission-and-replacement problem.
Our ablations locate the value, and it is not in the prompt chain being a chain. At an identical budget with the same Distiller, a flat free-text note reaches 48.0 / 65.0 / 49.0 against PEEK's 58.1 / 69.4 / 57.0, so serialization is worth 4.4 to 10.1 points, real but secondary. Removing revision and eviction costs −10.2, and collapsing diagnosis into edit planning costs −7.7 (Table 3). §5 states what a learning contribution would look like here, namely training the Distiller and adaptive cache sizing.
#6: How should the quality of the Figure 4 map be assessed?
The figure lacked stated criteria and we will add them, each with a measurement reported above. Transferability, whether a query that did not contribute to map construction benefits, which the frozen-map phase measures end to end. Factual correctness, 21 of 23 corpus-size claims correct and 19 exact. Compactness and non-redundancy, 7.2 items in 1,024 tokens with 0 to 1.5% of pairs above 0.6 Jaccard. Calibration, meaning entries record how a result was obtained and when to distrust it; the Fig. 4 map contains, verbatim, "Raw substring counts (diagnostic, brittle method)". And no labeled-answer leakage, since the Distiller receives no ground-truth or agent answer.
Finally: the protocol is now stated precisely and map quality is measured directly against each property listed, with both going into the camera-ready alongside stated criteria for Figure 4 and the corrected prompt listing. If these close the gaps, we would be grateful if the reviewer would consider revisiting their rating.