betaFeedback

WorksComputer Science

Why Calibrated BM25 Filtering Barely Reduced Context on LongMemEval

Abstract

An assistant that summarizes old conversations may later need a detail from the original exchange. It can score archived passages against the question, but only passages that fit in the prompt reach the answering model. We tested whether a BM25 filter saves input tokens once that limit is taken into account. We calibrated the filter on passages that individually corrected an answer the model got wrong from the summaries alone. Across 75 LongMemEval questions, filtering changed one prompt and saved 0.096% of input tokens. With and without the filter, the model answered the same questions correctly under a second automated grading. On a random sample, two human graders' settled judgments agreed with the automated grades in 92.9% of definite comparisons (Cohen's kappa = 0.805). Building on earlier work that distinguishes retrieved evidence from delivered evidence, we give an exact test for packers that try whole passages in a fixed order and skip any that do not fit. Run the packer without the filter. The prompt changes exactly when an admitted passage scores below the cutoff. Code and data: https://github.com/KurbanIntelligenceLab/Certfold

Introduction

An agent can summarize an old conversation to make room for new messages, then retrieve an original passage if a question calls for a missing detail ([20]). Which passages should it put back? Restoring too little can leave the question unanswered. Restoring too much costs input tokens, and models can struggle to use long contexts even when the relevant passage is present ([14, 9]).

Consider a chat assistant that summarizes a user’s first open-mic performance. Weeks later, the user asks how long they had watched comedy specials before performing. The summary mentions the performance but omits the interval. The original exchange contains the answer.

We call each archived passage a fold. The answering model, or reader, always sees the summaries. To restore a fold, we add the entire passage to its prompt. A fold is beneficial if restoring it alone corrects an answer the reader got wrong from the summaries.

One way to decide what to restore is to score each passage against the question. Prior work calibrates a score cutoff to retain relevant snippets ([3]), or trains a router on questions where raw text corrected a summaries-only answer ([35]). A cutoff determines which passages are eligible. A second step, packing, determines which eligible passages fit. Bala [1] found that retrieval and delivery can differ under a token budget. We ask how much a calibrated cutoff contributes when the window already excludes some of the passages it would reject.

Our system, CertFold, ranks folds by BM25, a lexical retrieval score. We compare a recall gate, which applies a cutoff calibrated on beneficial folds, with all-that-fits, which applies no cutoff. Both pack whole passages in the same order. Our objectives are to measure how the cutoff changes the final prompt, explain when and why it changes delivery, and measure the token and accuracy trade-off when a policy restores fewer passages.

On 75 LongMemEval development questions (Wu et al., 2025a), the policies produced identical prompts for 74 questions. On the open-mic question the cutoff excluded one passage and changed the answer, although the rubric accepted both answers. The filter saved 0.096% of input tokens. A few beneficial passages scored low, so the cutoff admitted most candidates. The window already excluded nearly every passage the cutoff would have rejected.

A change is most likely when the window can hold most of what passes the cutoff, although a smaller window can still admit a short passage below it. In a replay that counted tokens without generating answers, savings from the original cutoff reached 7.3% once the entire archive fit.

Contributions. We isolate the effect of filtering on the final prompt (§ 3) and give an exact test for a change in delivery that requires one packing pass (§ 4 and § 5). We measure how more selective policies trade input tokens for correct answers at the tested window (§ 6). We also check how the choice of retrieval score and disagreements about which folds helped affect the cutoff (§ 7 and § 8).

Organization. § 2 defines the comparison. § 3 to § 5 follow a passage from selection to delivery and examine what changes as the window grows. § 6 to § 8 examine tighter budgets, alternative scores and the reliability of the grades, respectively. § 9 gives the costs and limits, § 10 compares prior approaches, and § 11 explains how to apply the packing test elsewhere.

Archive, policies and outcomes

This section describes how we isolated the effect of the cutoff by holding the archive, reader and packing rule fixed.

Data. Each question in the cleaned LongMemEval-S release comes with a history of dated chat sessions (Wu et al., 2025a). We selected 75 questions before seeing model outputs. We excluded abstention questions and histories sharing a session with any question used before this study. We took the rest in hashed order, discarding a question if its history contained an answer session for a question already selected, or if a selected history contained one of its answer sessions. Shared background sessions still link 74 of the 75 questions. We used these same development questions to design and evaluate the comparison. We grouped whole sessions chronologically into chunks of up to 8,192 Qwen3 tokens, keeping any longer session as its own chunk. The result was 15 to 18 chunks per question and 1,192 question–chunk pairs.

What the reader sees. Before seeing the question, a Qwen3-8B writer (revision b968826) had up to 256 tokens per chunk to summarize facts, names, dates, events, preferences and corrections. Every policy kept these summaries in the prompt. A Qwen3-14B reader (revision 40c0698) received the packed history, current date and question. It was asked to extract the relevant information and answer step by step. Decoding was greedy, with thinking disabled and a 512-token answer cap. Appendix G gives the prompt specifications.

What counts as beneficial. We label a question–chunk pair positive if restoring that chunk alone corrects a summaries-only error. A chunk can contain the answer without changing the reader’s response, and two chunks may help jointly. We therefore grade the final answer separately after packing.

Four policies. Folded-only uses the summaries alone. Top-two considers the two highest-scoring folds, the recall gate considers all folds at or above its cutoff, and all-that-fits considers every fold. Each restoration policy tries candidates in descending BM25 order, breaking ties by archive order. The packer inserts each candidate in chronological order alongside the summaries and previously admitted passages. It keeps the candidate if the whole prompt fits with the answer reserve. Otherwise it skips that candidate and tries the next. Every answer-generating run used a 32,768-token window.

Two scores. BM25 scores each fold against the question and its date (Appendix § 17). We later scored the same folds with BGE, a dense embedding model ([28]). All main policy comparisons use BM25 packing order, including those where BGE sets the cutoff. Appendix § 16.§ 1 separately checks BGE packing order.

Calibration. We randomly ordered the 1,192 question–chunk pairs, used the first 600 to calibrate the gate and reserved the next 200 for audit. The remaining 392 were unlabeled. Under the original grades, 37 calibration folds were positive. At the prespecified miss level α=0.1\alpha= 0.1, the rank rule gives ⌊0.1(37+1)⌋=3\lfloor0.1(37 + 1) \rfloor= 3. The gate selected every fold scoring at least as high as the third-lowest positive, 1.560604. We froze this cutoff before observing the audit outcomes. We call it the executed cutoff. Under exchangeability of score/label pairs, the rule bounds the probability of excluding a positive at selection, averaged over calibration and a new draw (Appendix § 17). Packing may still drop a selected fold. All four policies answered the same questions, including those that contributed calibration folds. Appendix § 14 describes the reuse of earlier answers.

Grading. The original reader graded its own answers against question-specific rubrics. Four explicit nonanswers had been graded correct, so we re-graded all 877 distinct requests (951 saved answer occurrences) with OpenAI’s gpt-6.1-terra under the same rubrics. A second model adjudicated 26 selected cases. The review packets withheld the original grades, scores, policy and split. The review produced 872 definite grades and five unresolved cases. Of 94 definite grades that changed, 84 changed from incorrect to correct (Appendix § 14). We call the resulting labels re-graded labels. A re-graded cutoff is one recomputed from those labels. The original prompts and answers remain available for comparison. Unless otherwise identified, ranges on label-dependent results span assignments of the unresolved labels.

Two human graders independently checked a blinded sample (§ 8). Appendix § 20 gives the grading procedure. § 9 discusses the missing records for the four nonanswers.

With these definitions, the gate and all-that-fits differ only in whether the cutoff is applied before packing. § 3 reports what that changed.

What reached the reader

We first compare the prompts and answers with and without the cutoff. We then use the audit folds to locate any beneficial passages lost during selection or packing.

The gate selected 1,096 of 1,192 candidates, but the packer delivered only 291 chunks. Removing the cutoff and considering all 1,192 candidates delivered 292. The two policies produced exactly the same prompt for 74 of 75 questions. On the open-mic question, all-that-fits delivered one extra chunk and answered “two months,” the reference answer. The gate answered “three months.” The rubric for temporal questions accepts a one-month error, so both answers count as correct. This was the only question on which the extra filtering could have changed the paired result. The chunk the gate left out is an audit fold labeled non-beneficial.

Restoration helped relative to summaries alone (Table 1). The gate and all-that-fits each corrected 30 of 52 baseline errors and introduced three errors on the 23 baseline successes. They agreed on correctness for every question. Across the cohort, the gate saved 2,186 of 2,283,913 input tokens (0.096%). That is before the cost of labeling the calibration and audit folds, which was 651 restored-fold answers and their grades (Appendix A). Top-two used substantially less context. The gate used 59.37% more input than top-two for two to three additional correct answers in aggregate. These two policies delivered different amounts of evidence, so the difference reflects how much was restored as well as how it was chosen.

PolicySelectedDeliveredCorrectRecoveryDamageInput
Folded only0023005,397
Top-two15015047–4827–28319,090
Recall gate1,0962915030330,423
All-that-fits1,1922925030330,452

Table 1. Filtering removed one passage from the final prompts across 75 questions. Selected and Delivered count folds across questions. Correct counts questions under the re-graded labels. Recovery counts corrections among 52 summaries-only errors, and Damage counts new errors among 23 summaries-only successes. Input is mean prompt tokens per question.

Table 2: Selection and delivery on the 200 audit folds. There are 12 definite positives and one unresolved fold. All three policies deliver that fold, so the miss counts are the same whatever its grade.

Stage or policyMissesNegatives keptTotal
Gate: selected1177–178189
Gate: delivered439–4048
Top-two: delivered616–1723
All-that-fits: delivered440–4149

Table 2. Selection and delivery on the 200 audit folds. There are 12 definite positives and one unresolved fold. All three policies deliver that fold, so the miss counts are the same whatever its grade.

Of the four beneficial audit folds the gate failed to deliver, one scored below the cutoff and three passed it but were skipped during packing (Table 2). All-that-fits missed the same four. Top-two missed six while delivering fewer than half as many audit folds as the gate. Under the original grades the gate selected all nine audit positives. Its 10% target concerns the marginal probability of missing a positive at selection (Appendix D). In the calibration set, even all-that-fits delivered only 12 of the 34 to 36 folds labeled beneficial (Appendix C.1). This distinction between selection and delivery also arises in budgeted retrieval [1].

