Self-Compacting Language Model Agents
Tianjian Li, Jingyu Zhang, Xi Wang, William Jurayj, Chuanyang Jin, Mehrdad Farajtabar, Eric Nalisnick, Daniel Khashabi
Abstract. Long-form reasoning and tool calling traces accumulate errors and stale content that anchor subsequent generations, a phenomenon known as \emph{context rot}. Existing scaffolds mitigate this with \textit{fixed-interval} compaction triggered at a token threshold, but such triggers are blind to trajectory structure and risk discarding partial results mid-derivation or mid-search. We propose SelfCompact, which pairs two inference-time elements: an inline \emph{compaction tool} the model invokes itself, and a lightweight \emph{rubric} specifying when to fire (a sub-task has resolved, or the trajectory is converging) and when to suppress (mid-derivation, or when stuck). Both are needed. The tool alone is unevenly used across open-weight models, often invoked at unhelpful moments or not at all; the rubric alone cannot act. Together, they elicit effective adaptive compaction without any fine-tuning. On competition math (IMO-Answerbench, HMMT Nov 25 / Feb 26) with four Qwen3 / Qwen3.5 models and agentic search (BrowseComp, BrowseComp-Plus) with three deployed agents, \method{} matches or exceeds fixed-interval summarization at a fraction of the token cost, improving over a no-summarization baseline by up to 16.7 points on math and 5--9 points on agentic search at 30--70% lower per-question cost. The result reframes \emph{when to compact} as a meta-cognitive capability that scaffolds, not weights, can supply.
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:42 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes Slef-Compact, a training-free context-management scaffold for long-horizon coding agents. Instead of compacting at fixed token or step thresholds, the method periodically probes the model with a rubric and triggers summarization only when the trajectory appears to be at a semantically appropriate boundary, such as after a subgoal has been completed or when the agent is converging. The paper evaluates the method on competition math and agentic search benchmarks, reporting improvements over no compaction and fixed-interval summarization, along with reduced cost in the search setting.
The reviewers broadly agree that the paper is clearly written, technically solid, and motivated by an important practical problem. The main strengths are the simplicity of the scaffold, the fact that it requires no training or external verifier, the reasonably broad evaluation across six benchmarks and seven models, and the practical cost analysis based on KV-cache reuse. The reported gains are meaningful: the method improves over no compaction by up to 18 points on math tasks and by 5-9 points on agentic search, while reducing search-agent cost by roughly 30-70%. These results suggest that better compaction timing can improve both accuracy and efficiency, which is relevant for production long-horizon agents.
The main concerns are about originality and generality. The core contribution is relatively simple: a hand-written rubric gates an existing summarization operation. This is useful, but the algorithmic novelty is incremental, and the paper should be careful not to overstate the autonomy of the model, since the scaffold still probes at fixed intervals and uses several hard-coded thresholds. In addition, the rubric design appears task-specific, with separate criteria for math and search. The paper would be stronger if the authors clarified whether there is a task-agnostic rubric template, showed transfer to another domain, or scoped the contribution more explicitly as a domain specific.
A second important concern is the error lock-in failure mode. If the model reaches an incorrect but plausible intermediate conclusion, Self-Compact may summarize and preserve that error, making later recovery harder. This concern is especially relevant because the paper is motivated by better timing of compaction. The authors should quantify regressions relative to fixed-interval summarization and no compaction, and should discuss this failure mode more.
There are also some evaluation and accounting issues that should be clarified. The experiments are limited to open-weight or externally accessible models, so the broader claim about a scaffold-supplied cognitive capability would benefit from either a small-scale frontier-model check or narrower framing. The cost accounting should also be made more clear, particularly the assumptions around cached vs uncached prompt tokens and whether cache misses could affect the reported savings. Finally, the authors should clarify the relationship to closely related context-engineering baselines and explain whether those comparisons are applicable.
For the author response, I would especially like the authors to address: (1) the frequency and severity of error lock-in / correct-to-wrong regressions (2) whether the rubric design transfers beyond the two evaluated domains (3) the cost-accounting assumptions and (4) the relationship to relevant context-engineering baselines. A quantitative analysis showing that lock-in regressions are rare, together with a clear cost-accounting explanation, would significantly increase my confidence in acceptance. And if error lock-in is common or the cost savings rely on overly favorable cache assumptions, my assessment would move toward rejection.
Overall, I find the paper practically motivated and well executed, with clear empirical value, but somewhat limited novelty and unresolved questions about generality and failure modes. My current recommendation is accept, conditioned the author response on the issues above.
Read meta-review
Meta-review
This paper proposes Slef-Compact, a training-free context-management scaffold for long-horizon coding agents. Instead of compacting at fixed token or step thresholds, the method periodically probes the model with a rubric and triggers summarization only when the trajectory appears to be at a semantically appropriate boundary, such as after a subgoal has been completed or when the agent is converging. The paper evaluates the method on competition math and agentic search benchmarks, reporting improvements over no compaction and fixed-interval summarization, along with reduced cost in the search setting.
The reviewers broadly agree that the paper is clearly written, technically solid, and motivated by an important practical problem. The main strengths are the simplicity of the scaffold, the fact that it requires no training or external verifier, the reasonably broad evaluation across six benchmarks and seven models, and the practical cost analysis based on KV-cache reuse. The reported gains are meaningful: the method improves over no compaction by up to 18 points on math tasks and by 5-9 points on agentic search, while reducing search-agent cost by roughly 30-70%. These results suggest that better compaction timing can improve both accuracy and efficiency, which is relevant for production long-horizon agents.
The main concerns are about originality and generality. The core contribution is relatively simple: a hand-written rubric gates an existing summarization operation. This is useful, but the algorithmic novelty is incremental, and the paper should be careful not to overstate the autonomy of the model, since the scaffold still probes at fixed intervals and uses several hard-coded thresholds. In addition, the rubric design appears task-specific, with separate criteria for math and search. The paper would be stronger if the authors clarified whether there is a task-agnostic rubric template, showed transfer to another domain, or scoped the contribution more explicitly as a domain specific.
A second important concern is the error lock-in failure mode. If the model reaches an incorrect but plausible intermediate conclusion, Self-Compact may summarize and preserve that error, making later recovery harder. This concern is especially relevant because the paper is motivated by better timing of compaction. The authors should quantify regressions relative to fixed-interval summarization and no compaction, and should discuss this failure mode more.
There are also some evaluation and accounting issues that should be clarified. The experiments are limited to open-weight or externally accessible models, so the broader claim about a scaffold-supplied cognitive capability would benefit from either a small-scale frontier-model check or narrower framing. The cost accounting should also be made more clear, particularly the assumptions around cached vs uncached prompt tokens and whether cache misses could affect the reported savings. Finally, the authors should clarify the relationship to closely related context-engineering baselines and explain whether those comparisons are applicable.
For the author response, I would especially like the authors to address: (1) the frequency and severity of error lock-in / correct-to-wrong regressions (2) whether the rubric design transfers beyond the two evaluated domains (3) the cost-accounting assumptions and (4) the relationship to relevant context-engineering baselines. A quantitative analysis showing that lock-in regressions are rare, together with a clear cost-accounting explanation, would significantly increase my confidence in acceptance. And if error lock-in is common or the cost savings rely on overly favorable cache assumptions, my assessment would move toward rejection.
Overall, I find the paper practically motivated and well executed, with clear empirical value, but somewhat limited novelty and unresolved questions about generality and failure modes. My current recommendation is accept, conditioned the author response on the issues above.
1 comment
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces SELFCOMPACT, a training-free scaffolding method for long-context language model agents. Rather than compressing context at regular token intervals, the scaffold periodically prompts the LM itself to evaluate, using a predefined rubric, whether the current trajectory is at an appropriate point for compression. When the rubric indicates the COMPRESS signal, the model summarizes the accumulated trajectory and continues from that summary. The method is evaluated on: (1) Mathematical reasoning benchmarks: IMO-Answerbench, HMMT Nov 2025, and HMMT Feb 2026, using Qwen-family models. (2) Agentic search tasks: BrowseComp, BrowseComp-Plus, and DeepSearchQA, with GLM-4.7-Flash, MiniMax-M2.5, and MiMo-V2-Flash. The central empirical finding is that adaptive, rubric-based compaction outperforms both no compaction and, in most cases, fixed-interval summarization, while also reducing token usage for search agents
Strengths and weaknesses
Strengths
Quality & Originality
-
The method is appealing because it requires no fine-tuning, no external verifier, and no special model architecture. It is largely a prompting/scaffolding intervention.
-
The empirical breadth is good. The paper evaluates across six benchmarks and seven models, spanning mathematical reasoning and agentic search.
Significance
- The high cost of long-context inference (prefill and attention overhead) and the negative anchoring effect of redundant information on subsequent generation are among the most critical pain points for deploying agents in practice. The proposed method not only achieves notable accuracy improvements (up to +18.1 points on mathematical tasks and +5–9 points on search tasks), but more importantly reduces API cost per problem by 30%–70%. Such a scheme that simultaneously improves accuracy and substantially reduces cost holds high practical value for both industry and academia.
Clarity
- The paper is well-written.
Weakness
- “Model decides when to compact” may be overstated
In the actual algorithm, the scaffold probes at fixed intervals and asks the model for a binary verdict. In agentic search, there are additional hard gates: iteration ≥ 3, prompt length ≥ 40,000, summary cap, probe period, and a 30%-context backstop. Thus the system is not purely autonomous model self-compaction.
- Lack of comparison with relevant baselines
ACE (Agentic Context Engineering) [1] also addresses the problem of context rot in agent tasks. It integrates three modules (generation, reflection, and synthesis) and claims to mitigate context rot in an offline (i.e., non-training) setting. Comparing with such relevant baselines would be meaningful.
- Cost accounting has some inconsistencies
The paper provides multiple cost formulas: one with , , and , and later a simplified formula using and . Appendix C states that all prompt tokens are charged at the cache rate, which may understate cost if cache misses or uncached prefill matter. Table 7 also says is held fixed at SELFCOMPACT’s value.
Reference
[1] AGENTIC CONTEXT ENGINEERING: EVOLVING CONTEXTS FOR SELF-IMPROVING LANGUAGE MODELS. ICLR 2026.
- “Typos in the citation ” The citation “Iterresearch: Rethinking long-horizon agents via markovian state reconstruction” (might be the paper name of a stale version) should be modified to “IterResearch: Rethinking Long-Horizon Agents with Interaction Scaling", as shown in the corresponding link https://openreview.net/forum?id=qQ5MZ5Mx7p.
Questions
Q1: How to mitigate the ``hallucination lock-in'' of erroneous facts?
Appendix Case C clearly demonstrates that when the model hallucinates or reaches an incorrect intermediate conclusion, SELFCOMPACT permanently crystallizes the misinformation and discards the context that could have been used for recovery. The current rubric is entirely content-agnostic and structure-based. Could the authors propose a simple intervention, for example, introducing a lightweight candidate-aware verifier (as mentioned in the discussion) before triggering COMPRESS, allowing the model to perform self-refutation or cross-validation?
Q2: What is the necessity of each of the four rubric conditions (C1, C2, C3, N1)?
The scaffold’s performance heavily relies on the four hard-coded rules: C1 (closed loop), C2 (summarizable), C3 (progress), and N1 (not stuck in a dead end). However, the paper lacks an ablation analysis of these four conditions. Are all of them necessary?
Q3: Do frontier closed-source models still exhibit the ``metacognitive gap''?
A central argument of the paper is that models themselves cannot reliably identify compaction timing and require rubric assistance. The authors evaluated seven open-source models but acknowledge that frontier systems (e.g., GPT-level models) might not need such support. We strongly suggest providing at least some preliminary evidence on one mainstream closed-source frontier model to address this question.
Limitations
yes
Final justification
After considering the authors’ rebuttal, I maintain my original recommendation of borderline accept.
- Resolved or partially resolved issues:
-
The authors adequately addressed my concern that “model decides when to compact” may be overstated. They agreed to reframe the method as rubric-gated adaptive compaction rather than fully autonomous self-compaction, and to make the hard gates explicit. This resolves my concern about presentation and framing.
-
The cost-accounting clarification is helpful. The additional two-rate accounting and the uncached-rate robustness check suggest that the reported cost savings are not merely an artifact of assuming cached pricing. While the original presentation was somewhat confusing, the rebuttal substantially clarifies this point.
-
The authors’ response to the hallucination lock-in issue is reasonable. They acknowledge the limitation and propose a concrete future extension involving an additional verification/refutation gate before compression. Since this is not evaluated, it remains a limitation, but the response is thoughtful.
-
The new evidence on a frontier closed-source model is useful. The TerminalBench result with Claude Opus suggests that the metacognitive gap may still exist for frontier models, and that rubric-based compaction can help beyond the open-source models evaluated in the main paper.
- Remaining issues:
- The rubric ablation remains incomplete. The logged blocking statistics are informative and show that all four conditions are active, but they do not establish the causal necessity of each condition for final task performance. A true ablation would still be useful.
The rebuttal resolves several presentation and cost-accounting concerns and provides helpful additional evidence. The method remains simple, practically relevant, and empirically strong across multiple benchmarks and models. However, some limitations remain, especially the absence of causal ablations of the rubric components. Therefore, I maintain my original score: the paper is technically solid and practically useful, but not without unresolved evaluation gaps.
Formatting concerns
N/A
3 comments
Rebuttal
We thank the reviewer for recognizing the practical significance of simultaneous accuracy and cost gains, and for the close reading of our cost accounting.
"Model decides when to compact" may be overstated.
"In the actual algorithm, the scaffold probes at fixed intervals and asks the model for a binary verdict. In agentic search, there are additional hard gates ... Thus the system is not purely autonomous model self-compaction."
We accept this and will reframe accordingly. In our revision the method is described as rubric-gated adaptive compaction rather than autonomous self-compaction in the abstract and Section 1 (Algorithm 1 and Section 7 already use the former phrasing), and all hard gates are tabulated in Section 3.
We would note that Figure 2 bears on how much work the gates do: rubric-fired compactions skew well below the 30% backstop across all three models, so in the large majority of trajectories the rubric rather than the backstop determines timing.
Comparison with ACE.
"ACE (Agentic Context Engineering) also addresses the problem of context rot in agent tasks ... Comparing with such relevant baselines would be meaningful."
ACE performs cross-episode playbook evolution, which is a different context store and a different failure mode from within-episode compaction, so it is complementary rather than substitutable. We also note that Table 4 already includes two additional training-free context-management baselines, delete-all and keep-last-N, both of which SelfCompact outperforms in every cell. We will add the ACE discussion to Related Work.
Cost accounting.
"Appendix C states that all prompt tokens are charged at the cache rate, which may understate cost if cache misses or uncached prefill matter."
We provide the two-rate accounting here, separating first-time prefill (billed at the uncached rate) from cache reads (billed at the cached rate). Averaged over the three benchmarks, per question:
| Model | Method | N_prompt | N_prefill | N_cached | N_out | Cost |
|---|---|---|---|---|---|---|
| GLM-4.7-Flash | No compaction | 12.6M | 0.63M | 12.0M | 8.9k | $0.17 |
| Fixed-interval | 4.6M | 0.37M | 4.2M | 9.0k | $0.07 | |
| SelfCompact | 6.6M | 0.53M | 6.1M | 9.0k | $0.10 | |
| MiniMax-M2.5 | No compaction | 5.7M | 0.29M | 5.4M | 16.6k | $0.27 |
| Fixed-interval | 1.2M | 0.10M | 1.1M | 16.9k | $0.09 | |
| SelfCompact | 2.0M | 0.16M | 1.8M | 17.4k | $0.12 | |
| MiMo-V2-Flash | No compaction | 25.1M | 1.26M | 23.9M | 6.8k | $0.37 |
| Fixed-interval | 13.8M | 1.10M | 12.7M | 7.0k | $0.24 | |
| SelfCompact | 13.1M | 1.05M | 12.1M | 7.2k | $0.23 |
The key quantity is the prefill share: first-time prefill is 5% of prompt tokens under no compaction and 8% under either compaction policy, so the single-rate approximation understates cost by a bounded amount. Averaged over the three benchmarks, per-question savings against no compaction are 38% (GLM-4.7-Flash), 54% (MiniMax-M2.5), and 38% (MiMo-V2-Flash), against 46%, 58%, and 48% under the single-rate approximation. Absolute costs rise, the comparisons do not change, and we will include the per-benchmark version as an appendix table in our revision.
Beyond that, charging every prompt token at the uncached rate, an extreme in which caching never hits, still yields these per-question reductions against no compaction:
| Model | BrowseComp-Plus | BrowseComp | DeepSearchQA |
|---|---|---|---|
| GLM-4.7-Flash | 69% | 29% | 47% |
| MiniMax-M2.5 | 69% | 59% | 64% |
| MiMo-V2-Flash | 34% | 60% | 48% |
This is the same 30-70% band reported in the abstract. The savings are structural rather than an artifact of the billing convention, because SelfCompact's cumulative prompt tokens are lower than the baseline's in every cell.
On whether the cached rate is the right default rather than a favorable choice: prefix caching is standard practice in this setting, and the scaffold we build on (Lee et al., 2026, arXiv:2604.11753) makes the same assumption that past turns are served from cache. We therefore report the cached-rate figure as the headline and treat the two accountings above as robustness checks rather than as corrections to it.
Mitigating hallucination lock-in.
"Could the authors propose a simple intervention, for example, introducing a lightweight candidate-aware verifier ... before triggering COMPRESS, allowing the model to perform self-refutation or cross-validation?"
We think this is the right direction and we can be concrete about where it plugs in. The search rubric already contains a partial grounding guard: C2 requires every retained fact to carry a verbatim citation from the trajectory, so a summary cannot preserve an unevidenced claim. The residual failure the reviewer identifies is a wrong but evidenced candidate, which passes all four structural gates. The natural extension is a fifth gate, evaluated only when a pending summary asserts a concrete candidate answer, that requires one disconfirming check before COMPRESS is permitted and otherwise defers compaction to the next probe. This is a strict addition to the fire rule and costs one extra probe on the subset of checkpoints where a candidate exists. We will present it as the primary future direction in the revised limitations rather than claim it as a result, since we have not evaluated it.
Necessity of C1, C2, C3, N1.
"The scaffold's performance heavily relies on the four hard-coded rules ... However, the paper lacks an ablation analysis of these four conditions. Are all of them necessary?"
Because every probe logs all four verdicts with their evidence, we can report which gate is binding without additional runs. Across logged probes on BrowseComp-Plus, the distribution of the blocking condition on CONTINUE verdicts is C1 44.3%, C2 48.4%, C3 61.9%, N1 83.7%, with 74.0% blocked by more than one. Every gate blocks a non-trivial share of probes, so none is inert. N1 binds most often, consistent with its role in suppressing compaction while the agent is still exploring, and C1 least often, though still on more than four probes in ten.
Frontier metacognitive gap.
"A central argument of the paper is that models themselves cannot reliably identify compaction timing and require rubric assistance ... We strongly suggest providing at least some preliminary evidence on one mainstream closed-source frontier model."
We evaluated on TerminalBench 2.0, a coding-agent benchmark unrelated to either domain in the submission:
| Model | No compaction | Fixed-interval | SelfCompact |
|---|---|---|---|
| Claude Opus 4.8 | 79.6 | 75.3 | 82.9 |
| Qwen3.6-35B-A3B | 53.1 | 51.7 | 55.4 |
Claude Opus 4.8 improves from 79.6 to 82.9 with SelfCompact, and degrades to 75.3 under fixed-interval compaction. More directly on the question: when the summarization tool is exposed without a rubric, Opus never invokes it. The gap the paper describes is present at the frontier, and in this domain a frontier model compacting on a fixed schedule is worse off than one that does not compact at all.
IterResearch citation. We will correct to "IterResearch: Rethinking Long-Horizon Agents with Interaction Scaling". Thank you for catching this.
Dear Reviewer,
Thank you again for your thoughtful review. As the discussion period nears its end, we wanted to check whether our responses addressed your concerns. We are happy to clarify anything further or run additional experiments if questions remain.
Best, Authors
Response to Authors
Thanks for your effort in clarifying my concerns. These new results are helpful. I'll maintain my scores.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
To overcome context rot, the authors propose SELFCOMPACT, a training-free scaffold that empowers the language model to autonomously decide when and how to compress its context. Two key inference-time elements are used: a compaction tool that the model can invoke to summarize its accumulated history, and a lightweight rubric that dictates when to trigger the summary (e.g., when a sub-task is resolved) and when to suppress it (e.g., mid-derivation).
Due to the reuse of KV-cache, the proposed method is supposed to work cheaply. Empirical testing shows significant improvements over traditional fixed-interval summarization.
Strengths and weaknesses
Strengths
- Using rubrics to decide when to trigger compaction is an elegant idea: KV-cache can be reused and one can avoid partial compaction at mid of reasoning/tool use.
- The recipe is training-free that requires no fine-tuning, parameter updates, or external supervision to work.
Weaknesses
- The mechanism is not entirely "plug and play" across all domains out of the box; it requires task-specific rubrics.
- The authors only evaluated open-weight models. They note that frontier proprietary models (like GPT-5.5 or Claude Opus 4.*) may possess stronger intrinsic metacognition and might not need an explicit rubric to successfully manage their own context rot.
Questions
-
It seems not difficult and resource costly to apply the work to frontier labs' models including GPT and Claude. Why not running on top of that?
-
Is it possible to develop a task-agnostic rubrics and summarizer?
-
Section 2 is redundant with introudction and is put right after it. Is it necessary to put it there?
Limitations
Yes
Final justification
I like the idea, and the proposed approach seems solid.
I did not identify any significant issues with the paper, so I recommend Accept.
Formatting concerns
NA
3 comments
Rebuttal
We thank the reviewer for the positive assessment and for describing rubric-gated triggering as an elegant idea, and hope to address concerns below:
Why not run on frontier models?
"It seems not difficult and resource costly to apply the work to frontier labs' models including GPT and Claude. Why not running on top of that?"
Running frontier models is costly at the scale of this study, and we would rather show the numbers than assert it. The table below covers a single pass over one benchmark, TerminalBench 2.0, with Opus 4.8 under three scenarios:
| Scenario | Input tokens (cumulative) | Output tokens | Cost, no cache | Cost, w/ prefix cache |
|---|---|---|---|---|
| No compaction | 82M | 1.49M | $446.54 | $90.73 |
| Fixed interval compaction @ 60K | 57M | 1.8M | $330.00 | $87.40 |
| SelfCompact | 64M | 1.79M | $365.66 | $91.05 |
Fixed-interval is the cheapest of the three and the least accurate. SelfCompact buys 7.6 points over it at approximately the cost of no compaction.
That is one benchmark and three scenarios. The submitted study on agentic search alone comprises three models, three benchmarks, five context-management policies, and five runs per cell, which is more than two hundred passes of comparable scale, before the rubric ablation and before the design iteration that preceded the final configuration. At these rates that is a five-figure sum under the most favorable billing assumption and a six-figure one otherwise, which is why we scoped the original study to models we could serve ourselves.
We have nonetheless run the experiments the reviewer asks for, at the reduced scale our budget allows: terminalbench 2.0, three context-management policies, one frontier model, and one open-weight model alongside it for comparison.
| Model | No compaction | Fixed-interval @ 60K | SelfCompact |
|---|---|---|---|
| Claude Opus 4.8 | 79.6 | 75.3 | 82.9 |
| Qwen3.6-35B-A3B | 53.1 | 51.7 | 55.4 |
Task-agnostic rubric and summarizer.
"Is it possible to develop a task-agnostic rubrics and summarizer?"
Partially, and the new results let us be specific about which part is portable. The gate set (C1 closed unit, C2 summarizable, C3 progress, N1 stuck) and the fire rule carried over to a coding-agent benchmark unchanged, with no gate added, removed, or recombined; only the wording of each gate's definition was instantiated for the new domain. So the structure is task-agnostic and the instantiation is not, which we will state as such rather than claiming full task-agnosticism.
Section 2 redundancy.
"Section 2 is redundant with introudction and is put right after it. Is it necessary to put it there?"
We fully agree and we will merge Section 2 into Section 1 and Related Work, which also frees space for the lock-in analysis and the third-domain results.
Dear Reviewer,
Thank you again for your thoughtful review. As the discussion period nears its end, we wanted to check whether our responses addressed your concerns. We are happy to clarify anything further or run additional experiments if questions remain.
Best, Authors
Thanks for adding the Claude Opus experiment. Good to see there is still some quality improvement there.
- Rating
- 3/6
- Confidence
- 3/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
The paper proposes SELFCOMPACT, a training-free scaffold that decides when to compact an LM agent's rolling context. Rather than firing summarization at a fixed token threshold, it pairs an inline summarization tool (invoked by the model itself) with a lightweight rubric that returns a COMPRESS/CONTINUE verdict at periodic probe intervals based on trajectory structure — e.g., whether a sub-task has resolved or the trajectory is converging — instead of token count. Both the rubric judge and the summarizer are the same underlying model, so no fine-tuning or external verifier is needed. The method is evaluated on competition math (4 Qwen models across 3 benchmarks) and agentic search (3 deployed agents across 3 benchmarks), with a cost analysis built on KV-cache reuse, plus ablations, an oracle headroom analysis, and qualitative trajectory cases.
Strengths and weaknesses
This is a clean, well-engineered paper on a genuinely practical problem. The motivating observation lands: fixed-interval compaction is content-agnostic and can wipe verified facts mid-derivation, and Figure 1 makes the failure concrete. The part I found most valuable is the cost analysis built on KV-cache reuse — it explains why adding a rubric probe per checkpoint is nearly free, and why per-question cost actually drops 30–70% on agentic search despite the extra calls. The experimental design is fair too: token budgets are matched between fixed-interval and SELFCOMPACT within ±3k, so the gains aren't bought with more compute. The ablation (tool-only vs tool+rubric) is the central evidence for the contribution, and the oracle headroom analysis (52.9% vs 45.5%) is a refreshingly honest way to show how far adaptive timing still has to go.
Originality is the main concern. The contribution narrows to "gate a summarization tool with a hand-written rubric on trajectory structure." The authors note LangChain shipped a summary tool concurrently, and the delta is the rubric. The rubric is also task-specific — math and search get different gate sets hand-designed per domain — and cross-task generalization is never tested, so it's hard to tell whether the approach scales or whether each new task needs a fresh rubric.
The more substantive weakness is a failure mode the paper surfaces but doesn't fully own. Case C shows the rubric firing COMPRESS on a wrong-but-plausible candidate: the structural gates all pass, the summary locks in the wrong identity, and every subsequent search runs from a prefix asserting it. This is arguably worse than the no-compaction baseline because it forecloses the recovery path. Yet this lock-in failure isn't mentioned in §6 Limitations — it only shows up in Appendix E. For a method pitched on "better timing," a timing error more damaging than the baseline's is exactly the case to discuss up front.
Finally, evaluation is open-weight only. The authors speculate frontier models may have enough metacognition to skip the rubric, but don't test it, so the central reframing ("when-to-compact as a scaffold-supplied metacognitive capability") rests on the models that may be precisely the ones lacking it.
Questions
-
Case C shows the rubric firing on a wrong candidate and locking it in via the summary. Across the BrowseComp-Plus test set, can the authors report how often SELFCOMPACT turns a baseline-correct answer wrong (correct→wrong regressions on the lock-in path) versus how often fixed-interval does? If SELFCOMPACT is more damaging than fixed-interval on these regressions, my Rating would drop further; if the rate is negligible, it would ease my main concern.
-
The rubric is hand-designed per task (math gates vs search gates). Is there a unified template, or evidence that the gate design transfers to a third task without re-engineering? A positive answer would raise my Originality and Significance scores.
-
The ablation is tool-only vs tool+rubric. Could the authors decompose further — e.g., rubric-gated timing paired with a constant/random summary, to isolate how much gain comes from timing vs summarization quality? This bears directly on the Quality assessment.
-
Even a small-scale check on whether a frontier model still benefits from the rubric would address the concern that the method solves a problem only weaker models have; it would clarify the Significance ceiling.
-
The weak oracle (skip-if-correct) reaches 52.9% while SELFCOMPACT sits at 45.5%. How do the authors attribute this ~7.4-point gap — to the rubric judging wrongly, or to the fire rule being too conservative? This would clarify whether the ceiling lies in the judgment or the policy.
Limitations
Partially. The authors are upfront about the open-weight-only scope and the training-free framing, and they flag RL as a natural extension. However, the error-lock-in failure mode from Case C — where a wrong candidate gets preserved by the summary and forecloses recovery — is not surfaced in §6; it appears only in Appendix E. For a "better timing" method this is exactly the negative result to own in the main limitations. I'd also like the task-specific rubric design flagged as a generalization limitation rather than just an engineering detail.
Final justification
I have read the rebuttal and maintain my Borderline Reject rating.
The added regression, TerminalBench, frontier-model, and cost analyses address several empirical concerns and strengthen the paper’s practical case. However, my central concern remains unchanged: the method is a rubric that gates an existing summarization operation, triggered by model itself instead of human. It lacks real novelty. The third-domain result is encouraging, but still requires domain-specific rubric instantiation, and the rebuttal does not causally ablate the individual gates. Thus, while useful in practice, the contribution’s novelty and evidence for generality remain limited.
Formatting concerns
No.
2 comments
Rebuttal
We thank the reviewer for a thorough and careful reading, including the observations that matched token budgets make the comparison fair and that the oracle analysis is "refreshingly honest." We hope the new results address the two concerns the reviewer tied their assessment to.
Correct-to-wrong regressions.
"can the authors report how often SelfCompact turns a baseline-correct answer wrong (correct→wrong regressions on the lock-in path) versus how often fixed-interval does? If SelfCompact is more damaging than fixed-interval on these regressions, my Rating would drop further; if the rate is negligible, it would ease my main concern."
We measured answer flips on matched question pairs across all three search agents, pooled over BrowseComp-Plus questions.
| Comparison | correct→wrong | wrong→correct | net |
|---|---|---|---|
| SelfCompact vs. no compaction | 9.3% | 15.2% | +5.9 |
| Fixed-interval vs. no compaction | 10.2% | 13.2% | +3.0 |
| SelfCompact vs. fixed-interval | 9.9% | 12.5% | +2.6 |
SelfCompact is not more damaging than fixed-interval on these regressions. Against the no-compaction baseline it turns 9.3% of questions from correct to wrong, against 10.2% for fixed-interval, while repairing 15.2% against fixed-interval's 13.2%. It is therefore better on both axes at once, and compared head-to-head against fixed-interval it is net positive by 2.6 points. On the lock-in path specifically, we annotated the 150 BrowseComp-Plus questions run with MiniMax-M2.5, using Claude Opus 4.8 to judge whether a summary asserts the eventual wrong answer. Of SelfCompact's 17 correct-to-wrong regressions on that set, 4 carry the Case C signature, against 12 of fixed-interval's 22.
Unified template and transfer to a third task.
"The rubric is hand-designed per task (math gates vs search gates). Is there a unified template, or evidence that the gate design transfers to a third task without re-engineering? A positive answer would raise my Originality and Significance scores."
We evaluated on TerminalBench 2.0, a coding-agent benchmark unrelated to either domain in the submission.
| Model | No compaction | Fixed-interval | SelfCompact |
|---|---|---|---|
| Claude Opus 4.8 | 79.6 | 75.3 (compact every 60k tokens) | 82.9 |
| Qwen3.6-35B-A3B | 53.1 | 51.7 (compact every 60k tokens) | 55.4 |
SelfCompact improves over no compaction by 3.3 points on Claude Opus 4.8 and 2.3 on Qwen3.6-35B-A3B. There is a unified template, and TerminalBench is the evidence for it. The rubric has two layers. The outer layer is four gates and a fire rule, which carry no domain-specific vocabulary and which we reused verbatim:
(C1) the trajectory has reached a closed unit (not mid-thought), (C2) the essential information is reducible to 3-5 cite-able facts without loss, (C3) something has progressed since the last compression, (N1) you are NOT currently stuck in a way summarization would mask. Fire rule: COMPRESS iff C1 = Y and C2 = Y and C3 = Y and N1 = N.
The inner layer operationalizes each gate for the domain, and that is the only part we revised. For example, N1 in the search rubric reads "at least 3 of your last 4 search queries returned no new URL or fact"; for coding the same gate names the corresponding coding-agent actions.
No gate was added, removed, or recombined, and the fire rule is unchanged. We would therefore characterize the contribution precisely: the gate set and fire rule are task-agnostic, their operationalization is instantiated per domain. This is a weaker claim than literal prompt reuse and a stronger one than a fresh rubric per task, and we will state it in exactly these terms in the revision rather than leaving rubric design to read as an engineering detail. We omit the full prompts here for space, will include both in the appendix, and are glad to provide them during the discussion period if that would be useful.
We wanted to highlight that our fixed-interval baselines in the original two domains are deliberately strong baselines: for competition math we follow the ReasoningCache setup of Wu et al. (2026, arXiv:2602.03773), and for agentic search we adopt the 30%-of-context threshold of Liu et al. (2025, arXiv:2509.06501), each already established for its domain in prior work and fixed-interval compaction duly helped in both settings, which is what a well-chosen threshold should do. TerminalBench has no comparable established threshold, so we selected 60k to be the threshold (30% of 200K max context), and this reasonable choice underperformed doing nothing on both models.
Timing against summarization quality.
"Could the authors decompose further — e.g., rubric-gated timing paired with a constant/random summary, to isolate how much gain comes from timing vs summarization quality?"
The summarizer is already held constant across every arm: fixed-interval, self-ask, and SelfCompact all use the identical summarization prompt (the preserve-answer prompt in Appendix A for math, the unmodified webresummer prompt of Wu et al. for search). Tables 5 and 6 are therefore already a three-way comparison in which only the timing policy varies: on search with GLM-4.7-Flash, 41.5 (fixed timing) against 41.0 (model-chosen timing) against 46.4 (rubric-gated); on math with Qwen3-4B, 41.4 against 40.9 against 45.5. Summary quality is constant by construction, the entire gain over fixed-interval is attributable to timing. The TerminalBench result in Section 2 above makes the same point from the other direction: identical summarizer, different timing, and the difference between the two policies is the difference between helping and harming.
Frontier check.
"Even a small-scale check on whether a frontier model still benefits from the rubric would address the concern that the method solves a problem only weaker models have"
Claude Opus 4.8 gains 3.3 points, which is 16.2% of its remaining error against 4.9% for the open-weight model in the same setting, and Opus never invokes the summarization tool when the tool is merely made available. The problem is not confined to weaker models.
Attribution of the oracle gap.
"The weak oracle (skip-if-correct) reaches 52.9% while SelfCompact sits at 45.5%. How do the authors attribute this ~7.4-point gap — to the rubric judging wrongly, or to the fire rule being too conservative?"
We think this question rests on a premise the submission did not make explicit, and we are grateful to the reviewer for surfacing it. The skip-if-correct oracle is not a better-executed version of our policy. It conditions on whether the model's current answer is correct, which requires the gold answer: at each interval it skips compaction when the answer is already correct and compacts otherwise. SelfCompact's rubric conditions on trajectory structure, and its Q1 gate detects whether an answer has been stated, not whether it is right. The two policies act on different information, not merely with different accuracy, so the gap does not decompose into judgment error against policy conservatism as the question supposes. We will make this clear in our revision.
Limitations
"the error-lock-in failure mode from Case C ... is not surfaced in §6 ... I'd also like the task-specific rubric design flagged as a generalization limitation"
We accept both. We will move the lock-in failure mode and analysis into Section 6, and rubric task-specificity is flagged as a generalization limitation.
Dear Reviewer,
Thank you again for your thoughtful review. As the discussion period nears its end, we wanted to check whether our responses addressed your concerns. We are happy to clarify anything further or run additional experiments if questions remain.
If your concerns have been resolved, we would be grateful if you would consider updating your assessment. Thank you for your time.
Best, Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Author Response to AC
We thank the reviewers and the AC for their careful and constructive reviews. We are encouraged that reviewers find this "a clean, well-engineered paper on a genuinely practical problem" (
Bduy) with "high practical value for both industry and academia" (3VY3), call rubric-gated triggering "an elegant idea" (KGYW), and that the AC finds the work "practically motivated and well executed, with clear empirical value."Below we aim taddress (1) lock-in and regressions, (2) rubric transfer, (3) cost accounting, (4) context-engineering baselines, and the frontier check requested by all reviewers.
1. SelfCompact regresses less and is less vulnerable to error lock-in
We measured answer flips on matched question pairs across all three search agents, pooled over BrowseComp-Plus questions.
SelfCompact beats fixed-interval on both axes (repair-to-regression ratio 1.63 vs. 1.29) and is net +2.6 head-to-head. We annotate with Opus 4.8 on lock-in when a pre-answer summary already asserts the eventual wrong answer. On the 150 BrowseComp-Plus questions with MiniMax-M2.5, SelfCompact had 17 correct→wrong regressions, 4 with the lock-in; fixed-interval had 22, with 12 lock-in. Lock-in is less prevalent under rubric-gated timing.
2. SelfCompact transfers to a third domain
We report results on TerminalBench 2.0, a coding-agent benchmark unrelated to both submitted domains; fixed-interval compacts every 60k tokens.
SelfCompact improves over no compaction on both models (+3.3, +2.3), so the rubric transfers to a domain it was not designed against. Fixed-interval is worse than not compacting at all (-4.3, -1.4); SelfCompact leads it by 7.6 and 3.7.
The rubric has two layers. The outer layer, reused unchanged from the search rubric, is four gates and a fire rule: (C1) the trajectory has reached a closed unit, not mid-thought; (C2) the essentials reduce to 3-5 cite-able facts without loss; (C3) something has progressed since the last compression; (N1) not currently stuck in a way summarization would mask; COMPRESS iff C1=C2=C3=Y and N1=N. The inner layer defines the domain terms (closed unit, new fact, repeated action) and is all we revised for TerminalBench.
We also want to highlight that our fixed-interval baselines in the paper are deliberately strong: the ReasoningCache setup (Wu et al., 2026, arXiv:2602.03773) for math and the 30%-of-context threshold (Liu et al., 2025, arXiv:2509.06501) for search, and fixed-interval duly helped in both. TerminalBench has no established threshold and the analogous 60k (30% of 200K) underperformed doing nothing.
This also provides the frontier check all reviewers requested: frontier models (Opus 4.8) still benefits from our rubric-gated scaffold.
3. Cost savings do not depend on cache assumptions
The submission billed all prompt tokens at the cached rate. Splitting into first-time prefill (uncached) and cache reads (cached), averaged over the three benchmarks:
Two-rate billing raises absolute costs but preserves every Table 4 comparison: SelfCompact stays 38-54% cheaper than no compaction per question.
Completion tokens are a negligible cost share, so the saving is nearly rate-invariant: even charging every prompt token uncached (caching never hits). This is structural: SelfCompact uses fewer cumulative prompt tokens, so cache misses change dollar figures, not the sign or size of the saving. We will update the full per-benchmark accounting in the appendix and unify the cost-formula notation and state the billing convention in the Table 4 caption.
4. Relation to ACE and other context-engineering baselines
ACE evolves a persistent playbook across episodes, deciding offline what to accumulate for future tasks; SelfCompact decides online when to compress the within-episode trajectory. The two act on different context stores (cross-task memory vs. in-task history) and failure modes (missing reusable knowledge vs. context rot in one long trajectory), so ACE cannot substitute for a compaction policy; they are composable. Table 4 already compares two further training-free policies, delete-all and keep-last-N; SelfCompact outperforms both on every model and benchmark. We will add the ACE discussion to Related Work.
We hope these clarifications and new results address the concerns and we thank the AC again.