Skip to content

Time spent on KV-cache pruning

GPT-6.2 Astra scored 84.9 points after using 21% of its time budget. DeepSeek V4.1 Flash used 83% and finished at baseline.

On this page
  1. Attempts
  2. Timeline
  3. Key decisions
  4. Run comparison
  5. Data

Attempts

29.0% of scored attempts end with more than half their time left. Within a task, the rank correlation between budget share used and score has a median of 0.39 and is positive on 41 of 45 tasks. On the KV-cache pruning task it is −0.24 (time use across all attempts).

The agent adds heavy-hitter KV-cache pruning to a frozen SGLang build. The reward is the decode speedup gained at several compression ratios, each gain floored at zero and scaled by the accuracy kept (baseline 0.0, theoretical best 5.111, budget 6 h on one GPU); validation applies the same formula with shorter contexts and lower concurrency than the hidden test. GPT-6.2 Astra’s best attempt ranked second among the 39 attempts on this task. The highest score overall was 104.2 points. Scores above 100 exceed the task’s reference speedup.

The baseline of 0.0 corresponds to 0 points. The reference value of 5.111 corresponds to 100.
ModelHarnessHidden test
(speedup reward, raw)
ScoreBudget usedOutcome
GPT-6.2 AstraCodex4.3484.921%valid submission
DeepSeek V4.1 FlashTerminus 20.00.083%valid submission
Grok 4.7Grok Build0.903317.716%valid submission

Timeline

Each attempt on the time budget

  • Reading (before the first edit)
  • Editing and short checks
  • Writing to the submission directory
  • Step over 60 s, no validation running
  • Validation in progress (step over 60 s) or in the foreground
  • Final step
  • Not in the trajectory (replaced by a summary)
  • Validation result
  • Validation run of the submitted design
  • Key decision