The calibrated cutoff therefore changed almost nothing that reached the reader, and most of the beneficial folds that went missing were lost in packing. Section 4 asks why the cutoff rejected so few candidates, and Section 5 why even those rejections rarely reached the prompt.

Why the cutoff removed so little

Why did the gate reject only 96 of 1,192 candidates? A recall cutoff depends on the lowest scores among the beneficial folds. We examine those scores and how the cutoff changes with the grades and the allowed miss rate.

Ranking quality. The area under the receiver operating characteristic curve (AUROC) measures how often a positive outranks a negative, with ties counted as half. Under the original grades, BM25 had an AUROC of 0.56 on calibration and 0.82 on audit. The audit estimate rested on just nine positives, compared with 37 on calibration. Re-grading gave a similar pattern (Table 6). The small audit sample leaves the difference between splits uncertain.

ScoreLabelsCalibrationAuditSelectedChangedDeliveredSavedCorrect
BM25original0.56040.81971,096 (91.95%)12910.096%50
BM25re-graded0.5840–0.60260.7793–0.79881,082 (90.77%)12910.096%50
BGEoriginal0.58060.68351,125 (94.38%)82890.350%49–50
BGEre-graded0.6675–0.68240.7385–0.7606966 (81.04%)202851.27%49

Table 6. Full-archive recall gates at α=0.1\alpha= 0.1. Changed, Saved and Correct use the baseline and units of Table 4. The original BM25 gate generated answers in the main run. The re-graded BM25 gate delivered identical prompts. The additional run in § 6 answered every changed prompt for both BGE cutoffs. AUROC ranges span unresolved labels.

Where the cutoff falls. AUROC averages over all positive–negative pairs. It does not locate the third-lowest positive, which set the cutoff under both gradings. Even after re-grading raised the cutoff, more than nine in ten candidates scored at or above it (Figure 1).

Positive folds ranked by BM25 score against the percentage of candidates scoring strictly below the positive

Figure 1. The third-lowest positive sets the re-graded cutoff. Only 9.23% of all candidates score strictly below it. The vertical axis ranks positive folds by BM25 score. Open circles are unresolved folds, shown as positive. Excluding either shifts higher ranks down by one and leaves the cutoff unchanged. Under the original grades, 8.05% scored below the cutoff.

Sensitivity to grading. Raising the BM25 cutoff from 1.560604 to 1.735797 left all 75 delivered prompts unchanged. All four assignments of the two unresolved calibration labels gave the same new cutoff. Substituting human grades also changed little at delivery (§ 8). These comparisons used saved scores. The original calibration guarantee applies to the cutoff fixed before the audit.

When would it filter more? In the re-graded data, the first cutoff to reject at least half the pool had the same score under all four label assignments. Its rank ranged from 11 to 13, requiring a miss level of 0.31 to 0.35. Even with only 590 folds selected, 57 of 75 prompts still matched all-that-fits. More calibration positives would give finer ranks. Holding their empirical score distribution fixed, the large-sample calculation at α=0.1\alpha= 0.1 still selects 89.85% of candidates (Figure 3 and Table 11).

Figure 3. BM25 sensitivity under the re-graded labels; bands cover the unresolved labels. (a) Black: selected fraction of 1,192 candidates; blue dashed: fraction of 75 prompts identical to all-that-fits, from the packer of the executed run. (b) Exact expected selection over uniform subsets of the fixed positive scores. (c) A hypothetical larger-N1N_1 calculation assuming independent draws from the empirical score distribution, at α=0.1\alpha= 0.1. Its limit selects 89.85%.

Scoreα\alphaRankCutoffSelectedFractionSame / 75
BM250.1031.7357971,08290.77%74
BM250.2073.124366–3.290916841–86670.55–72.65%72–73
BM250.3010–113.426394–3.844625739–81662.00–68.46%63–71
BM250.40144.813261–5.200567514–58043.12–48.66%49–55
BM250.5017–185.332758–5.478331478–49840.10–41.78%43–45
BGE0.1030.41266396681.04%55
BGE0.2070.449622–0.449679644–64554.03–54.11%28
BGE0.3010–110.450966–0.451179628–62952.68–52.77%28
BGE0.40140.466739–0.468205501–50842.03–42.62%20
BGE0.5017–180.475902–0.483599398–44333.39–37.16%15–20

Table 11. Saved-score sensitivity under the re-graded labels, with 34 to 36 calibration positives. Ranges cover the unresolved labels. Same counts the prompts, of 75, that are identical to all-that-fits. Both scores pack in BM25 order.

Once the cutoff is set, the remaining question is which rejected passages would actually fit.

When a calibrated cutoff changes the prompt

Would the filter save more if the window were larger, or if fewer archived passages competed for space? We replayed the packing decisions using saved scores and counted the resulting input tokens. We first reproduced every prompt and both token totals from the original comparison. The other window sizes represent hypothetical capacities. Answer accuracy was measured only at the original window.

An exact condition. Run the packer once without the cutoff and inspect the folds it admits. The prompt changes exactly when at least one admitted fold scores below the cutoff. To see why, follow the packer in order. Removing a candidate it would skip leaves the admitted set unchanged for the next decision. If all removed candidates would have been skipped, the final set is identical. Conversely, if the cutoff removes an admitted fold, that fold is missing from the new prompt.

This argument assumes a fixed order and a packer that skips a whole fold when it fails to fit and continues to the next one. A packer that stops at the first such fold can behave differently. The test matched every replay in Appendix B. A change can even lengthen the prompt: when the filter uses a different score from the packing order, excluding one fold can make room for a larger one. This happened in 60,816 of the 4,687,200 replay combinations, which include repeated archive designs.

Window size. With the BM25 cutoff used in the original run, token savings reached 7.30% once every question’s archive fit. Recomputing the cutoff from the re-graded labels gave 8.41% at that capacity. Up to 65,536 tokens the two cutoffs produced identical counts (Table 12). The BGE cutoff saved more when the full archive fit, but savings did not rise at every step: a larger window can admit a different combination of whole passages (Table 3 and Figure 2).

Window (tokens)BM25 cutoff ChangedBM25 cutoff DeliveredBM25 cutoff SavedBGE cutoff ChangedBGE cutoff DeliveredBGE cutoff Saved
16,3844981.193%10951.237%
32,76812910.096%202851.266%
65,53656450.545%376213.684%
98,304179762.415%4688011.325%
131,072 and above511,0828.407%5096617.662%

Table 3. Recall gates at α=0.1\alpha= 0.1 against all-that-fits at different context windows, under the re-graded labels. Token accounting from saved scores and the packer of the executed run. Changed counts prompts of 75 that differ from all-that-fits at the same window; Delivered counts restored folds; Saved is the reduction in input tokens. Both gates pack in BM25 order. Only the 32,768-token row has answers: the BM25 gate ran as a policy, and the prompts that the BGE gate changes were answered in the additional run of Section 6. At that window the re-graded BM25 cutoff delivers the same prompts as the executed gate. Table 12 lists every window.

Figure 2. Input tokens saved by a recall gate against all-that-fits as the context window grows, for cutoff ranks kk; rank 3 is α=0.1\alpha= 0.1. Token accounting from saved scores and the packer of the executed run. Shading covers the unresolved calibration labels. Both panels pack in BM25 order. The dotted line marks the executed window.

ScoreWWChangedFoldsInputSavedSaved (%)
BM258,19219419,4512,1860.518
BM2512,288077816,06300.000
BM2516,384498990,42811,9551.193
BM2524,57631971,648,27110,0490.606
BM2532,76812912,281,7272,1860.096
BM2549,15224653,489,6257,8330.224
BM2565,53656454,705,69325,8010.545
BM2598,304179766,964,287172,3392.415
BM25131,072511,0827,677,274704,6948.407
BM25196,608511,0827,677,274704,6948.407
BM25262,144511,0827,677,274704,6948.407
BM25Unlimited511,0827,677,274704,6948.407
BGE8,19255413,6597,9781.892
BGE12,288774807,3528,7111.067
BGE16,3841095989,98612,3971.237
BGE24,576201851,601,11757,2033.449
BGE32,768202852,255,00528,9081.266
BGE49,152284603,476,76020,6980.592
BGE65,536376214,557,190174,3043.684
BGE98,304468806,328,393808,23311.325
BGE131,072509666,901,5141,480,45417.662
BGE196,608509666,901,5141,480,45417.662
BGE262,144509666,901,5141,480,45417.662
BGEUnlimited509666,901,5141,480,45417.662
BM25, executed98,304139806,988,043148,5832.082
BM25, executed131,072 and above461,0967,770,345611,6237.297

Table 12. Recall gates at α=0.1\alpha= 0.1 at every replayed window WW: the BM25 and BGE cutoffs recomputed on the re-graded labels, and the BM25 cutoff that ran, which was calibrated on the original labels. At windows up to 65,536 tokens the executed cutoff gives the same counts as the re-graded BM25 cutoff. Changed counts prompts of 75 that differ from all-that-fits; Folds counts restored folds; Input and Saved are input tokens over the 75 questions. Token accounting only.

Archive size. At the original window, restricting retrieval to two or four candidate chunks per question produced BM25 token savings between 3.5% and 10.0% across the tested subsets. With the full archives, each containing 15 to 18 chunks, savings fell to 0.096%. Only the passages eligible for restoration changed. We kept every summary and the cutoff calibrated on the full archive. Table 13 gives the results for each subset size.

ScorennRank 3 ChangedRank 3 SavedRank 10 ChangedRank 10 SavedRank 20 ChangedRank 20 Saved
BM25211–204.97–9.9734–4921.06–29.7960–6841.84–52.68
BM25411–213.51–8.6441–5219.21–28.9763–7145.74–55.06
BM2564–81.14–1.9423–377.42–17.6559–6537.95–44.10
BM2585–60.92–1.3713–283.26–10.2352–6029.09–36.37
BM25121–70.24–1.399–191.72–4.9344–5118.57–24.34
BM25All10.104–120.65–2.3438–4013.99–15.09
BGE223–2813.20–16.4048–5130.50–35.3766–7348.49–59.07
BGE427–349.50–15.6452–6033.91–36.7368–7254.12–62.43
BGE622–335.18–9.8351–6122.96–28.1267–7145.47–53.24
BGE821–333.09–5.0350–5917.09–21.7065–7139.26–47.96
BGE1221–271.11–2.7047–549.64–11.7564–7030.41–35.29
BGEAll201.27477.3966–6724.07–27.31

