A promising behavior-preserving compaction method, but the objective–implementation mismatch and unresolved evaluation evidence require major revision before the main claims are supported.
Soundness
2/4
Presentation
2/4
Contribution
3/4
Confidence
4/5
✓ 10 confirmed✕ 4 discrepancy◐ 1 inconclusive○ 1 not checkable
Summary
RECAP trains an agent to compact its interaction history while preserving the behavior of the same policy conditioned on the uncompressed history. A reverse-KL behavior-distortion objective motivates two auxiliary learning signals: a distortion-based policy-gradient reward for summary tokens and on-policy self-distillation for subsequent action tokens. Both are combined with task-reward GRPO.
Experiments use Qwen3.5-4B on BrowseComp-Plus and SWE-bench Verified. Table 1 reports 62.8 versus 58.2 and 51.1 versus 46.8 accuracy, respectively, for RECAP versus task-only compaction-GRPO at a 32K working context. The reported differences are arithmetically correct, and numerical checks support the formal gradient identities. However, the implemented length-normalized, clipped estimator differs materially from the main-text equations; the BrowseComp gain has substantial evaluation uncertainty; and unresolved evaluation-protocol and reporting inconsistencies prevent treating the headline results as independently established.
Strengths
A useful objective with numerically supported gradient identities
§4.1–4.2, Eq. (8)–(12); Appendix A, Eq. (15)–(19)
The full-history self-teacher gives a concrete target for what a compaction should preserve, rather than rewarding only eventual task success. Exact enumeration in a small shared-parameter model supports the decomposition in Eq. (11)/(15), the continuation-gradient identity in Eq. (16), and the per-token KL identity in Eq. (18): maximum errors were 6.66e-16, 5.55e-16, and 8.88e-16 across 20 instances, below a 1e-12 numerical tolerance (check 09). Appendix A appropriately identifies the implemented self-distillation direction as a surrogate rather than the full continuation gradient. This checks the identities, not their empirical effectiveness or the correspondence of the released estimator to the summed objective.
Evaluation spans two distinct tool-use domains
§5.1–5.2; Table 1
Deep retrieval and software repair provide meaningfully different compaction demands. The reported gains of '4.6%' and '4.3%' are obtained as 62.8−58.2=4.60 and 51.1−46.8=4.30 percentage points, within the 0.05-point arithmetic tolerance (check 01). The SWE gain is also distinguishable from evaluation-run noise under an unpaired Welch calculation, p=0.0033 (check 02), although this does not address training-seed variability. These are encouraging reported results, not reproduced benchmark scores.
Ablations expose the behavior of both auxiliary signals
Table 2 separates summary supervision from continuation supervision, and Figures 3–4 probe context-window transfer and regularizer sensitivity instead of showing only the best configuration. The text's principal directional ablation comparisons match Table 2 (check 08). Vector extraction independently recovers BrowseComp RECAP accuracies 60.67/62.83/60.00 at 16K/32K/64K, consistent with the stated '60–63%' range within 0.3 points (check 06). The negative and sensitive settings are useful evidence, even though their interpretation needs the qualifications below.
Released code permits substantive audits without extra agent rollouts
Frozen selections and training/evaluation scripts make important details inspectable. The split audit found zero BrowseComp train–test ID overlap and no overlap between the 104 selected SWE-smith training repositories and the 12 SWE-bench Verified repositories (check 12). Inspection of the teacher path confirms that scoring reuses the realized continuation without additional environment calls (check 15). This supports the narrow no-extra-rollouts claim, not equal training cost or freedom from all forms of contamination.
Weaknesses
The trained estimator does not implement the main-text distortion objective
major · §4.1–4.3, Eq. (8)–(14); Appendix B, Figure 5; inputs/code/verl/trainer/ppo/recap.py::compute_recap_advantages
Eq. (8) defines summed token distortion and Eq. (12)–(14) assign unnormalized log-ratio advantages. Executing the released advantage functions instead gives a leave-one-out-centered mean distortion for summaries and clip(log(q/p), ±5)/N for continuation tokens. With continuation lengths 3/6/9/12, summary advantages are −0.3532/−0.2799/0.2210/0.4120 rather than −4.8154/−3.6304/1.8431/6.6027 from the summed formula; a token with log-ratio 8.99 receives 0.4167 instead of 8.99 (check 10). These differences exceed rounding and are structural, not tolerance choices. The normalization is visible in Figure 5, but is not reconciled with the objective and gradient interpretation; clipping is documented in the README, not the paper. Length-dependent normalization changes both what summaries are rewarded for and the relative auxiliary weight, so the experiment does not directly test the estimator presented in the main equations. State the actual objective/surrogate, normalization, clipping and token-loss reduction together, and compare normalized versus summed variants. The synthetic scale comparison alone does not establish that the continuation signal is ineffective in actual training.
The strength and repeatability of the headline gain are overstated
major · Abstract; §5.1–5.3; Tables 1–2
The paper's 'consistently outperforms' language is stronger than the supplied uncertainty supports. For BrowseComp, Table 1 gives 62.8±3.9 versus 58.2±1.5 over four evaluation runs. An unpaired Welch analysis of those rounded summaries yields a 4.6-point difference, p=0.0948 and 95% CI [−1.3, 10.5], not distinguishable from zero at α=0.05 (check 02). This does not prove there is no gain: pairing cannot be recovered from aggregate statistics. SWE's 51.1±1.0 versus 46.8±1.4 is more convincing against evaluation noise (p=0.0033; CI [2.1, 6.5]), but neither domain supplies training-seed uncertainty. Likewise, the SWE continuation-only gain is just 47.1−46.8=0.3 points, insufficient on its own to establish a repeatable contribution. Release paired task/run outcomes, report task-clustered uncertainty and multiple training seeds, and qualify claims of consistent improvement and signal complementarity until those analyses are available.
Validation independence and checkpoint selection are not auditable
major · §5.1, §5.5; Appendix C, Table 3; inputs/code/scripts/browsecomp_plus/train/train.sh; data-preparation and frozen-selection scripts
The released BrowseComp training configuration evaluates the same 150-question test file before training and every 20 steps, while retaining the last two checkpoints (check 11). This is not proof of training-data leakage or test-based model selection, but the missing checkpoint-selection rule leaves the held-out interpretation unresolved. The 100-problem sets used to choose λ are not released or reconstructible from the provided materials (check 12). Table 3's SWE choice is decided by 44.0 versus 43.0 validation accuracy, equivalent to one question if evaluated once; the arithmetic does not establish the actual number of validation runs. Two other λ settings score 46.3 and 46.5 on test, below GRPO's 46.8 (check 04). Release validation IDs, sampling/seeding and evaluation counts, identify the exact checkpoint-selection rule, and document whether any decisions used test monitoring. If they did, evaluate the selected configuration on an untouched split. Also explain the large BrowseComp validation–test performance gap rather than assuming its cause.
Questions for the authors
For Tables 1–3 and Figures 2–4, which checkpoint and exact evaluation invocation produced each result, including response cap, number of samples, seeds and any configuration overrides?
Was the final BrowseComp checkpoint fixed in advance, or were test-file evaluations used for checkpoint choice, early stopping, hyperparameter choice or other development decisions? Can you release the two 100-problem validation selections and their evaluation protocol?
Do multi-training-seed results and paired task-level intervals preserve the BrowseComp gain and the apparent advantage of combining both signals?
How do results change when using the summed distortion and unnormalized continuation advantages of Eq. (8)/(12), versus the mean reward and length-normalized, clipped implementation? What fraction of post-compaction tokens actually receives teacher supervision?
Verification
Sixteen checks are carried over from the recorded verification stage: ten confirmed narrowly scoped claims, four discrepancies, one inconclusive check and one not-checkable claim. Checks cover table arithmetic, uncertainty calculations, integer-count feasibility, vector-figure extraction, numerical gradient identities, execution of extracted advantage functions, configuration and data-split audits, reference lookups, and teacher-path inspection. The headline arithmetic and formal identities pass; the main concerns are the objective–implementation discrepancy, weak BrowseComp statistical support, and inconsistent SWE settings/reporting. Figure extraction confirms what is plotted, integer-count checks establish only feasibility, and neither reproduces benchmark outcomes. All script paths and existing logs identify the underlying evidence; full training and benchmark evaluation were not rerun.
sun2025foldgrpo — Sun et al. (2025), Scaling Long-Horizon LLM Agent via Context-Folding (arXiv 2510.11967)
Cited (§1, §2, §3) among joint compaction-RL methods that 'typically rely on final task rewards'/use task success as the training objective, but its abstract states FoldGRPO uses specific process rewards for context management; the characterisation should be qualified.
ye2026policy — Ye et al. (2026b), On-Policy Context Distillation for Language Models (arXiv 2602.12275)
Exists and is cited only in a list of on-policy distillation papers (§2), yet it proposes training a student on its own trajectories with reverse KL against a context-conditioned teacher, which is essentially RECAP's g_post term with the uncompressed history as context; the relationship and the novelty claim relative to it are not discussed.
smith2025-openhands-context-condensensation — Smith (2025), OpenHands Context Condensensation for More Efficient AI Agents
Blog post (title misspelled 'Condensensation') cited in the first sentence of §1 alongside ReAct/WebGPT as evidence that LLM agents have strong capabilities, and as evidence that compaction is 'widely adopted in various agent harnesses'; a single vendor blog post supports the second use only weakly and does not support the first.
Suggestions
Rewrite Eq. (8)–(14) and Appendix B to distinguish the exact summed objective, the biased self-distillation surrogate, and the length-normalized/clipped estimator actually trained; document singleton handling and the loss reduction.
Release immutable run manifests, per-task predictions or outcomes, four-run score files, checkpoint identifiers and exact training/evaluation commands for all reported rows and figures.
Add multiple training seeds and paired, task-clustered uncertainty analyses; do not treat repeated attempts on the same benchmark tasks as independent draws of new tasks.
Publish validation IDs and the checkpoint-selection policy, separate test monitoring from selection, and justify the source-order BrowseComp test split and validation–test gap.
Regenerate Figure 2 and Table 2 from a shared evaluation artifact and reconcile the 4,096 versus 8,192 SWE response cap before interpreting efficiency or ablation differences.
Report compaction rates and matched-task post-compaction analyses, and limit the stronger 16K-advantage statement to the domain where it is observed.
Measure matched-hardware training cost and teacher-scored continuation coverage; distinguish no extra environment interactions from no additional computation.
Discuss FoldGRPO's process rewards and the relationship to On-Policy Context Distillation explicitly; correct the OpenHands reference title and the placement of that citation.
Ethics and integrity
The verified discrepancies concern method specification, evaluation provenance and reporting. They do not establish fabrication or intent. Commented-out earlier SWE results in the LaTeX source are ordinary draft-history evidence and are inconclusive about whether evaluations used a consistent protocol (check 13); no misconduct inference is warranted. Test-file monitoring creates a potential evaluation-integrity concern, but selection on the test results has not been established. The task prompts in Appendix D are experimental material, not instructions to this reviewer.
Scope of this review
Reviewed the supplied 22-page paper, LaTeX source, released repository, recorded check scripts/logs and reference-lookup evidence. No RECAP training run or end-to-end benchmark evaluation was reproduced: the available CPU-only resources do not support the reported GH200-based training, and trained checkpoints, rollout traces and per-task evaluation outputs were not supplied. The 100-problem validation selections, checkpoint-selection history and actual command-line overrides could not be recovered. Reference checking covers existence/title matching for 66 entries and targeted attribution checks, not a full-text systematic novelty review. Numerical toy-model and extracted-function tests support only the identities and implementation behaviors they exercise; they do not validate the reported learned policies or generalization beyond one model and two domains.
The SWE response budget and evaluation invocation are inconsistent
major · §5.1; Appendix C, Table 4; inputs/code/scripts/*/train/train.sh; inputs/code/scripts/*/eval/config.yaml
Table 4 states a maximum of '8,192' output tokens per response shared across environments; the released SWE training and evaluation defaults both specify 4,096, with the evaluation comment explicitly matching the checkpoints' training cap (check 11). This is an exact configuration mismatch, not numerical rounding, and the response budget can affect the central SWE comparison. The other 39 of 40 checked training settings match. Both evaluation configurations default to two samples per task, whereas the paper reports four runs; command-line overrides could resolve this, so the default is not proof that only two were used. Supply the exact run commands, checkpoint identifiers and per-run outputs for every baseline and ablation, reconcile the cap, and establish that all compared rows used the same evaluation protocol.
The SWE efficiency figure and table do not agree
minor · §5.2; Figure 2(a); Table 2
The vector-figure audit extracts 142.37 SWE RECAP tool calls, whereas Table 2 reports '145.6': a −3.23-call discrepancy beyond the 1.0-call comparison tolerance and larger than the figure's ±1.43 whisker (check 07). The plotted value is close to the continuation-only row's '142.3', but that coincidence does not identify its source. Both values still imply fewer calls than GRPO, so this is a reporting inconsistency rather than a demonstrated reversal of the efficiency conclusion. Regenerate the figure and table from one identified evaluation artifact and explain the correction.
Conditioned accuracy and tighter-context claims need narrower interpretation
minor · §1, final paragraph; §5.2, Figure 2(c); §5.4, Figure 3
Figure 2(c) compares accuracy only among trajectories that compact, an event affected by the policy. Different subsets can therefore produce different conditional accuracies without isolating better post-compaction behavior; report compaction rates and a matched-task or controlled-compaction comparison. Figure 3 also does not support the unqualified claim that the advantage is more evident at 16K across both domains: the extracted RECAP–GRPO-32K gap is about 8.0 points at 16K versus 4.7 at 32K for BrowseComp, but about 3.0 at 16K versus 4.2/4.9/5.2 at larger windows for SWE (check 06; 0.3-point extraction tolerance). Restrict that claim to BrowseComp and distinguish descriptive conditioning from mechanism evidence.
Related-work framing overstates the gap to prior supervision methods
minor · §1–§3; bibliography entries sun2025foldgrpo and ye2026policy
The reference audit confirms that FoldGRPO's abstract explicitly uses 'specific process rewards' for context management, so grouping it without qualification with approaches relying on final task rewards obscures an important distinction. On-Policy Context Distillation already describes student-generated trajectories with reverse KL against a context-conditioned teacher; it is cited but not substantively distinguished from RECAP's continuation term (check 14). The present combination with summary credit assignment may still be a contribution. Clarify that distinction and compare the objectives and supervision sources explicitly rather than implying that the continuation mechanism itself is new. The spot-check establishes conceptual overlap, not equivalence of the complete algorithms.
Equal training-time claims lack measurements and teacher-coverage details
minor · §4.3, final sentence; Appendix B; inputs/code/agent_system/recap_teacher.py
The no-extra-environment-interactions claim is supported, but 'training time ... roughly on par' is not checkable: no matched wall-clock, GPU-hour or throughput results are supplied (check 16). The code adds teacher scoring for each compaction and omits continuation tokens that do not fit beside the original history within the teacher's context limit, including a 65,536-token SWE training limit (check 15). Report teacher-scored token coverage, truncation rates and matched-hardware timings, or remove the unmeasured cost claim. These omissions limit the interpretation of practical cost and supervision coverage; they do not by themselves refute the accuracy results.
The released code computes the compaction advantages of Eq. 12–14 / App. B: summary reward −D̂_t minus a leave-one-out baseline, continuation token advantage A^SD = log π(a|h_t)/π(a|h̃_t)
The code matches the Fig. 5 pseudocode exactly (summary reward = LOO-centred MEAN of sampled-token log-ratios; continuation advantage = clip(log q/p, ±5)/N), plus a ±5 clip that is documented in the README but not in the paper. It does not match Eq. 8/12/13 as written: e.g. summary advantages −0.353/−0.280/0.221/0.412 (code) vs −4.82/−3.63/1.84/6.60 (sum form); a token with log-ratio 8.99 receives 5/12 = 0.417 instead of 8.99. Consequences: (i) the summary reward optimises mean per-token distortion, not the summed distortion D_t that the theory (Eq. 8–11) and the decomposition are stated for; (ii) the self-distillation advantage per token is λ·r/N, i.e. N times smaller than Eq. 12/14 (e.g. 1e-5 vs 5e-2 per token for λ=0.1, N=5000, |r|=0.5), next to |A_task|≈0.87 in a mixed group, so the effective weighting of g_post differs by orders of magnitude from what Eq. 14 implies. Singleton groups get zero summary advantage (undocumented). apply_recap_advantage adds λ·(summary+continuation) to the GRPO advantage as stated.
Extracted the actual functions from recap.py via ast (no verl import), ran them on a synthetic 4-rollout group with known teacher/student log-probs and continuation lengths 3/6/9/12 using a stub DataProto, compared outputs with Eq. 8/12/13 and with Fig. 5
Training/evaluation hyperparameters of Table 4 (shared across environments, incl. max output tokens 8,192) and §5.1 (32K threshold, ≤3 compactions, k=1, 100/200 steps, λ 0.1/0.03, 16 groups × 8 rollouts, 150 steps, eval T=1.0/top-p 0.95/top-k 20, 4 evaluation runs) match the released scripts
39 of 40 training settings match (incl. derived 16 groups/step and 2400/16 = 150 steps = 8 passes over the 300 tasks). Mismatch: SWE training uses a 4,096-token response cap (MAX_ACTION_TOKENS=4096, trainer.gym_max_tokens) and the SWE eval config also uses 4,096 ('Match the current checkpoints' training response cap'), whereas Table 4 states 8,192 'shared across environments'. Both eval configs default to samples_per_task=2 rather than the 4 runs reported (overridable on the command line, so this is a documentation gap rather than proof of a different protocol). The BC training run validates on the 150-question test file every 20 steps (val_before_train=True, 4 samples) and keeps only the last 2 checkpoints; the paper does not say which checkpoint is evaluated.
Parsed defaults and the OVERRIDES arrays of both train.sh files and both eval YAMLs; compared 20 Table 4/§5.1 settings per environment; derived steps = total_rollout_steps / (require_batches × mini-batch)
Training and test data are disjoint: BC 300 train / 150 held-out test (+100 validation); SWE-smith 300 train vs all 500 SWE-bench Verified
BC: 830 queries; the 300 training ids are unique, all come from the 680 non-test questions, follow source order, and have zero overlap with the 150 test ids. The test split is the first 150 queries in dataset order (ids 769..1041), not a random sample. SWE: 300 unique SWE-smith tasks from 104 repositories, none of which is one of the 12 SWE-bench Verified repositories. Not verifiable: the two 100-problem validation sets used to select λ are not in the repository (380 unused BC non-test questions would be available, but their use is not documented); BC training also evaluates the test file every 20 steps (check 11).
Read the query_id column of the public Tevatron/browsecomp-plus parquet shards via HTTP range requests (830 queries) and checked the frozen 300-id selection against the first-150 test split used by the preparation script; compared SWE-smith selection repositories with the 12 SWE-bench Verified repositories; searched the repo for validation-set files
Table 1/Table 2 SWE numbers come from a single consistent evaluation (the LaTeX source contains commented-out earlier values)
BC columns are identical across versions; every SWE accuracy in Table 1 moved upward between drafts (+0.3 to +2.4; e.g. GRPO-32K 44.8→46.8, RECAP 49.6→51.1, GRPO-128K 53.1→55.5), shrinking the RECAP–GRPO gap from +4.8 to +4.3. In Table 2 the SWE accuracy of the none/g_sum/both rows moved by +2.0/+2.2/+1.5, but the g_post row stayed at 47.1 (its tool count and summary length changed only slightly); RECAP SWE tool calls changed 137.8→145.6 and summary length 957→1003. Re-running evaluations between drafts is normal, but the paper does not say what changed (a plausible candidate is the 4,096 vs 8,192 response cap, check 11), and it cannot be established whether the g_post row was re-evaluated under the same protocol as the other rows. The Fig. 2 SWE RECAP tool-call bar (142.4) matches neither version.
Parsed live and commented numeric cells from the LaTeX source and tabulated per-cell changes
References exist and the load-bearing ones (SUPO, FoldGRPO, CompactionRL, SDPO, BrowseComp-Plus, on-policy context distillation) support what the paper attributes to them
All 66 references resolve to a work with the cited title (51 directly; the other 15 after arXiv title search or were parsing artefacts/blog posts: Qwen3.5 blog, OpenHands condensation blog). Attribution spot-checks: SUPO (2510.06727) is end-to-end summarisation RL with task reward — matches its use as the baseline formulation; CompactionRL (2607.05378) jointly optimises summaries with cross-segment GAE — matches; SDPO (2601.20802) uses the feedback-conditioned model as a self-teacher — matches. Two positioning issues: FoldGRPO (2510.11967) uses 'specific process rewards' for context management, so grouping it with methods that rely only on final task reward (§1, §2, §3) is inaccurate; On-Policy Context Distillation (ye2026policy, 2602.12275) trains a student on its own trajectories with reverse KL to a context-conditioned teacher — essentially the g_post mechanism with the full history as context — but is cited only in a list of on-policy distillation papers without discussion.
tools/check_refs.py (Crossref + arXiv) on all 66 entries; title-similarity comparison; arXiv title search for entries without an arXiv id; arXiv abstracts of six load-bearing references
RECAP requires no additional rollouts or environment interactions; both signals are computed from the same sampled trajectory
Teacher scoring sends the pre-compaction context plus the realised continuation to the rollout server with sampling_params {max_tokens: 1, temperature: 1.0, prompt_logprobs: 0} and never calls the environment; there is one call site (_score_continuation). So no extra rollouts or environment steps are needed. It does add one teacher forward pass per compaction event over |h_t| (~32K, cacheable via prefix caching) plus the continuation (re-prefilled with attention over up to ~64K tokens); continuation tokens that do not fit beside h_t in max_model_len are left unscored (65,536 for SWE). The paper does not quantify this overhead.
Static inspection of the teacher-scoring path in the released code, printing the request parameters and checking for environment calls; illustrative token count of the extra teacher pass
The overall training time of RECAP remains roughly on par with the RL baselines
No timing numbers, logs or per-step throughput are reported or released; the claim cannot be checked. Needed: wall-clock per training step (or total GPU-hours) for GRPO and RECAP under the same hardware, and the share of time spent in teacher scoring (check 15 shows an extra teacher forward pass per compaction event is required).
Looked for wall-clock, GPU-hour or throughput numbers in the paper, appendix and repository
RECAP beats compaction-GRPO by +4.6 (BC, 62.8 vs 58.2) and +4.3 (SWE-V, 51.1 vs 46.8); 1.0 below 128K GRPO on BC; ablation deltas -1.5/+1.1 (g_sum), 60.3/47.1 (g_post)
All 14 quoted values/differences match within 0.05 pts (4.60, 4.30, 1.00, -1.50, +1.10; Table 2 none/both rows equal Table 1 GRPO-32K/RECAP-32K). Context: the abstract writes "4.6%"/"4.3%" for absolute percentage points. On SWE, GRPO-32K improves the untrained 32K model by only +1.0 pts (45.8 -> 46.8) vs +5.7 for GRPO-128K, i.e. the SWE baseline barely learned.
Recomputed every difference quoted in the text from Table 1 and Table 2 values; cross-checked shared rows between the two tables
RECAP consistently outperforms compaction-GRPO (Table 1 means ± SD over 4 evaluation runs)
BC: diff 4.6, Welch t=2.20, df=3.9, p=0.095, 95% CI (-1.3, 10.5) — not significant at 0.05 even though only evaluation-sampling noise is modelled (p=0.13 with population SD). SWE: diff 4.3, t=5.00, p=0.0033, CI (2.1, 6.5) — significant against evaluation noise. Reported BC SD 3.9 equals the binomial SD of a single 150-question run at p=0.63 (3.95), so the SDs are plausible. Only one training run per method, so training-seed variance is not captured at all; question-sampling SE of the difference is ~5.6 pts (BC) and ~3.2 pts (SWE) if unpaired. The arithmetic is right; the statistical support for the BC 'consistent improvement' claim is not there.
Welch t-tests from reported mean ± SD (n=4 runs each, sample and population SD variants), binomial per-run SE, pooled two-proportion test, question-sampling SE of the difference (scipy)
Reported accuracies (BC: 4 runs × 150 questions; SWE: 4 runs × 500; validation: 100 questions) and Table 1 mean ± SD pairs are arithmetically attainable
All 30 test means are attainable (e.g. RECAP BC 62.8 = 377/600; GRPO-32K 58.2 = 349/600). All 10 Table 1 mean ± SD pairs are reproducible by integer per-run counts (e.g. BC RECAP 62.8±3.9 by counts (86,94,98,99)/150; BC Qwen3.5-4B-128K 49.2±0.8 only by (72,74,74,75) with sample SD). All 8 validation accuracies in Table 3 are whole numbers, consistent with a single evaluation run over 100 questions (not the four-run average used for test), so validation selection used n=100 single-run estimates.
GRIM test on all 30 BC/SWE means (K/600, K/2000) and 8 validation values; GRIMMER-style enumeration of integer per-run counts (c1..c4) reproducing both mean and SD at 1-decimal rounding
λ selected by highest validation accuracy (100 held-out problems) gives λ=0.1 (BC) and 0.03 (SWE); Table 1 RECAP equals the test value at that λ; on BC RECAP 'substantially outperforms' GRPO for all tested λ
Selection arithmetic is correct: argmax gives λ=0.1 (BC, val 40.0) and λ=0.03 (SWE, val 44.0); test values 62.8 and 51.1 equal Table 1. Caveats printed by the script: (i) on SWE only 2 of 4 λ values beat the GRPO baseline 46.8 (λ=0.1: 46.3, λ=0.3: 46.5 are below); mean over λ is 48.4 (+1.6). (ii) The SWE choice is decided by 1 question out of 100 (44 vs 43) while the SE of a validation difference is ~6.9 pts. (iii) On BC λ=0.03 gives +1.8 (Welch p≈0.44), so 'substantially outperforms for all λ' overstates; BC test is not monotone in λ (62.8→62.3). (iv) BC validation accuracy averages 36.2 vs test 61.8 (+25.6 pts gap), suggesting the validation questions come from a different (harder) distribution than the 150 test questions; their source is not described.
Recomputed argmax of the validation column, compared test values with Table 1, counted λ values above/below the GRPO-32K baseline, validation margins in questions, Welch test for the weakest BC λ
Figure 4 plots the Table 3 test accuracies per λ and the GRPO baseline (58.2 BC / 46.8 SWE)
All 8 plotted points match Table 3 (BC 60.00/62.80/62.33/62.33; SWE 51.10/46.30/46.50/49.80); the BC values are unrounded 374/600 = 62.33, consistent with 4×150 counts. BC baseline line at 58.20 matches; SWE baseline line is drawn at 46.90 vs 46.8 in Tables 1–2 (0.1 pt, within tolerance but a small inconsistency). The figure itself makes visible that λ=0.1 and λ=0.3 fall below the SWE baseline.
Extracted vector polyline vertices and dashed baseline from figures/lambda_ablation.pdf with PyMuPDF; calibrated y axes from tick marks/labels (zero residual); tolerance 0.3 pts
Fig. 3: RECAP keeps 60–63% on BC from 16K to 64K and beats both GRPO variants at 16K; on SWE it beats GRPO-32K at all windows and GRPO-128K at all compaction windows; §1: advantage 'more evident under a tighter 16K working-context limit'
Extracted values — BC RECAP 60.67/62.83/60.00/57.00, GRPO-32K 52.67/58.17/57.00/58.00, GRPO-128K 43.33/53.67/61.00/63.83; SWE RECAP 44.03/51.10/53.21/54.32, GRPO-32K 41.05/46.89/48.30/49.15, GRPO-128K 35.97/42.53/47.84/55.50 (16K/32K/64K/128K). All six Table 1 anchors and all four §5.4 inequalities hold. Caveat on the §1 claim: the RECAP–GRPO-32K gap is largest at 16K on BC (+8.0 vs +4.7 at 32K) but smallest at 16K on SWE (+3.0 vs +4.2/+4.9/+5.2), so 'more evident at 16K' holds for BC only. Not discussed in the text: at 128K without compaction RECAP is below GRPO-32K on BC (57.0 vs 58.0). SWE GRPO-32K at 32K plots at 46.9, vs 46.8 in Tables 1–2.
Extracted the three series polylines from figures/context_window_scaling_light_red.pdf (PyMuPDF), calibrated y from tick marks (zero residual), checked every textual inequality and the 32K/128K anchors against Table 1 (tolerance 0.3)
Fig. 2: RECAP uses fewer tool calls and tokens than GRPO in both environments and is more accurate on compacted trajectories; tool-call bars correspond to Table 2 #Tools (23.4/19.9 BC; 158.9/145.6 SWE)
All six directional claims hold: tool calls BC 19.91 vs 23.26 (−14%), SWE 142.37 vs 159.38 (−11%); tokens BC 57.5K vs 67.8K, SWE 90.9K vs 107.0K (−15% each); compacted-trajectory accuracy BC 40.8±6.2 vs 35.9±2.6, SWE 49.5±1.7 vs 46.2±1.4 (BC error bars overlap heavily). But the SWE RECAP tool-call bar is 142.37 (whisker ±1.43) while Table 2 reports 145.6 for the same model (diff −3.2, beyond the figure's own error bar); the figure value instead coincides with Table 2's g_post-only row (142.3). BC bars match (diff −0.14, +0.01); SWE GRPO bar 159.38 vs 158.9 (+0.48). Either Fig. 2 and Table 2 come from different evaluations of the SWE RECAP model or one of them is mislabelled. Fig. 2(c) also conditions on a post-treatment event (having compacted), so the subsets differ between methods.
Extracted bar heights and error-bar whiskers from figures/efficiency_compacted_accuracy.pdf (PyMuPDF), calibrated from tick marks (zero residual); compared with Table 2 (tolerance 1.0 tool call)
§5.3: g_sum alone gives more tool calls in both envs and much longer BC summaries; g_post alone consistently improves accuracy with fewer tool calls and shorter summaries; the combination is best in both envs
All 11 directional statements hold (e.g. g_post summaries 468 vs 1146 BC, 557 vs 966 SWE; RECAP accuracy 62.8 > 60.3 BC and 51.1 > 47.9 SWE). Caveats: the 'more tool calls' for g_sum on BC is 23.5 vs 23.4 (+0.1); g_post's SWE gain is +0.3 pts (6 of 2000 attempts), well within the ±1.4 run SD, so 'consistently improves' is weak on SWE; combined gains are strongly super-additive (BC +4.6 vs +0.6 sum of individual gains; SWE +4.3 vs +1.4), which with single-seed runs is also compatible with run-to-run variance. Full RECAP's SWE summaries are longer than GRPO's (1003 vs 966), unlike g_post alone.
Directional comparisons of every verbal claim against Table 2 rows; additivity of gains
∇J_comp = g_sum + g_post exactly (Eq. 11 / App. A Eq. 15); exact g_post = score-function term + per-token term (Eq. 16); −∇KL(p||sg q) = E_p[log(q/p)∇log p] (Eq. 18); the SD estimator (Eq. 12/19) is the gradient of a surrogate that drops the score-function term
Decomposition error max 6.7e-16 (Eq. 11/15), Eq. 16 error 5.6e-16, Eq. 18 error 8.9e-16 over 20 instances; the single-sample estimators (−D̂ from sampled-token log-ratios times ∇log π(m), and Eq. 19) are unbiased for g_sum and g_post^SD (errors ~1e-16). The SD surrogate is a biased estimate of the exact g_post, as the paper acknowledges: cosine with exact g_post median 0.999 (min 0.963), relative error median 0.076, max 0.53 — even with only a 2-token continuation; the bias is not quantified in the paper for realistic horizons.
Exactly enumerable toy model in float64 torch (3 summaries, 2-token continuation over 4-token vocabulary, teacher and student sharing parameters, teacher stop-gradient); 20 random instances; exact expectations of the single-sample estimators by enumeration plus a 200k-sample fixed-seed Monte Carlo