Each attempt on the time budgetOne track per attempt on a shared axis of time budget used; colored segments are phases, ticks are validation results, numbered circles are the key decisions listed below. Every element is in the data table.0%20%40%60%80%100%Share of time budgetGPT-6.2 Astrascore 84.9, 21% usedEVV12345DeepSeek V4.1 Flashscore 0.0, 83% usedRLREVVVVEVVVVVEVVVVV12345Grok 4.7score 17.7, 16% usedSE12345
The Grok 4.7 track starts with the part of the attempt that the harness replaced by a summary; its trajectory has no timestamps, so its times are interpolated between the agent's reads of the task timer, and its key decisions fall between 13% and 16%. Phase rules: how to read a trajectory.
View data
Each attempt on the time budget: data
TrialElementDetailStartEnd
GPT-6.2 AstraphaseReading (before the first edit)0%0%
GPT-6.2 AstraphaseEditing and short checks0%2%
GPT-6.2 AstraphaseWriting to the submission directory2%2%
GPT-6.2 AstraphaseEditing and short checks2%2%
GPT-6.2 AstraphaseWriting to the submission directory2%2%
GPT-6.2 AstraphaseEditing and short checks2%2%
GPT-6.2 AstraphaseWriting to the submission directory2%2%
GPT-6.2 AstraphaseEditing and short checks2%2%
GPT-6.2 AstraphaseWriting to the submission directory2%2%
GPT-6.2 AstraphaseEditing and short checks2%3%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground3%3%
GPT-6.2 AstraphaseEditing and short checks3%4%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground4%4%
GPT-6.2 AstraphaseEditing and short checks4%5%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground5%6%
GPT-6.2 AstraphaseEditing and short checks6%6%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground6%7%
GPT-6.2 AstraphaseEditing and short checks7%7%
GPT-6.2 AstraphaseStep over 60 s, no validation running7%7%
GPT-6.2 AstraphaseEditing and short checks7%8%
GPT-6.2 AstraphaseWriting to the submission directory8%8%
GPT-6.2 AstraphaseEditing and short checks8%9%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground9%9%
GPT-6.2 AstraphaseEditing and short checks9%10%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground10%11%
GPT-6.2 AstraphaseEditing and short checks11%11%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground11%11%
GPT-6.2 AstraphaseEditing and short checks11%12%
GPT-6.2 AstraphaseStep over 60 s, no validation running12%12%
GPT-6.2 AstraphaseEditing and short checks12%12%
GPT-6.2 AstraphaseWriting to the submission directory12%12%
GPT-6.2 AstraphaseEditing and short checks12%12%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground12%14%
GPT-6.2 AstraphaseEditing and short checks14%14%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground14%15%
GPT-6.2 AstraphaseEditing and short checks15%15%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground15%15%
GPT-6.2 AstraphaseEditing and short checks15%17%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground17%17%
GPT-6.2 AstraphaseEditing and short checks17%17%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground17%17%
GPT-6.2 AstraphaseWriting to the submission directory17%17%
GPT-6.2 AstraphaseEditing and short checks17%18%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground18%19%
GPT-6.2 AstraphaseEditing and short checks19%19%
GPT-6.2 AstraphaseValidation in progress (step over 60 s) or in the foreground19%20%
GPT-6.2 AstraphaseWriting to the submission directory20%20%
GPT-6.2 AstraphaseStep over 60 s, no validation running20%21%
GPT-6.2 AstraphaseWriting to the submission directory21%21%
GPT-6.2 AstraphaseFinal step21%21%
GPT-6.2 AstraValidation resultValidation result 0.1409 at 6%6%—
GPT-6.2 AstraValidation resultValidation result 2.171 at 11%11%—
GPT-6.2 AstraValidation resultValidation result 2.213 at 15%15%—
GPT-6.2 AstraValidation run of the submitted designValidation result 2.312 at 19%, the run of the submitted design19%—
GPT-6.2 AstraKey decision 11. Started the first validation once a smoke test generated correct output.3%—
GPT-6.2 AstraKey decision 22. Turned to how the scheduler admits waiting requests.7%—
GPT-6.2 AstraKey decision 33. Kept the second validation result as the reference for further variants.11%—
GPT-6.2 AstraKey decision 44. Built a variant whose kernel accumulates scores tile by tile.16%—
GPT-6.2 AstraKey decision 55. Finished after regenerating the validated patch.21%—
DeepSeek V4.1 FlashphaseReading (before the first edit)0%3%
DeepSeek V4.1 FlashphaseStep over 60 s, no validation running3%3%
DeepSeek V4.1 FlashphaseReading (before the first edit)3%4%
DeepSeek V4.1 FlashphaseStep over 60 s, no validation running4%4%
DeepSeek V4.1 FlashphaseReading (before the first edit)4%6%
DeepSeek V4.1 FlashphaseStep over 60 s, no validation running6%7%
DeepSeek V4.1 FlashphaseReading (before the first edit)7%9%
DeepSeek V4.1 FlashphaseStep over 60 s, no validation running9%9%
DeepSeek V4.1 FlashphaseReading (before the first edit)9%9%
DeepSeek V4.1 FlashphaseStep over 60 s, no validation running9%10%
DeepSeek V4.1 FlashphaseEditing and short checks10%12%
DeepSeek V4.1 FlashphaseWriting to the submission directory12%12%
DeepSeek V4.1 FlashphaseEditing and short checks12%14%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground14%14%
DeepSeek V4.1 FlashphaseEditing and short checks14%14%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground14%17%
DeepSeek V4.1 FlashphaseEditing and short checks17%17%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground17%18%
DeepSeek V4.1 FlashphaseEditing and short checks18%18%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground18%18%
DeepSeek V4.1 FlashphaseEditing and short checks18%18%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground18%19%
DeepSeek V4.1 FlashphaseEditing and short checks19%19%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground19%19%
DeepSeek V4.1 FlashphaseEditing and short checks19%20%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground20%23%
DeepSeek V4.1 FlashphaseEditing and short checks23%23%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground23%24%
DeepSeek V4.1 FlashphaseEditing and short checks24%24%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground24%27%
DeepSeek V4.1 FlashphaseEditing and short checks27%27%
DeepSeek V4.1 FlashphaseStep over 60 s, no validation running27%27%
DeepSeek V4.1 FlashphaseEditing and short checks27%29%
DeepSeek V4.1 FlashphaseWriting to the submission directory29%29%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground29%30%
DeepSeek V4.1 FlashphaseEditing and short checks30%31%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground31%31%
DeepSeek V4.1 FlashphaseEditing and short checks31%31%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground31%32%
DeepSeek V4.1 FlashphaseEditing and short checks32%33%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground33%33%
DeepSeek V4.1 FlashphaseEditing and short checks33%33%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground33%36%
DeepSeek V4.1 FlashphaseEditing and short checks36%37%
DeepSeek V4.1 FlashphaseWriting to the submission directory37%37%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground37%38%
DeepSeek V4.1 FlashphaseEditing and short checks38%38%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground38%38%
DeepSeek V4.1 FlashphaseEditing and short checks38%38%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground38%39%
DeepSeek V4.1 FlashphaseEditing and short checks39%39%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground39%43%
DeepSeek V4.1 FlashphaseEditing and short checks43%43%
DeepSeek V4.1 FlashphaseWriting to the submission directory43%44%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground44%44%
DeepSeek V4.1 FlashphaseEditing and short checks44%44%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground44%45%
DeepSeek V4.1 FlashphaseEditing and short checks45%45%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground45%49%
DeepSeek V4.1 FlashphaseEditing and short checks49%49%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground49%50%
DeepSeek V4.1 FlashphaseEditing and short checks50%50%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground50%51%
DeepSeek V4.1 FlashphaseEditing and short checks51%51%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground51%52%
DeepSeek V4.1 FlashphaseEditing and short checks52%52%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground52%55%
DeepSeek V4.1 FlashphaseEditing and short checks55%58%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground58%62%
DeepSeek V4.1 FlashphaseEditing and short checks62%62%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground62%63%
DeepSeek V4.1 FlashphaseEditing and short checks63%63%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground63%63%
DeepSeek V4.1 FlashphaseEditing and short checks63%63%
DeepSeek V4.1 FlashphaseWriting to the submission directory63%63%
DeepSeek V4.1 FlashphaseEditing and short checks63%64%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground64%68%
DeepSeek V4.1 FlashphaseEditing and short checks68%69%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground69%73%
DeepSeek V4.1 FlashphaseEditing and short checks73%73%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground73%75%
DeepSeek V4.1 FlashphaseEditing and short checks75%75%
DeepSeek V4.1 FlashphaseWriting to the submission directory75%75%
DeepSeek V4.1 FlashphaseEditing and short checks75%76%
DeepSeek V4.1 FlashphaseWriting to the submission directory76%76%
DeepSeek V4.1 FlashphaseValidation in progress (step over 60 s) or in the foreground76%82%
DeepSeek V4.1 FlashphaseEditing and short checks82%82%
DeepSeek V4.1 FlashphaseWriting to the submission directory82%82%
DeepSeek V4.1 FlashphaseEditing and short checks82%83%
DeepSeek V4.1 FlashphaseFinal step83%83%
DeepSeek V4.1 FlashValidation resultValidation result 0.0 at 19%19%—
DeepSeek V4.1 FlashValidation resultValidation result 0.0 at 27%27%—
DeepSeek V4.1 FlashValidation resultValidation result 0.0 at 36%36%—
DeepSeek V4.1 FlashValidation resultValidation result 0.0 at 43%43%—
DeepSeek V4.1 FlashValidation resultValidation result 0.0 at 50%50%—
DeepSeek V4.1 FlashValidation run of the submitted designValidation result 0.0 at 75%, the run of the submitted design75%—
DeepSeek V4.1 FlashValidation resultValidation result 0.0 at 82%82%—
DeepSeek V4.1 FlashKey decision 11. Installed the baseline plugin and began changing it to free evicted cache slots.9%—
DeepSeek V4.1 FlashKey decision 22. Turned off rescoring during decoding after the first validation result.20%—
DeepSeek V4.1 FlashKey decision 33. Stopped a running validation to move eviction onto the GPU.55%—
DeepSeek V4.1 FlashKey decision 44. Stopped another validation and added a forced compaction at the first decoding step.68%—
DeepSeek V4.1 FlashKey decision 55. Printed per-ratio results of the last validation and moved to finishing.82%—
Grok 4.7phaseNot in the trajectory (replaced by a summary)0%13%
Grok 4.7phaseReading (before the first edit)13%14%
Grok 4.7phaseEditing and short checks14%16%
Grok 4.7phaseWriting to the submission directory16%17%
Grok 4.7phaseEditing and short checks17%16%
Grok 4.7phaseFinal step16%16%
Grok 4.7Key decision 11. Resumed from the harness's summary and read the scheduler's admission code.13%—
Grok 4.7Key decision 22. Changed the runtime to evict before the scheduler admits new requests.14%—
Grok 4.7Key decision 33. Compared pruned and full-cache throughput on the same prompts.15%—
Grok 4.7Key decision 44. Measured accuracy and then throughput after enlarging the heavy-hitter share.16%—
Grok 4.7Key decision 55. Removed debug logging and wrote the patch and summary.16%—