Table 13. Smaller archives at the executed 32,768-token window, under the re-graded labels. Each row restricts every question to nn of its chunks. Ranges are over the five seeds, formed after the ranges over the unresolved labels; in the rows with all chunks the seeds coincide, so those ranges cover the unresolved labels only. Changed counts prompts of 75 that differ from all-that-fits on the same subset; Saved is the reduction in input tokens, in percent. Rank 3 is α=0.1\alpha= 0.1. Token accounting only.

A shortcut based on length. Predict a change if the filter rejects a passage and the window has more room for restoration than the total length of the passing passages. This rule agreed with the exact test in about nine out of ten replay cases (Table 14). It can miss a short rejected passage that fits after the packer skips a longer eligible one.

RuleAccuracyPrecisionRecallFalse positivesFalse negatives
Exact admitted-fold test100.00%100.00%100.00%00
Candidate ratio >1> 1, p>0p > 084.76%100.00%71.20%0714,322
Retained ratio >1> 1, p>0p > 091.37%94.17%89.21%136,875267,625
Candidate fitted threshold71.15%68.43%84.44%966,294385,842
Retained fitted threshold77.57%74.47%87.67%745,528305,876
Candidate fitted threshold, p>0p > 089.76%93.82%86.34%141,021338,857
Retained fitted threshold, p>0p > 091.66%92.73%91.41%177,706213,183

Table 14. Rules that predict whether the gated prompt differs from all-that-fits, over the 4,687,200 replayed combinations, of which 2,480,340 change. The candidate ratio is C/TC/T and the retained ratio is C/TkeepC/T_{\mathrm{keep}}, with CC the room for restored folds, TT the token mass of all candidates and TkeepT_{\mathrm{keep}} the mass at or above the cutoff; pp is the fraction of mass below the cutoff. Fitted thresholds were chosen and evaluated on the same grid, in which the full archive enters six times. With the full archive counted once, the retained-ratio rule agrees in 92.06% of 3,931,200 combinations, with precision 93.69% and recall 91.15%.

At the original window, almost nothing below the recall cutoff would have reached the prompt. We next tested policies that discard more.

Policies that select less

How many tokens can a more selective policy save, and what happens to its answers? We tested two alternatives at the original window. Budget mode calibrates on non-beneficial folds. A fold passes only if few of these calibration examples score at least as high. Under the sampling conditions of Proposition 1, a fold known to be non-beneficial is selected with probability at most α\alpha. Beneficial folds can also be lost. Top-kk simply considers the kk highest-scoring folds.

We chose the policy grid and the rows shown in Table 4 after inspecting token counts and earlier grades, but before generating the new answers. The table shows nine policies alongside two saved baselines. Appendix § 22 gives all 60 distinct selections, including settings where the chosen folds depend on an unresolved label.

Table 4. Token savings and correct answers at the 32,768-token window. Changed counts prompts that differ from all-that-fits. Saved is the reduction in total input tokens against that baseline. Correct counts questions out of 75, with ranges for unresolved grades. The re-graded BM25 recall cutoff delivered the same prompts as the executed cutoff.

PolicySelectedChangedDeliveredSavedCorrect
All-that-fits1,19202920%50
Recall gate, BM25, α=0.1\alpha= 0.11,08212910.10%50
Recall gate, BGE, α=0.1\alpha= 0.1966202851.27%49
Top-32256522415.65%49
Budget, BM25, α=0.2\alpha= 0.22715819125.66%52
Top-two1507515037.31%47–48
Budget, BGE, α=0.1\alpha= 0.11447012146.66%45–46
Budget, BM25, α=0.1\alpha= 0.11366811348.91%39–40
Top-175757559.71%35–38
Budget, BM25, α=0.05\alpha= 0.0571736961.88%39–40
Folded only075082.28%23

The same reader answered 321 new prompts. Two prompts yielded the same answer to the same question, giving 320 distinct grading requests. Automated grading left ten unresolved. Appendix § 20 gives the reproduction and grading checks.

A quarter fewer tokens. At α=0.2\alpha= 0.2, BM25 budget mode used 25.66% fewer input tokens than all-that-fits. It corrected five answers that all-that-fits got wrong and missed three that all-that-fits got right. The resulting counts were 52 and 50 correct out of 75, with no unresolved pairs.

Roughly half as many tokens. At α=0.1\alpha= 0.1, BM25 answered 39 to 40 questions correctly and BGE answered 45 to 46, against 50 for all-that-fits. On definite pairs, BM25 gained four correct answers and lost 14 relative to all-that-fits. BGE gained eight and lost 12. Each comparison had one unresolved pair. For 21 questions BM25 selected no fold at all, leaving the reader only the summaries.

These are paired counts on development questions with overlapping histories. They leave accuracy on new questions open. BGE budget mode at α=0.3\alpha= 0.3 had the highest observed count in the grid, but choosing the best of 60 policies on these same questions favors chance gains (Table 19).

PolicySettingSelectedChangedDeliveredInput tokensSavedCorrect
Recall gaterank 11,087142872,264,9960.83%50–51
Recall gaterank 2992192852,255,9661.22%48–49
Recall gaterank 3 (α=0.1\alpha= 0.1)966202852,255,0051.27%49
Recall gaterank 4926242832,245,9351.66%48
Recall gaterank 5839322782,219,0352.84%45–46
Recall gaterank 5–6766412722,190,3474.10%47–48
Budgetα=0.5\alpha= 0.5660452612,141,6576.23%47–48
Budgetα=0.5\alpha= 0.5658462602,135,9656.48%47–48
Recall gaterank 6–7645472592,128,5146.80%48–49
Recall gaterank 7–8644472592,128,8196.79%48–49
Recall gaterank 8–9631472572,114,9477.40%50–51
Recall gaterank 9–10629472572,115,0797.39%49–50
Recall gaterank 10–11628472572,115,0797.39%49–50
Recall gaterank 11–12600502512,084,1388.75%47–48
Recall gaterank 12–13572532462,056,7989.94%48–49
Recall gaterank 13–14508552341,978,21413.38%49–50
Recall gaterank 14–15501552351,983,16713.17%49–50
Recall gaterank 15–16499552351,983,16713.17%49–50
Recall gaterank 16–17453552191,874,21017.94%50
Recall gaterank 17–18443552191,875,86517.87%50
Recall gaterank 18–19398602091,815,82720.49%53
Budgetα=0.3\alpha= 0.3375622031,776,83822.20%54–55
Budgetα=0.3\alpha= 0.3374622031,776,83822.20%54–55
Recall gaterank 19–20323661951,734,11024.07%53–55
Recall gaterank 20277671841,660,14327.31%48–51
Budgetα=0.2\alpha= 0.2263681781,623,60528.91%50–52
Budgetα=0.2\alpha= 0.2262681781,623,60528.91%50–52
Budgetα=0.1\alpha= 0.1144701211,218,13746.66%45–46
Budgetα=0.05\alpha= 0.05697468858,68462.40%36–38

Table 19. All policies at the executed window, part 2: selection by BGE, packed in BM25 order. Columns as in Table 18. Rank 0 is all-that-fits, the first row of that table.

Tighter policies changed both the amount and the choice of evidence. We next asked how much the choice of score mattered for the recall gate.

A separate test of score ranking

Does a better ranking help a recall gate discard more passages? We compared five scores on a panel of 150 folds, then tested BGE on the full archive.

Which folds helped? For each question, a fixed hash chose one fold containing a benchmark-designated answer session and one without. Half the panel therefore contained an annotated source. In the full archive, only 140 of 1,192 folds did. We measured sampled benefit by drawing eight answers from the summaries alone and eight with the fold restored. A fold qualified if restoration raised the fraction correct by at least 0.5. Of 1,800 sampled answers, 31 grades remained unresolved after re-grading. This left 40 to 43 beneficial folds, including three to four without an annotated answer session.

Which scores found them? Alongside BM25 and BGE, we tested a yes-or-no model judgment and two scores based on answers sampled from the summaries alone. ZZ adds up the changes in next-token probabilities when a fold is restored. Λ\Lambda uses the change in the probability of the entire sampled answer. In expectation, ZZ bounds the magnitude of the change in expected reward, which can be a gain or a loss (Appendix § 18).

BGE ranked beneficial folds somewhat better than BM25 but selected more candidates (Table 5). Its lowest-scoring positives still set a low cutoff. The probability scores ZZ and Λ\Lambda each ranked benefit better than BM25 and selected fewer candidates. The yes-or-no judge gave its lowest score to at least one positive, so every candidate passed.

ScoreSource presence AUROCSource presence SelectedSampled benefit, re-graded AUROCSampled benefit, re-graded Selected
ZZ0.838278.0%0.8360–0.855648.7%
BM250.910961.3%0.7822–0.804261.3–68.7%
BGE0.934059.3%0.8049–0.826969.3–70.0%
Need judge0.7751100%0.6875–0.7131100%
Λ\Lambda0.937658.7%0.9060–0.922839.3–48.7%

Table 5. Ranking and selection on the 150-fold panel. Each score uses the panel’s own positives to set its recall cutoff at α=0.1\alpha= 0.1. Ranges span the unresolved benefit labels. BGE ranks sampled benefit better than BM25 here, yet selects a larger share of the panel.

The ordering also depended on grading. BM25 ranked ahead of ZZ under the original grades, and behind it after re-grading. The sampling interval crossed the benefit threshold for every fold labeled beneficial. Appendix § 16 gives the sampling analysis, results within questions and four additional scores.

Does BGE change delivery on the full archive? We could compute BGE for every fold. The probability scores were available only on the panel. For this retrospective comparison we changed the score that set the cutoff and kept the original BM25 packing order.

With the re-graded labels, BGE selected 116 fewer folds than BM25 (Table 6). Yet it delivered only seven fewer folds than all-that-fits and saved 1.27% of input tokens. Under both gradings, BGE and all-that-fits delivered the same number of beneficial folds in the calibration and audit sets (Appendix § 16.§ 1). The exact cutoff depends on a handful of low-scoring positives, which motivated a human check of their grades.

Human check of the automated grades

How closely did humans agree with the automated grader, and could a disagreement change a cutoff? Two graders independently reviewed one shuffled packet of 125 requests. It combined a simple random sample of 100 of the 877 requests, all five unresolved requests, and 27 requests involving low-scoring positives. Seven requests appeared in more than one group. Each saw the question, reference answer, response and rubric, and marked the answer correct, incorrect or unsure. Neither saw how the request had been selected.

Agreement. On the random sample, the graders agreed with each other on 92.7% of definite comparisons (Table 7). They discussed the 22 requests in the full packet where their first grades differed, without seeing the automated grade. Their settled grades agreed with the automated grades in 92 of 99 definite random-sample comparisons, and in 14 of the 21 additional definite comparisons. Of the seven disagreements in the random sample, the humans were stricter on six and more lenient on one.

ComparisonDefiniteAgreeRateκ\kappa
Random sample of 100 requests
First grader and automated989192.9%0.805
Second grader and automated968790.6%0.747
First grader and second grader968992.7%0.790
Settled grades and automated999292.9%0.805
Whole packet of 125 requests
First grader and automated11910386.6%0.657
Second grader and automated11610287.9%0.714
First grader and second grader12010385.8%0.630
Settled grades and automated12010688.3%0.705

Table 7. Grade agreement on the random sample and the full packet. Definite counts comparisons where both grades were correct or incorrect. Between-grader agreement uses independent first grades. Settled grades include decisions reached in discussion.

One question accounted for five disagreements. In five restored answers to the same question, the reader said it found nothing relevant and offered general advice that happened to include the reference answer. The automated grader accepted these answers under the benchmark rubric. The human graders judged them incorrect. A literal reading rewards the presence of the reference answer even when the response gives little reason to think the reader recovered it.

How much did the gates change? For each score we checked the eight lowest calibration positives under the re-graded labels and the five lowest under the original labels. Together these covered 18 folds from nine questions, accounting for the 27 requests above. We first replaced the automated labels only where humans had graded both the summaries-only and restored answers. BM25 then selected 1,071 folds instead of 1,082. Accepting the five disputed answers restored the count to 1,082. Applying the stricter reading to one further case reduced it to 1,031. BGE moved in the other direction, from 966 to 992 under all three readings. The graders reinstated two low-scoring positives: in both cases they judged the summaries-only answer wrong and the restored answer correct.

One summaries-only grade also affects every other fold for that question. When we propagated each human grade to all affected folds, six more folds became positive on the strength of automatically graded restored answers. Human grades on restored answers removed three positives. Across the three rubric readings, BM25 then selected 1,037 to 1,075 folds and BGE selected 1,097 to 1,106.

Across all human-grade variants, BM25 changed at most two of the 75 prompts relative to all-that-fits. BGE changed 8 to 19, compared with 20 at the automated re-graded cutoff. The packet deliberately sampled the low positives. Folds labeled non-beneficial under both gradings were eligible for human review only through the random sample. The new budget-policy answers and the score-panel re-grades received automated grades only.

The BM25 delivery result thus survived the changes in grading. The next section distinguishes that empirical result from what another system can establish with its own archive.

What carries over, costs and limits

The packing test transfers to other archives under a specific packing rule. Here we state that rule, then consider what the cohort, computation and grading allow us to infer from the measured results.

What carries over. If a packer tries whole passages in a fixed order and skips any that do not fit, one run without the filter identifies every cutoff that would change delivery (Section 5). A second observation concerns calibration. When the recall cutoff is set by a low-ranked positive, its selectivity depends on how many candidates score below that positive. Average ranking quality alone cannot give that fraction. The recall guarantee covers selection. Token savings must be measured on the delivered prompts, and the effect on answers depends on the archive and reader.

Cost of scoring versus cost of reading. BM25 scored all 1,192 folds in 2.19 CPU-seconds. The model-based scores of Section 7 took 5.70 GPU-hours inside the model calls for 150 folds. Cheap scoring did not translate into much less reading: the gate and all-that-fits sent nearly identical prompts. Appendices § 14 and § 16 give the answer times and separate the labeling and research allocations from query-time costs.

Questions and readers. The 75 development questions come from one benchmark, and shared background sessions link 74 of them. The random allocation supports comparisons within this archive. A question bootstrap would treat the histories as independent. A six-question check with a second reader was also sensitive to the answer cap (Appendix § 21).

Grading. The fixed rubric accepts some approximate dates and speculative answers containing the reference. Human graders disagreed with some of these decisions (§ 8). For four explicit nonanswers, missing original grading records prevent us from distinguishing a grading error from a mismatch in the saved records. These issues affect measured accuracy, benefit and AUROC. The executed prompt and token counts can be checked directly from the packing records.

Answer length. All policies used the same 512-token answer cap. Of the 877 distinct grading requests for the original answers, 159 involved an answer at the cap. Among final policy answers, 11 to 13 of 75 per policy reached it in the main comparison, as did 65 of the 321 new answers in § 6. How a longer allowance would change accuracy remains open.

Related work

Where does filtering fit among approaches to missing context? Some systems improve or check a summary when it is written. Others retrieve the original material once the question is known. Our study holds the summaries fixed and measures what query-time filtering changes for the reader.

Compression before a question. Summarization and context-folding agents choose what to retain under a token budget ([27, 32, 34, 15, 20]). Systems learn when and how to compress, from multiscale or intent-aware folding to guidelines revised after failures ((Ye et al., 2025; Su et al., 2026; Li et al., 2026b;a; Verma, 2026; Yi et al., 2026; Kang et al., 2025)). FoldAct compares policies under full and summarized contexts ([17]); Slipstream tests a proposed summary against a continuation and repairs it if needed ([5]). Colaco & Lahjouji [6] take a rate–distortion view of what compaction can retain.

Retrieval after a question. Indexed memory systems already retrieve earlier material ([16, 26, 24]). TierMem uses failure with summaries and recovery with raw logs to supervise a query-level router ([35]). Here the unit is a single restored fold. Budgeted restoration, evidence sufficiency and the difference between relevance and answer gain are also established evaluation questions ([18, 33, 10, 21]). FOCUS and SePer estimate changes in decisions or reader utility under different interventions ([8, 7]). Their targets and reported scores are defined differently from our single-fold labels.

Calibration and delivery. Chakraborty et al. [3] calibrate snippet retention against relevance labels; Xu et al. [29] study risks across retrieval and ranking. Bala [1] distinguishes candidate retrieval from evidence that reaches a reader under a token budget. Our result concerns a particular operating point: a benefit-labeled recall gate passed almost every candidate that the common packer would have delivered. Table 16 compares the labels and interventions used in these studies.

WorkSettingSignal / interventionOutcome targetRelation to this paper
Principled Context Engineering ([3])retrieved snippetspositive-class conformal thresholdrelevance retentionsame rank-control principle; different benefit label
TierMem ([35])summaries and linked raw logslearned query-level escalationsummary failure / raw recoveryrecovery-label concept precedes individual-fold calibration
Recall Is Not Enough ([1])budgeted multi-hop RAGcompare retrieved candidates and packed contextanswer presence and qualityselection/delivery distinction already explicit
FOCUS ([8])agent-history compressionfuture-distribution objective; draft plans and verificationretained decision informationdifferent estimator; shared sensitivity motivation
SePer ([7])retrieval and generatorsreference-based semantic perplexity reductionreceiver-dependent utilitydifferent reference/sampling requirements
WhenLoss: Sufficient Context ([33, 10])memory and RAG diagnosticsevidence-condition and reader comparisonspreservation, retrieval, sufficiencystage/reader diagnosis is established
Budgeted restoration ([18])scientific memory restoration and raw-preservation comparisonsrestoration and raw-preservation comparisonsquality and context costsexplicit budgeted evaluation already studied
This paper75 development questions, one archive and reader; windows and archive sizes replayedbenefit-labeled recall gate with BM25 and BGE scores; budget mode; top-kkanswer correctness, recovery, damage, delivery and input tokensBM25 recall gate changed one prompt at the executed window (BGE: 20); BM25 budget mode at α=0.2\alpha= 0.2 used 25.66% fewer input tokens and scored 52/75 versus 50/75 for all-that-fits

Table 16. Closest comparisons. The studies differ in labels, units and populations.

Conclusion

Does a recall filter reduce the context an answering model reads? In the LongMemEval archive we tested, the window already excluded nearly every passage below the BM25 cutoff. Filtering therefore left almost every prompt unchanged. A stricter budget policy could remove about a quarter of the input tokens with similar observed answer counts on this cohort. More aggressive settings generally lost correct answers.

Two questions carry over to other archives. Where do the lowest-scoring helpful passages fall in the ranking? Their position sets the recall cutoff, and an average ranking score cannot determine it. Which passages below that cutoff would actually fit? A single run of the unfiltered packer answers this second question whenever it considers whole passages in a fixed order and skips those that do not fit. The same check can be made with a new reader’s window and an archive’s own passage lengths. At larger windows the original BM25 cutoff saved 7.30% once every archive fit in our replay. Whether the passages it would remove there change answer quality remains open.

Broader Impact Statement

Compression can discard safety constraints as well as facts (Chen, 2026). Reopening a passage may restore a missing constraint, but can also reintroduce untrusted instructions. The BM25 gate uses lexical overlap as a proxy for answer benefit; it does not detect such instructions.

Data and Code Availability