Download CSV · 172 rows

Validation results and hidden-test result

  • Codex
  • Terminus 2
  • Hidden-test result
Validation results and hidden-test resultValidation results of each attempt over time, joined by lines, with a hollow marker at each attempt's hidden-test result and a dashed baseline line.0123450%20%40%60%80%100%Share of time budgetSpeedup reward (raw)Baseline (hidden test)GPT-6.2 Astra 84.9DeepSeek V4.1 Flash 0.0
No validation run appears in the Grok 4.7 trajectory, so it has no line; its hidden-test result is in the table above. Lines join successive results; hollow markers: hidden-test reward.
View data
Validation results and hidden-test result: data
SeriesShare of time budgetSpeedup reward (raw)Point
GPT-6.2 Astra 84.96%0.1409line
GPT-6.2 Astra 84.911%2.171line
GPT-6.2 Astra 84.915%2.213line
GPT-6.2 Astra 84.919%2.312line
GPT-6.2 Astra 84.921%4.34Hidden-test result
DeepSeek V4.1 Flash 0.019%0.0line
DeepSeek V4.1 Flash 0.027%0.0line
DeepSeek V4.1 Flash 0.036%0.0line
DeepSeek V4.1 Flash 0.043%0.0line
DeepSeek V4.1 Flash 0.050%0.0line
DeepSeek V4.1 Flash 0.075%0.0line
DeepSeek V4.1 Flash 0.082%0.0line
DeepSeek V4.1 Flash 0.083%0.0Hidden-test result

Download CSV · 13 rows

Key decisions

GPT-6.2 Astra 84.9

  1. 3%: Started the first validation once a smoke test generated correct output. Generation works; I’ll run public validation across all three ratios.
  2. 7%: Turned to how the scheduler admits waiting requests. The first candidate retained 97% accuracy but gained only 11% throughput. I’ll test whether admissions are limiting it.
  3. 11%: Kept the second validation result as the reference for further variants. Reopening admissions reached 3.21× public speedup with 97% retention.
  4. 16%: Built a variant whose kernel accumulates scores tile by tile. Full-row kernels spill on longer rows. I’ll try accumulating scores a tile at a time.
  5. 21%: Finished after regenerating the validated patch. It passed the budget, nonrecency, and disabled-path checks.

Submitted approach. The submitted patch evicts cached tokens that receive little attention, frees their memory, and lets the scheduler admit waiting requests into the freed space.

DeepSeek V4.1 Flash 0.0

  1. 9%: Installed the baseline plugin and began changing it to free evicted cache slots. …reuse the baseline's scoring and scheduling hooks while physically freeing evicted slots…
  2. 20%: Turned off rescoring during decoding after the first validation result. …we can eliminate decode-time rescoring completely and freeze heavy-hitter scores from prefill.
  3. 55%: Stopped a running validation to move eviction onto the GPU. …Kill validation v6 to free the GPU…
  4. 68%: Stopped another validation and added a forced compaction at the first decoding step. Need add a forced first-decode compaction that maps kept absolute positions to original slots and frees all others.
  5. 82%: Printed per-ratio results of the last validation and moved to finishing. If no ratio shows speedup, finalize with the best validated patch rather than risk further changes.

Grok 4.7 17.7

  1. 13%: Resumed from the harness's summary and read the scheduler's admission code. The decode batch is stuck at the same size as full KV, so pruning cannot raise throughput yet.
  2. 14%: Changed the runtime to evict before the scheduler admits new requests. I will evict before admission and charge the post-eviction budget.
  3. 15%: Compared pruned and full-cache throughput on the same prompts. Full KV is 408 tok/s and pruning is 1301 tok/s on the same prompts, about 3.2×.
  4. 16%: Measured accuracy and then throughput after enlarging the heavy-hitter share. Accuracy rose from 0.73 to 0.93 with the larger heavy-hitter share.
  5. 16%: Removed debug logging and wrote the patch and summary. I will strip the debug logging and write the submission.

Run comparison

GPT-6.2 Astra 84.9DeepSeek V4.1 Flash 0.0Grok 4.7 17.7
Steps16641985
Validation runs started4110 (recorded from 13%)
Validation runs with a result470
Last validation result, at2.312 at 19%0.0 at 82%none
Submitted files identical to the marked runyes (the patch was regenerated byte for byte)yes (the one later code edit was reverted before finishing)—
Time used: validation in progress52%67%0%
Time used: other steps over 60 s5%4%0%
Time used: editing and short checks41%20%17%
Time used: not in the trajectory (summary)0%0%79%
Longest single step5 min4 minnot recorded
Output tokens100,370785,39795,588
Budget used21%83%16%
Hidden test (raw)4.340.00.9033
Score84.90.017.7

GPT-6.2 Astra 84.9 ran the validation script 4 times; the reported speedup went from 1.11× to 3.34× and the reward from 0.141 to 2.312. It finished 6 minutes after its last validation result; the hidden test gave 4.34.

DeepSeek V4.1 Flash 0.0 started 11 validation runs; 7 returned a result, all 0.0, with the reported speedup between 0.48× and 0.65×. A validation run was in progress for 67% of the time it used.

The trajectory of Grok 4.7 17.7 starts at 13% of the budget: the harness replaced the earlier part with a summary when the context filled. No validation run appears in the recorded part, where the agent measured throughput and accuracy with its own probes; it stopped at 16%.

Data

The timeline uses the full time budget as its denominator. Phase percentages in the comparison table use the time the agent actually spent. Validation values are raw scores from the task evaluator. Quotations come from the agent’s messages and commands. The Grok 4.7 trajectory records no timestamps; its times are interpolated by step between the agent's reads of the task timer and the end of the attempt.

Task details · Timeline methods · Time use across attempts · Run comparison data (JSON)