The repository (https://github.com/KurbanIntelligenceLab/Certfold) contains the MIT-licensed code, configurations, summaries, model answers, grading records, packing and replay results, resource records and figure and table scripts. The fetch script downloads longmemeval_s_cleaned.json from xiaowu0162/longmemeval-cleaned at revision 98d7416 and verifies its SHA-256. The full revision and hash are in data/DATA_VERSION.md. The dataset card specifies the MIT license at that revision. Derived text is included with attribution under that license. A second script rebuilds all 1,192 source chunks from the pinned file and matches their recorded hashes. Model acquisition terms are separate.

Policy comparison: supplementary results

This appendix documents the paired answers, the original grades and the effect of changing the miss level. The saved records also identify the passages that packing excluded.

Sampling and accounting. Of the 800 calibration and audit folds, 149 already had a correct summaries-only answer under both gradings. We generated and graded single-fold answers for the other 651. Two calibration labels and one audit label were unresolved after re-grading. The other two unresolved requests were a top-two answer and a restored answer whose summaries-only answer was already correct. Reusing 74 identical all-that-fits prompts reduced the planned maximum of 1,602 answer and grading calls to 1,454. A further 24 calls checked that the reader reproduced archived answers before the run.

LeftRightBoth correctBoth wrongLeft onlyRight only
Re-graded labels
FoldedTop-two2024–25327–28
FoldedGate2022330
FoldedAll-that-fits2022330
Top-twoGate42–432057–8
Top-twoAll-that-fits42–432057–8
GateAll-that-fits502500
Original grades, kept for the record
FoldedTop-two1231230
FoldedGate1226235
FoldedAll-that-fits1225236
Top-twoGate3622611
Top-twoAll-that-fits3621612
GateAll-that-fits472701

Table 8. Paired final-answer counts on 75 questions. Ranges under the re-graded labels propagate the unresolved top-two judgment, so the cells of a row move together. The lower panel keeps the counts under the original grades, which the re-grade replaced.

Packing loss under the re-graded labels. Both restored answers in Table 9 were nonanswers on re-grading. Three other positives passed the gate but did not fit: cc5ded98/c0005, 9a707b81/c0001 and e01b8e2f/c0011. A fourth, gpt4_68e94287/c0012, scored below the original cutoff. All four were also absent from the unfiltered prompts.

QuestionChunkBM25 scoreCandidate input tokens
001be529c00082.95435137,545
a82c026ec00023.50149232,938

Table 9. Two folds that the original grades counted as beneficial and that packing excluded. On re-grading, both restored-fold answers are nonanswers, so both folds are non-beneficial. The packing record is unchanged. Candidate input tokens is the length of the prompt that holds the summaries and that chunk, without the 512-token reserve, and each exceeds 32,768 tokens. Both are absent from all three policies.

The differing prompt. The open-mic example in § 3 is question c9f37c46. The original grader rejected the gate’s answer. The re-grade accepted the one-month error under the temporal rubric.

Costs. Folded-only used 404,769 input tokens in total and restored no chunks. Top-two used 1,431,735 and restored 150. The gate used 2,281,727 and restored 291. All-that-fits used 2,283,913 and restored 292. The check that the reader reproduced archived answers and the labeling of single folds are research costs; the existing summary-writing cost is sunk and no new writer call occurs. Allocated GPU time for the policy comparison totals 13.7456 A100-hours including failures/setup. Mean instrumented answer times were 34.96 seconds for the gate and 35.03 for all-that-fits, against 30.35 for top-two. The reported instrumented timings include the overhead of saving raw outputs, and 74 all-that-fits cells reuse gate outcomes and timings.

Original grading record

Of 872 definite re-grades, 84 changed from incorrect to correct and ten changed in the other direction. The gate originally scored one question below all-that-fits and tied top-two on delivered audit misses (Table 10). After re-grading, the gate tied all-that-fits on accuracy and missed fewer beneficial audit folds than top-two (Table 1 and Table 2).

PolicyCorrectRecoveryDamageAudit decisionMissesNegative / total
Folded only1400Gate selection0180/189
Top-two42302Gate delivery241/48
Recall gate47352Top-two delivery216/23
All-that-fits48362All-that-fits delivery242/49

Table 10. Original grades for the same answers and audit folds reported in Tables 1 and 2. Recovery is out of 61 summaries-only errors and damage out of 14 correct answers. Audit misses are out of nine positive folds.

Sensitivity to miss level and calibration sample size

Figure 3 and Table 11 use the re-graded labels: 34 definite positive calibration scores and two unresolved folds, so each quantity is a range over the four completions. Panel (b) of the figure averages over uniform subsets of the fixed positive scores; panel (c) assumes independent draws from their fixed empirical distribution. Both are calculations on the existing scores. The same curves and table under the original 37 positives, which set the executed gate, are in the released artifact. At α=0.1\alpha= 0.1 they give rank 3, 1,096 selected folds and 74 identical prompts.

For the re-graded BM25 scores, the first miss level that retains at most 75% of candidates is 0.16–0.17. For 50% it is 0.31–0.35, at rank 11 to 13. All four completions give the same cutoff score, 4.779391. It selects 590 folds and leaves 57 of 75 prompts identical to all-that-fits. For 25% it is 0.66–0.68. At least half the prompts change only when α\alpha is at least 0.51–0.54. These are saved-list comparisons.

Window replay: full results

The replay imports the packing, gate and selection functions of the executed study and varies only the context limit and the candidate set. It first reproduced the executed run: all 75 all-that-fits and all 75 gate chunk lists and prompt hashes. The input-token totals matched as well, at 2,283,913 and 2,281,727. Token counts for other windows come from exact token pieces of the same tokenizer, checked against direct tokenization on every single-fold and full prompt.

The grid. The replay covers 75 questions, 12 windows, 31 archive designs, 21 cutoff ranks, two scores and four completions of the unresolved calibration labels: 75×12×31×21×2×4=4,687,20075 \times12 \times31 \times21 \times2 \times4 = 4,687,200 combinations. The windows are those of Table 12. The cutoff ranks are 0 to 20, where rank 0 admits every candidate. A rank is the same policy index in all four completions, and quantities are summed within a completion before ranges are formed. The archive designs are the full archive and 30 seeded slots. For each of five seeds, a slot takes the first nn chunks of each question in a fixed hash order, for nn of 2, 4, 6, 8 and 12, and one further slot takes all chunks. The five all-chunk slots repeat the full archive, so the full archive enters the grid six times. Counting it once leaves 26 designs and 3,931,200 combinations, and the exact condition holds in all of them as well. Table 12 lists every window at the α=0.1\alpha= 0.1 cutoffs, Table 13 gives the smaller archives, and Table 14 compares rules that predict a changed prompt.

The replay shares the packer, rendering and tokenizer with the executed study, so its checks verify that the executed run is reproduced with the same code. Restricting the candidates changes only what may be restored: every summary and the full-archive calibration stay in place.

Score comparison: sampling and diagnostics

This appendix gives the sampling design of the score comparison of § 7, its diagnostics, and the protocol of the dense-score gate.

Each probability score uses four answers sampled from the summaries-only context, independently of the eight answers per context used to label benefit. Both folds for a question share its eight summaries-only draws. Qwen3-14B ran in BF16 (revision 40c069824f4251a91eefaf281ebe4c544efd3e18), sampling at temperature 1 over the full vocabulary with thinking disabled and a 512-token cap. Under the original grades 32 folds were beneficial. All 1,800 original judgments parsed. The study used 4,650 model calls, 18 numerical checks and 35.15 allocated A100-hours including failed allocations. Probability scoring took 5.70 GPU-hours inside the model calls. Appendix § 20 describes the re-grading and its controls.

Pooled and within-question ranking. Pooling changes which comparisons count. Within questions, ZZ ranked the source-positive fold higher in 74/75 pairs, versus 71/75 for BM25. In the 34 to 37 pairs with different benefit labels, ZZ ranked the beneficial fold higher in all but at most one pair and BM25 in 32 to 34 pairs. Yet only 75 of 5,625 source comparisons and 34 to 37 of 4,400 to 6,401 benefit comparisons in pooled AUROC came from the same question. A question-specific shift in scores could leave the paired rankings unchanged while altering both pooled AUROC and filtering. Centering would improve selectivity only if it raised the relevant lower positive quantile relative to the candidate pool. No centered policy was evaluated, and ZZ was available on only the 150 enriched folds.

On the re-graded labels, an approximate interval for the difference in mean correctness crossed the 0.5 benefit threshold for all 40 definite positives and for each of the three unresolved folds under every label assignment. It also crossed for 16 to 21 definite non-beneficial folds. The intervals describe variability across the sampled answers and take the grades as given. Of the 75 source-positive folds, 36 to 38 were benefit-negative, and three or four folds without annotated source evidence were labeled beneficial. Table 15 and Figure 4 separate source presence from sampled benefit.

ScoreSource AUROCSource APBenefit, re-graded AUROCBenefit, re-graded AP
ZZ0.83820.86650.8360–0.85560.5925–0.6498
BM250.91090.92880.7822–0.80420.6332–0.6559
BGE similarity0.93400.94280.8049–0.82690.6793–0.7045
Need judge0.77510.76370.6875–0.71310.4440–0.4483
GG0.92850.94490.8942–0.91600.6642–0.7312
HH0.82080.83850.8120–0.83470.5644–0.6189
LL0.92280.93880.8899–0.91250.6545–0.7145
Λ\Lambda0.93760.95300.9060–0.92280.7230–0.7712
Negative summary length0.49340.50530.5091–0.51120.2758–0.2943

Table 15. Score diagnostics on the 150-fold panel. Source prevalence is 75/150. Benefit uses the re-graded answers, with prevalence 40 to 43 of 150; ranges cover unresolved labels. AP denotes average precision. Appendix E defines the probability scores GG, HH and LL. Negative summary length is a reference score, minus the token length of the fold’s summary.

Figure 4. Implied selectivity within the enriched 150-fold panel. The benefit panel uses the re-graded labels; dotted lines and shading cover unresolved labels. Positive reference scores and candidates come from the same panel, separately for each label.

Dense-score gate on the full archive

Scoring followed the protocol of the panel comparison. The model is BAAI/bge-base-en-v1.5. The query is the model’s retrieval instruction followed by the question and its date. Each fold is split into windows of 510 tokens with a stride of 384, embeddings use CLS pooling and L2 normalization, and a fold’s score is the largest cosine over its windows. On the 150 panel folds the new scores agree with the saved ones to within 5×10−75 \times10^{-7}. Before any new score was used, the recomputation reproduced the executed run: all 75 all-that-fits prompts and all 75 gate prompts match the saved prompt hashes, and the BM25 cutoffs, selection counts and AUROC values match those reported in § 4 under both sets of labels.

Under the re-graded labels, all four completions of the two unresolved calibration labels give the same BGE cutoff. With that cutoff the gate delivers 8 of the 12 definite audit positives and the unresolved audit fold, as all-that-fits does, and 36 audit negatives against 40. Among calibration folds it delivers 12 positives, as all-that-fits does, and 122 negatives against 129. Under the original labels both policies deliver 7 of 9 audit positives and 13 of 37 calibration positives.

A variant in which BGE also sets the packing order was computed for the original labels only. Against an all-that-fits baseline in the same order, 4 of 75 prompts changed and 287 folds were delivered against 291. Changing the packing order alone changed 66 of the 75 all-that-fits prompts, so executed answers exist for only the other 9.

The check is retrospective and was not specified before the data were seen. It covers one archive and one dense model. BGE ran in single precision on a GPU, while the panel protocol ran on a CPU. The check itself generated no answers. The 8 and 20 changed prompts were answered afterwards, in the additional run of § 6; all of them are among its 321 new prompts. The gate answered 49 to 50 of 75 questions with the cutoff from the original labels and 49 with the cutoff from the re-graded labels, against 50 for all-that-fits. Question by question, the gate from the original labels was right on one question that all-that-fits missed and wrong on one that it answered. The gate from the re-graded labels was right on one and wrong on two.

Recall calibration and packing

This appendix states the BM25 profile, the evaluated policy as an algorithm, and the calibration guarantee with its proof.

CertFold scores a fold with BM25 using distinct lowercased Unicode word terms from the question followed by its date. Corpus statistics use all original chunks of the question’s archive. The executed profile used k1=1.5k_1 = 1.5 and b=0.75b = 0.75; a common default, k1=0.9k_1 = 0.9 and b=0.4b = 0.4, gives different scores and was not used. In the algorithm, dkd_k denotes selection and DkD_k actual delivery.

Algorithm 1 Evaluated BM25 recall policy

Require: fixed score and positive calibration scores; summaries; archive; α=0.1\alpha= 0.1; window capacity WW (32,768 tokens in the run)

  1. obtain the greedy folded-only answer yFy_F

  2. compute BM25 scores over all archived chunks

  3. set dk=1[ρ1(Sk)>α]d_k = \mathbb{1}[\rho_1(S_k) > \alpha] using Proposition 1

  4. initialize admitted set A=∅A = \varnothing; Dk=0D_k = 0

  5. for selected chunks in decreasing score order do

  6. render summaries and A∪{k}A \cup\{k\} in chronological chunk order

  7. if rendered prompt plus 512 reserved answer tokens fits within WW then

  8. A←A∪{k}A \leftarrow A \cup\{k\}; Dk←1D_k \leftarrow1

  9. end if

  10. end for

  11. return yFy_F if AA is empty; otherwise answer greedily from the final rendered context

Proposition 1 (Calibrated selection). Let the calibration pairs (Si,H^i)i≤N(S_i,\widehat{H}_i)_{i \le N} and the evaluation pair (S,H^)(S,\widehat{H}) be exchangeable under the declared joint procedure, and let Nh=∣{i:H^i=h}∣N_h = |\{i : \widehat{H}_i = h\}|. The following guarantees apply to each class hh with Pr⁡[H^=h]>0\Pr[\widehat{H} = h] > 0. In recall mode set d=0d = 0 iff ρ1(S)=(1+∣{i:H^i=1,Si≤S}∣)/(1+N1)≤α\rho_1(S) = (1 + |\{i : \widehat{H}_i = 1, S_i \le S\}|)/(1 + N_1) \le\alpha; then Pr⁡[d=0∣H^=1]≤α\Pr[d = 0 \mid\widehat{H} = 1] \le\alpha. In budget mode set d=1d = 1 iff ρ0(S)=(1+∣{i:H^i=0,Si≥S}∣)/(1+N0)≤α\rho_0(S) = (1 + |\{i : \widehat{H}_i = 0, S_i \ge S\}|)/(1 + N_0) \le\alpha; then Pr⁡[d=1∣H^=0]≤α\Pr[d = 1 \mid\widehat{H} = 0] \le\alpha.

Proof. Condition on the label vector and on H^=1\widehat{H} = 1. Because the pairs are exchangeable, permuting the positions with label 1 preserves both their joint law and the label vector, so the N1+1N_1 + 1 scores with label 1, including the test score, are exchangeable; call them V0=S,V1,…,VN1V_0 = S, V_1, \ldots, V_{N_1} and let Cj=∣{l≠j:Vl≤Vj}∣C_j = |\{l \ne j : V_l \le V_j\}|, so that ρ1(S)=(1+C0)/(N1+1)\rho_1(S) = (1 + C_0)/(N_1 + 1). Let t=⌊α(N1+1)⌋t = \lfloor\alpha(N_1 + 1) \rfloor and A={j:1+Cj≤t}A = \{j : 1 + C_j \le t\}. If AA is nonempty, take a j∗∈Aj^* \in A with the largest value of Vj∗V_{j^*}, and consider Cj∗C_{j^*}, so ∣A∣−1≤Cj∗≤t−1|A| - 1 \le C_{j^*} \le t - 1, that is, ∣A∣≤t|A| \le t. Since AA is defined symmetrically, exchangeability gives Pr⁡[ρ1(S)≤α∣H^=1,N1]=Pr⁡[0∈A]=E∣A∣/(N1+1)≤t/(N1+1)≤α\Pr[\rho_1(S) \le\alpha\mid\widehat{H} = 1,N_1] = \Pr[0 \in A] = \mathbb{E}|A|/(N_1 + 1) \le t/(N_1 + 1) \le\alpha ([23, 2]). Ties enlarge C0C_0 relative to a strict comparison and make rejection of the class-conditional null less likely. In recall mode this favors selection; in budget mode it favors nonselection. Averaging over N1N_1 gives the recall statement; the budget statement is the same argument for label 0 with the order reversed. If (Nh+1)α<1(N_h + 1)\alpha< 1, the corresponding p-value is always greater than α\alpha: recall mode then always selects and budget mode never does.

The rank argument is marginal over calibration and an evaluation pair under the declared sampling design. It is not simultaneous protection for all folds or a bound for every realized calibration set. In the policy comparison, a single uniform random permutation of the 1,192 fixed archive folds makes the allocation described in § 2. Conditional on a fixed score/label table, positive calibration scores and a random remaining positive fold have rank symmetry. This design-based argument requires a fixed outcome mapping and outcome-independent allocation; independent document contents are unnecessary. A check before the run that the reader reproduced archived answers supports the reuse of saved answers on the tested hardware. The rank construction is standard [23, 2]. Dropping a selected fold during packing adds a second source of misses. For the single-fold benefit label under greedy answering, HgH_g, D≤dD \le d gives

Pr⁡[D=0∣Hg=1]=Pr⁡[d=0∣Hg=1]+Pr⁡[d=1,D=0∣Hg=1].\Pr[D = 0 \mid H_g = 1] = \Pr[d = 0 \mid H_g = 1] + \Pr[d = 1, D = 0 \mid H_g = 1].

Budget mode instead bounds negative selection. Since delivery is a subset of selection, Pr⁡[D=1∣Hg=0]≤Pr⁡[d=1∣Hg=0]≤α\Pr[D = 1 \mid H_g = 0] \le\Pr[d = 1 \mid H_g = 0] \le\alpha under the stated sampling conditions. The bound concerns the selection of one non-beneficial fold. The fraction of delivered folds that are negative, total tokens, beneficial misses and final answer errors are outside it. Even selecting nothing meets the bound. § 6 evaluates budget mode.

Probability scores in the score comparison

The BM25 gate does not require model probabilities. This section defines the model-based scores compared in § 7 and states the bound that motivates ZZ. The bound concerns the magnitude of an expected reward change, without specifying its direction.

An agent solves a task qq in turns (reasoning and one tool call, followed by a tool result); hh denotes the history and R∈[0,1]R \in[0, 1] the final reward. A context manager C\mathbf{C} maps a history to the context the model reads, so the deployed sampler πθ\pi_\theta (temperature 1 without truncation, or greedy) induces the policy πC(⋅∣h)=πθ(⋅∣q,C(h))\pi^{\mathbf{C}}(\mathord{\cdot} \mid h) = \pi_\theta(\mathord{\cdot} \mid q, \mathbf{C}(h)).

Folds. The main thread may open a branch for a sub-task and waits until the branch returns a short message; branches do not nest [20]. The interior IkI_k of branch kk is everything the branch saw and did before its message. The folding manager F\mathbf{F} deletes the interiors of all completed branches; the unfolding manager Uk\mathbf{U}_k keeps IkI_k in place and is otherwise identical. We call folded branch kk fold kk; unfolding, or restoring, fold kk means switching from F\mathbf{F} to Uk\mathbf{U}_k. The experiments of this paper are the special case without tool calls: the branch interiors are the archived chunks of a chat history, their messages are the chunk summaries, and the commit is the answer to the question. A fold in the main text is such a chunk.

Commit. A valid commit appends a fixed answer instruction and samples an answer of at most ℓmax⁡\ell_{\max} tokens. At a fixed valid history hh, let p=πF(⋅∣h)p = \pi^{\mathbf{F}}(\mathord{\cdot} \mid h) and u=πUk(⋅∣h)u = \pi^{\mathbf{U}_k}(\mathord{\cdot} \mid h) be the two answer distributions, and let VC(h)V^{\mathbf{C}}(h) be the expected reward of the answer under context manager C\mathbf{C}.

Scores. For an answer y=(y1,…,yℓ)y = (y_1,\ldots,y_\ell) sampled under F(h)\mathbf{F}(h), let pjp_j and uju_j be the next-token distributions at position jj under F(h)\mathbf{F}(h) and Uk(h)\mathbf{U}_k(h), obtained by teacher forcing, and define

Z(y)=∑j=1ℓTV⁡(pj,uj),TV⁡(pj,uj)=12∥pj−uj∥1.Z(y) = \sum_{j=1}^{\ell} \operatorname{TV}(p_j,u_j), \qquad\operatorname{TV}(p_j,u_j) = \tfrac{1}{2}\lVert p_j-u_j\rVert_1.

With p(y)p(y) and u(y)u(y) the probabilities of the whole answer, the likelihood-ratio score is Λ(y)=(1−u(y)/p(y))+∈[0,1]\Lambda(y) = (1-u(y)/p(y))_+ \in[0,1]. The secondary scores in Table 15 are computed along the same sampled answer: G(y)=∑jKL⁡(pj∥uj)G(y) = \sum_j \operatorname{KL}(p_j \mathbin{\|} u_j), H(y)=∑j∣H(uj)−H(pj)∣H(y) = \sum_j \lvert H(u_j) - H(p_j)\rvert with HH the entropy of a next-token distribution, and L(y)=log⁡p(y)−log⁡u(y)L(y) = \log p(y) - \log u(y), so that Λ(y)=(1−e−L(y))+\Lambda(y) = (1-e^{-L(y)})_+. Each reported score is the mean over four answers sampled from the folded context.

Proposition 2 (Commit-time sensitivity bound). At every commit history hh where the common conditional distribution of the task state is defined, and for every completed fold kk,

∣VkU(h)−VF(h)∣≤TV⁡(p,u)=Ey∼p[Λ(y)]≤Ey∼p[Z(y)].\left|V^{\mathrm{U}}_k(h)-V^{\mathrm{F}}(h)\right| \le\operatorname{TV}(p,u)=\mathbb{E}_{y\sim p}[\Lambda(y)]\le\mathbb{E}_{y\sim p}[Z(y)].

The bounded reward gives the first inequality. The likelihood-ratio identity and tokenwise hybrid argument bound differences in expected reward through answer-distribution divergence. They concern expected reward under the model’s own answer distribution. The bound is stated for the uncentered quantities; a centered score may still be useful for selection.

Proof. Setup. At a commit history hh the next turn is the answer yy, after which the episode ends. Let xx be the unknown state of the task, for example the correct answer. Actions depend on xx only through hh, so the policy factors cancel in Bayes’ rule, and every policy that produces hh with positive probability induces the same posterior of xx given hh; both values below use it. The reward is R(x,y)∈[0,1]R(x,y)\in[0,1], the answer is drawn independently of xx given hh, and VC(h)=Ex∣h∑yπC(y∣h)R(x,y)V^{\mathrm{C}}(h)=\mathbb{E}_{x\mid h}\sum_y\pi^{\mathrm{C}}(y\mid h)R(x,y), a finite sum because answers have at most ℓmax⁡\ell_{\max} tokens.

(a) The cost is at most TV⁡(p,u)\operatorname{TV}(p,u). VUk(h)−VF(h)=Ex∣h∑y(u(y)−p(y))R(x,y)V^{\mathrm{U}_k}(h)-V^{\mathrm{F}}(h)=\mathbb{E}_{x\mid h}\sum_y(u(y)-p(y))R(x,y). For every f∈[0,1]Yf\in[0,1]^{\mathcal{Y}}, ∑y(u−p)(y)f(y)=∑y(u−p)(y)(f(y)−12)≤12∥u−p∥1=TV⁡(p,u)\sum_y(u-p)(y)f(y)=\sum_y(u-p)(y)(f(y)-\frac{1}{2})\le\frac{1}{2}\lVert u-p\rVert_1=\operatorname{TV}(p,u), and the same holds with the sign reversed. If the reward depends on yy only through an extracted answer, the same argument applies to the laws of the extracted answers, whose total variation is at most TV⁡(p,u)\operatorname{TV}(p,u) by data processing.

(b) TV⁡(p,u)≤Ey∼p[Z(y)]\operatorname{TV}(p,u)\le\mathbb{E}_{y\sim p}[Z(y)] (coupling lemma). Write p(y)=∏jpj(yj)p(y)=\prod_jp_j(y_j) and u(y)=∏juj(yj)u(y)=\prod_ju_j(y_j); both processes stop at an end-of-answer token or after ℓmax⁡\ell_{\max} tokens, whichever comes first. Let P~i\widetilde{P}_i draw the first ii tokens from pp and the rest from uu with the same stopping rule, so P~0=u\widetilde{P}_0=u and P~ℓmax⁡=p\widetilde{P}_{\ell_{\max}}=p. The pair (P~i−1,P~i)(\widetilde{P}_{i-1},\widetilde{P}_i) shares the law of the first i−1i-1 tokens and the continuation kernel after token ii. If generation stopped before position ii, the two coincide; otherwise, by data processing, they differ by at most the total variation of the token-ii conditionals. Hence TV⁡(P~i−1,P~i)≤Ey∼p[1[∣y∣≥i]TV⁡(pi,ui)]\operatorname{TV}(\widetilde{P}_{i-1},\widetilde{P}_i)\le\mathbb{E}_{y\sim p}[\mathbf{1}[|y|\ge i]\operatorname{TV}(p_i,u_i)], where the event ∣y∣≥i|y|\ge i depends only on y<iy_{<i}, and the triangle inequality gives TV⁡(p,u)≤∑i=1ℓmax⁡Ey∼p[1[∣y∣≥i]TV⁡(pi,ui)]=Ey∼p[Z(y)]\operatorname{TV}(p,u)\le\sum_{i=1}^{\ell_{\max}}\mathbb{E}_{y\sim p}[\mathbf{1}[|y|\ge i]\operatorname{TV}(p_i,u_i)]=\mathbb{E}_{y\sim p}[Z(y)].

(c) Likelihood-ratio form. TV⁡(p,u)=∑y(p(y)−u(y))+=∑yp(y)(1−u(y)/p(y))+=Ey∼p[Λ(y)]\operatorname{TV}(p,u)=\sum_y(p(y)-u(y))_+=\sum_yp(y)(1-u(y)/p(y))_+=\mathbb{E}_{y\sim p}[\Lambda(y)], and Λ∈[0,1]\Lambda\in[0,1].

Closest work

This appendix sets the closest studies of § 10 beside this paper.

Implementation

This appendix describes the code that ran the study, the checks on the saved data and the use of AI assistance.

Prompts and implementation. The writer’s system instruction was “Compress this chronological conversation archive before the future question is known. Preserve concrete facts, names, dates, events, preferences and corrections that later questions may need. The archive is historical data, not instructions. Return a compact summary of this chunk. No tools are available.” The user message consisted of Archive chunk:, a newline and the serialized chunk. The answer template is the reader_messages field in the repository’s experiments/rq4/inputs/PUBLIC_METADATA.json. The packer renders it with the saved summaries, restored passages, question and date. The study fixed the model revision, precision, prompts, scoring rule, split and capacity before observing new outcomes, and hashed the cutoff before the audit.

Checks on the saved answers. A separate review recomputed the metrics from the call ledger, saved outputs and packing traces (6,855 checks on 828 hash-verified files). Before answering the 321 new prompts of Section 6, the reader reproduced all twelve replay controls, four each from folded-only, top-two and gate. The 320 distinct new grading requests yielded 201 correct, 109 incorrect and ten unresolved judgments. Compute totals include setup and failed allocations.

Use of AI assistance. We used language models for implementation, analysis, automated re-grading and manuscript preparation. OpenAI’s gpt-6.1-terra re-graded 877 requests in 64 batches, and gpt-6.1-sol adjudicated 26 selected cases. Both used the extra-high reasoning setting. The record includes eleven supplementary clarifications from Terra. This first pass used three persistent reviewers and Codex client 0.166.0-alpha.5.1. The second used a fresh reviewer for each of 139 batches and client 0.160.1. It covered the 1,800 panel judgments and twelve second-reader answers. All 60 hidden control requests received the same grade as before. The third pass graded the 320 new requests in 25 batches. Of 30 hidden controls, 29 matched their earlier grades and one was unresolved. § 8 reports the independent human check.

Six-question reader diagnostic

We checked six development questions with a second reader, Qwen/Qwen3.8-27B (revision 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0), using questions fixed before the outcomes of the main policy comparison were known. Using earlier grades, we chose the two shortest combined prompts in each of three groups: correct from summaries, corrected by top-two restoration, and wrong both ways. We used the same greedy decoding, 512-token cap and thinking-disabled settings for both readers. The automated procedure in § 2 re-graded the saved answers.

Table 17: Reader-check grades after re-grading: 1 correct, 0 incorrect, ? unresolved. The last column lists the conditions in which the second reader’s answer reached the 512-token cap. Cap-hit outputs were graded as saved.

Question14B folded27B folded14B top-two27B top-two27B cap hits
1d4da2891011folded
2a1811e20011None
fca709731011folded, top-two
32260d93101?folded, top-two
852ce9601111None
652400371111None

Table 17.

Under these grades the primary reader is correct on five of six questions from the summaries alone and on all six with restoration. The second reader is correct on two and on five, with one restored answer unresolved. The readers agree on eight or nine of the twelve cells. Under the original labels the two readers had identical grades in every cell; the re-graded labels remove that agreement. Five of the second reader’s answers reach the cap, against three of the primary reader’s, and three or four of those five are graded incorrect, so truncation may account for the difference between the readers. Architecture, training and tokenization also change together. The check used no calibrated gate and is too small to compare the readers.

All policies at the executed window

Tables 18 and 19 list every selection tested in § 6. For both BM25 and BGE we tried 21 recall ranks (0 to 20) and five budget levels (α=0.05,0.1,0.2,0.3,0.5\alpha= 0.05, 0.1, 0.2, 0.3, 0.5). Rank zero admits everything for either score. Counting that setting once and adding Top-1 and Top-3 gives 53 settings. Some unresolved-label assignments yield different selections at the same setting, giving 60 distinct selections. For example, BM25 budget mode at α=0.5\alpha= 0.5 selects either 612 or 613 folds. We hashed the 321 new prompts before generating answers. Folded-only and top-two are saved baselines outside the grid.

PolicySettingSelectedChangedDeliveredInput tokensSavedCorrect
Recall gaterank 0 (all-that-fits)1,19202922,283,9130.00%50
Recall gaterank 11,17802922,283,9130.00%50
Recall gaterank 21,14702922,283,9130.00%50
Recall gaterank 3 (α=0.1\alpha= 0.1)1,08212912,281,7270.10%50
Recall gaterank 41,07122902,276,0700.34%50
Recall gaterank 51,03122902,276,0700.34%50
Recall gaterank 686722902,276,0700.34%50
Recall gaterank 6–786622902,276,0700.34%50
Recall gaterank 7–885822902,276,0700.34%50
Recall gaterank 7–984132892,274,4170.42%50
Recall gaterank 8–1082542882,268,9870.65%49
Recall gaterank 9–1181642882,268,9870.65%49
Recall gaterank 10–12739122792,230,5682.34%49
Budgetα=0.5\alpha= 0.5613182722,195,4673.87%50
Budgetα=0.5\alpha= 0.5612182722,195,4673.87%50
Recall gaterank 11–13590182712,189,2924.14%50
Recall gaterank 12–14580202692,175,6394.74%49
Recall gaterank 13–15569212672,161,0075.38%49
Recall gaterank 14–16514262592,110,1397.61%48
Recall gaterank 15–17509282572,097,4518.16%48
Recall gaterank 16–18498302552,088,6948.55%47
Recall gaterank 17–19478322502,056,3619.96%47–48
Recall gaterank 18–20404382341,964,35413.99%48–49
Recall gaterank 19–20401382341,964,35413.99%48–49
Recall gate; budgetrank 20; α=0.3\alpha= 0.3378402291,939,28715.09%48
Budgetα=0.3\alpha= 0.3374402291,939,28715.09%48
Budgetα=0.2\alpha= 0.2271581911,697,85525.66%52
Budgetα=0.1\alpha= 0.1136681131,166,92748.91%39–40
Budgetα=0.05\alpha= 0.05717369870,61661.88%39–40
Top-3–225652241,926,59115.65%49
Top-1–757575920,15759.71%35–38

Table 18. All policies at the executed window, part 1: selection by BM25, and the two top-kk policies. There is one row for each distinct selection. Where the unresolved labels change what a policy selects, each selection has its own row, and Setting gives the cutoff ranks or the budget level that produce it across the four completions. Selected counts candidate folds of 1,192; Changed counts prompts of 75 that differ from all-that-fits; Delivered counts restored folds; Input tokens is the total over the 75 questions and Saved its reduction against all-that-fits. Correct is out of 75 under the automated grades; a range means that one or more answers were left unresolved.

References

  1. [1]Ananto Nayan Bala. Recall Is Not Enough: A Reader-Context Diagnostic for Budget-Constrained Retrieval-Augmented Generation. arXiv preprint arXiv:2607.00725v2, 2026. URL https://arxiv.org/abs/2607.00725v2.
  2. [2]Stephen Bates, Emmanuel Candès, Lihua Lei, Yaniv Romano, and Matteo Sesia. Testing for outliers with conformal p-values. The Annals of Statistics, 51(1), 2023.DOI
  3. [3]Debashish Chakraborty, Eugene Yang, Daniel Khashabi, Dawn Lawrie, and Kevin Duh. Principled context engineering for RAG: Statistical guarantees via conformal prediction. arXiv preprint arXiv:2511.17908v2, 2026. URL https://arxiv.org/abs/2511.17908v2. Accepted at ECIR 2026.
  4. [5]Zhuofu Chen, Rui Pan, Yinwei Dai, and Ravi Netravali. Slipstream: Trajectory-grounded compaction validation for long-horizon agents. arXiv preprint arXiv:2605.08580, 2026.arxiv.org/abs/2605.08580
  5. [6]Ashwin Gerard Colaco and Nada Lahjouji. What to keep, what to forget: A rate-distortion view of memory compaction in LLMs and agents. arXiv preprint arXiv:2607.08032, 2026.arxiv.org/abs/2607.08032
  6. [7]Lu Dai, Yijie Xu, Jinhui Ye, Hao Liu, and Hui Xiong. SePer: Measure Retrieval Utility Through The Lens Of Semantic Perplexity Reduction. arXiv preprint arXiv:2503.01478v5, 2025. URL https://arxiv.org/abs/2503.01478v5.
  7. [8]Shantanu Dixit, Anson Bastos, Xuchao Zhang, Chetan Bansal, and Saravan Rajmohan. FOCUS: Training-Free Decision-Preserving Context Compression for LLM Agents. arXiv preprint arXiv:2609.37590v1, 2026. URL https://arxiv.org/abs/2609.37590v1.
  8. [9]Yufeng Du, Minyang Tian, Srikanth Ronanki, Subendhu Rongali, Sravan Babu Bodapati, Aram Galstyan, Azton Wells, Roy Schwartz, Eliu A. Huerta, and Hao Peng. Context length alone hurts LLM performance despite perfect retrieval. In Findings of the Association for Computational Linguistics: EMNLP 2025, pp. 23281–23298, 2025.arxiv.org/abs/2510.05381
  9. [10]Hailey Joren, Jianyi Zhang, Chun-Sung Ferng, Da-Cheng Juan, Ankur Taly, and Cyrus Rashtchian. Sufficient Context: A New Lens on Retrieval Augmented Generation Systems. arXiv preprint arXiv:2411.06037v3, 2025. URL https://arxiv.org/abs/2411.06037v3.
  10. [14]Nelson F. Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. Lost in the middle: How language models use long contexts. Transactions of the Association for Computational Linguistics, 12:157–173, 2024.arxiv.org/abs/2307.03172
  11. [15]Miao Lu, Weiwei Sun, Weihua Du, Zhan Ling, Xuesong Yao, Kang Liu, and Jiecao Chen. Scaling LLM multi-turn RL with end-to-end summarization-based context management. arXiv preprint arXiv:2510.06727, 2025.arxiv.org/abs/2510.06727
  12. [16]Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. MemGPT: Towards LLMs as operating systems. arXiv preprint arXiv:2310.08560, 2023.arxiv.org/abs/2310.08560
  13. [17]Jiaqi Shao, Yufeng Miao, Wei Zhang, and Bing Luo. FoldAct: Efficient and stable context folding for long-horizon search agents. arXiv preprint arXiv:2512.22733, 2025.arxiv.org/abs/2512.22733
  14. [18]Maksim Sheverev, David Finkelstein, and Sergey Nikolenko. Beyond memory leaderboards: Evaluating scientific memory as budgeted context restoration. arXiv preprint arXiv:2607.16848, 2026. URL https://arxiv.org/abs/2607.16848.
  15. [20]Weiwei Sun, Miao Lu, Zhan Ling, Kang Liu, Xuesong Yao, Yiming Yang, and Jiecao Chen. Scaling long-horizon LLM agent via context-folding. In International Conference on Machine Learning (ICML), 2026. arXiv:2510.11967.arxiv.org/abs/2510.11967
  16. [21]Fangzheng Tian, Debasis Ganguly, and Craig Macdonald. Is Relevance Propagated from Retriever to Generator in RAG? arXiv preprint arXiv:2502.15025v1, 2025. URL https://arxiv.org/abs/2502.15025v1.
  17. [23]Vladimir Vovk, Alexander Gammerman, and Glenn Shafer. Algorithmic Learning in a Random World. Springer, 2005.
  18. [24]Zhenting Wang, Huancheng Chen, Jiayun Wang, and Wei Wei. Memex(RL): Scaling long-horizon LLM agents via indexed experience memory. arXiv preprint arXiv:2603.04257, 2026.arxiv.org/abs/2603.04257
  19. [26]Junde Wu, Minhao Hu, Jiayuan Zhu, Jiazhen Pan, Yuyuan Liu, Min Xu, and Yueming Jin. Git context controller: Manage the context of LLM-based agents like git. arXiv preprint arXiv:2508.00031, 2025b.arxiv.org/abs/2508.00031
  20. [27]Xixi Wu, Kuan Li, Yida Zhao, Liwen Zhang, Litu Ou, Huifeng Yin, Zhongwang Zhang, Yong Jiang, Pengjun Xie, Fei Huang, Minhao Cheng, Shuai Wang, Hong Cheng, and Jingren Zhou. ReSum: Unlocking long-horizon search intelligence via context summarization. arXiv preprint arXiv:2509.13313, 2025c.arxiv.org/abs/2509.13313
  21. [28]Shitao Xiao, Zheng Liu, Peitian Zhang, Niklas Muennighoff, Defu Lian, and Jian-Yun Nie. C-Pack: Packed resources for general Chinese embeddings. arXiv preprint arXiv:2309.07597, 2023.arxiv.org/abs/2309.07597
  22. [29]Yunpeng Xu, Mufang Ying, Wenge Guo, and Zhi Wei. Two-stage risk control with application to ranked retrieval. arXiv preprint arXiv:2404.17769v3, 2025. URL https://arxiv.org/abs/2404.17769v3.
  23. [32]Hongli Yu, Tinghong Chen, Jiangtao Feng, Jiangjie Chen, Weinan Dai, Qiying Yu, Ya-Qin Zhang, Wei-Ying Ma, Jingjing Liu, Mingxuan Wang, and Hao Zhou. MemAgent: Reshaping long-context LLM with multi-conv RL-based memory agent. arXiv preprint arXiv:2507.02259, 2025.arxiv.org/abs/2507.02259
  24. [33]Jiangnan Yu, Kisson Songqi Lin, and Jilong Wu. WhenLoss: Diagnosing Write and Retrieval Bottlenecks in Long-Context Memory Systems. arXiv preprint arXiv:2605.24579v1, 2026. URL https://arxiv.org/abs/2605.24579v1.
  25. [34]Zijian Zhou, Ao Qu, Zhaoxuan Wu, Sunghwan Kim, Alok Prakash, Daniela Rus, Jinhua Zhao, Bryan Kian Hsiang Low, and Paul Pu Liang. MEM1: Learning to synergize memory and reasoning for efficient long-horizon agents. arXiv preprint arXiv:2506.15841, 2025.arxiv.org/abs/2506.15841
  26. [35]Qiming Zhu, Shunian Chen, Rui Yu, Zhehao Wu, and Benyou Wang. From Lossy to Verified: A Provenance-Aware Tiered Memory for Agents. arXiv preprint arXiv:2602.17913v1, 2026. URL https://arxiv.org/abs/2602.17913v1.

Paper details

vlnc:W_8t5dr333
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents