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
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.
| Model | Harness | Hidden test (speedup reward, raw) | Score | Budget used | Outcome |
|---|---|---|---|---|---|
| GPT-6.2 Astra | Codex | 4.34 | 84.9 | 21% | valid submission |
| DeepSeek V4.1 Flash | Terminus 2 | 0.0 | 0.0 | 83% | valid submission |
| Grok 4.7 | Grok Build | 0.9033 | 17.7 | 16% | 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
View data
| Trial | Element | Detail | Start | End |
|---|---|---|---|---|
| GPT-6.2 Astra | phase | Reading (before the first edit) | 0% | 0% |
| GPT-6.2 Astra | phase | Editing and short checks | 0% | 2% |
| GPT-6.2 Astra | phase | Writing to the submission directory | 2% | 2% |
| GPT-6.2 Astra | phase | Editing and short checks | 2% | 2% |
| GPT-6.2 Astra | phase | Writing to the submission directory | 2% | 2% |
| GPT-6.2 Astra | phase | Editing and short checks | 2% | 2% |
| GPT-6.2 Astra | phase | Writing to the submission directory | 2% | 2% |
| GPT-6.2 Astra | phase | Editing and short checks | 2% | 2% |
| GPT-6.2 Astra | phase | Writing to the submission directory | 2% | 2% |
| GPT-6.2 Astra | phase | Editing and short checks | 2% | 3% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 3% | 3% |
| GPT-6.2 Astra | phase | Editing and short checks | 3% | 4% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 4% | 4% |
| GPT-6.2 Astra | phase | Editing and short checks | 4% | 5% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 5% | 6% |
| GPT-6.2 Astra | phase | Editing and short checks | 6% | 6% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 6% | 7% |
| GPT-6.2 Astra | phase | Editing and short checks | 7% | 7% |
| GPT-6.2 Astra | phase | Step over 60 s, no validation running | 7% | 7% |
| GPT-6.2 Astra | phase | Editing and short checks | 7% | 8% |
| GPT-6.2 Astra | phase | Writing to the submission directory | 8% | 8% |
| GPT-6.2 Astra | phase | Editing and short checks | 8% | 9% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 9% | 9% |
| GPT-6.2 Astra | phase | Editing and short checks | 9% | 10% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 10% | 11% |
| GPT-6.2 Astra | phase | Editing and short checks | 11% | 11% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 11% | 11% |
| GPT-6.2 Astra | phase | Editing and short checks | 11% | 12% |
| GPT-6.2 Astra | phase | Step over 60 s, no validation running | 12% | 12% |
| GPT-6.2 Astra | phase | Editing and short checks | 12% | 12% |
| GPT-6.2 Astra | phase | Writing to the submission directory | 12% | 12% |
| GPT-6.2 Astra | phase | Editing and short checks | 12% | 12% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 12% | 14% |
| GPT-6.2 Astra | phase | Editing and short checks | 14% | 14% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 14% | 15% |
| GPT-6.2 Astra | phase | Editing and short checks | 15% | 15% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 15% | 15% |
| GPT-6.2 Astra | phase | Editing and short checks | 15% | 17% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 17% | 17% |
| GPT-6.2 Astra | phase | Editing and short checks | 17% | 17% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 17% | 17% |
| GPT-6.2 Astra | phase | Writing to the submission directory | 17% | 17% |
| GPT-6.2 Astra | phase | Editing and short checks | 17% | 18% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 18% | 19% |
| GPT-6.2 Astra | phase | Editing and short checks | 19% | 19% |
| GPT-6.2 Astra | phase | Validation in progress (step over 60 s) or in the foreground | 19% | 20% |
| GPT-6.2 Astra | phase | Writing to the submission directory | 20% | 20% |
| GPT-6.2 Astra | phase | Step over 60 s, no validation running | 20% | 21% |
| GPT-6.2 Astra | phase | Writing to the submission directory | 21% | 21% |
| GPT-6.2 Astra | phase | Final step | 21% | 21% |
| GPT-6.2 Astra | Validation result | Validation result 0.1409 at 6% | 6% | — |
| GPT-6.2 Astra | Validation result | Validation result 2.171 at 11% | 11% | — |
| GPT-6.2 Astra | Validation result | Validation result 2.213 at 15% | 15% | — |
| GPT-6.2 Astra | Validation run of the submitted design | Validation result 2.312 at 19%, the run of the submitted design | 19% | — |
| GPT-6.2 Astra | Key decision 1 | 1. Started the first validation once a smoke test generated correct output. | 3% | — |
| GPT-6.2 Astra | Key decision 2 | 2. Turned to how the scheduler admits waiting requests. | 7% | — |
| GPT-6.2 Astra | Key decision 3 | 3. Kept the second validation result as the reference for further variants. | 11% | — |
| GPT-6.2 Astra | Key decision 4 | 4. Built a variant whose kernel accumulates scores tile by tile. | 16% | — |
| GPT-6.2 Astra | Key decision 5 | 5. Finished after regenerating the validated patch. | 21% | — |
| DeepSeek V4.1 Flash | phase | Reading (before the first edit) | 0% | 3% |
| DeepSeek V4.1 Flash | phase | Step over 60 s, no validation running | 3% | 3% |
| DeepSeek V4.1 Flash | phase | Reading (before the first edit) | 3% | 4% |
| DeepSeek V4.1 Flash | phase | Step over 60 s, no validation running | 4% | 4% |
| DeepSeek V4.1 Flash | phase | Reading (before the first edit) | 4% | 6% |
| DeepSeek V4.1 Flash | phase | Step over 60 s, no validation running | 6% | 7% |
| DeepSeek V4.1 Flash | phase | Reading (before the first edit) | 7% | 9% |
| DeepSeek V4.1 Flash | phase | Step over 60 s, no validation running | 9% | 9% |
| DeepSeek V4.1 Flash | phase | Reading (before the first edit) | 9% | 9% |
| DeepSeek V4.1 Flash | phase | Step over 60 s, no validation running | 9% | 10% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 10% | 12% |
| DeepSeek V4.1 Flash | phase | Writing to the submission directory | 12% | 12% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 12% | 14% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 14% | 14% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 14% | 14% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 14% | 17% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 17% | 17% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 17% | 18% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 18% | 18% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 18% | 18% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 18% | 18% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 18% | 19% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 19% | 19% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 19% | 19% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 19% | 20% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 20% | 23% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 23% | 23% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 23% | 24% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 24% | 24% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 24% | 27% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 27% | 27% |
| DeepSeek V4.1 Flash | phase | Step over 60 s, no validation running | 27% | 27% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 27% | 29% |
| DeepSeek V4.1 Flash | phase | Writing to the submission directory | 29% | 29% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 29% | 30% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 30% | 31% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 31% | 31% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 31% | 31% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 31% | 32% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 32% | 33% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 33% | 33% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 33% | 33% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 33% | 36% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 36% | 37% |
| DeepSeek V4.1 Flash | phase | Writing to the submission directory | 37% | 37% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 37% | 38% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 38% | 38% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 38% | 38% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 38% | 38% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 38% | 39% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 39% | 39% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 39% | 43% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 43% | 43% |
| DeepSeek V4.1 Flash | phase | Writing to the submission directory | 43% | 44% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 44% | 44% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 44% | 44% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 44% | 45% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 45% | 45% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 45% | 49% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 49% | 49% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 49% | 50% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 50% | 50% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 50% | 51% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 51% | 51% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 51% | 52% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 52% | 52% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 52% | 55% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 55% | 58% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 58% | 62% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 62% | 62% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 62% | 63% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 63% | 63% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 63% | 63% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 63% | 63% |
| DeepSeek V4.1 Flash | phase | Writing to the submission directory | 63% | 63% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 63% | 64% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 64% | 68% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 68% | 69% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 69% | 73% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 73% | 73% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 73% | 75% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 75% | 75% |
| DeepSeek V4.1 Flash | phase | Writing to the submission directory | 75% | 75% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 75% | 76% |
| DeepSeek V4.1 Flash | phase | Writing to the submission directory | 76% | 76% |
| DeepSeek V4.1 Flash | phase | Validation in progress (step over 60 s) or in the foreground | 76% | 82% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 82% | 82% |
| DeepSeek V4.1 Flash | phase | Writing to the submission directory | 82% | 82% |
| DeepSeek V4.1 Flash | phase | Editing and short checks | 82% | 83% |
| DeepSeek V4.1 Flash | phase | Final step | 83% | 83% |
| DeepSeek V4.1 Flash | Validation result | Validation result 0.0 at 19% | 19% | — |
| DeepSeek V4.1 Flash | Validation result | Validation result 0.0 at 27% | 27% | — |
| DeepSeek V4.1 Flash | Validation result | Validation result 0.0 at 36% | 36% | — |
| DeepSeek V4.1 Flash | Validation result | Validation result 0.0 at 43% | 43% | — |
| DeepSeek V4.1 Flash | Validation result | Validation result 0.0 at 50% | 50% | — |
| DeepSeek V4.1 Flash | Validation run of the submitted design | Validation result 0.0 at 75%, the run of the submitted design | 75% | — |
| DeepSeek V4.1 Flash | Validation result | Validation result 0.0 at 82% | 82% | — |
| DeepSeek V4.1 Flash | Key decision 1 | 1. Installed the baseline plugin and began changing it to free evicted cache slots. | 9% | — |
| DeepSeek V4.1 Flash | Key decision 2 | 2. Turned off rescoring during decoding after the first validation result. | 20% | — |
| DeepSeek V4.1 Flash | Key decision 3 | 3. Stopped a running validation to move eviction onto the GPU. | 55% | — |
| DeepSeek V4.1 Flash | Key decision 4 | 4. Stopped another validation and added a forced compaction at the first decoding step. | 68% | — |
| DeepSeek V4.1 Flash | Key decision 5 | 5. Printed per-ratio results of the last validation and moved to finishing. | 82% | — |
| Grok 4.7 | phase | Not in the trajectory (replaced by a summary) | 0% | 13% |
| Grok 4.7 | phase | Reading (before the first edit) | 13% | 14% |
| Grok 4.7 | phase | Editing and short checks | 14% | 16% |
| Grok 4.7 | phase | Writing to the submission directory | 16% | 17% |
| Grok 4.7 | phase | Editing and short checks | 17% | 16% |
| Grok 4.7 | phase | Final step | 16% | 16% |
| Grok 4.7 | Key decision 1 | 1. Resumed from the harness's summary and read the scheduler's admission code. | 13% | — |
| Grok 4.7 | Key decision 2 | 2. Changed the runtime to evict before the scheduler admits new requests. | 14% | — |
| Grok 4.7 | Key decision 3 | 3. Compared pruned and full-cache throughput on the same prompts. | 15% | — |
| Grok 4.7 | Key decision 4 | 4. Measured accuracy and then throughput after enlarging the heavy-hitter share. | 16% | — |
| Grok 4.7 | Key decision 5 | 5. 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
View data
| Series | Share of time budget | Speedup reward (raw) | Point |
|---|---|---|---|
| GPT-6.2 Astra 84.9 | 6% | 0.1409 | line |
| GPT-6.2 Astra 84.9 | 11% | 2.171 | line |
| GPT-6.2 Astra 84.9 | 15% | 2.213 | line |
| GPT-6.2 Astra 84.9 | 19% | 2.312 | line |
| GPT-6.2 Astra 84.9 | 21% | 4.34 | Hidden-test result |
| DeepSeek V4.1 Flash 0.0 | 19% | 0.0 | line |
| DeepSeek V4.1 Flash 0.0 | 27% | 0.0 | line |
| DeepSeek V4.1 Flash 0.0 | 36% | 0.0 | line |
| DeepSeek V4.1 Flash 0.0 | 43% | 0.0 | line |
| DeepSeek V4.1 Flash 0.0 | 50% | 0.0 | line |
| DeepSeek V4.1 Flash 0.0 | 75% | 0.0 | line |
| DeepSeek V4.1 Flash 0.0 | 82% | 0.0 | line |
| DeepSeek V4.1 Flash 0.0 | 83% | 0.0 | Hidden-test result |
Download CSV · 13 rows
Key decisions
GPT-6.2 Astra 84.9
- 3%: Started the first validation once a smoke test generated correct output.
Generation works; I’ll run public validation across all three ratios.
- 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.
- 11%: Kept the second validation result as the reference for further variants.
Reopening admissions reached 3.21× public speedup with 97% retention.
- 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.
- 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
- 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…
- 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.
- 55%: Stopped a running validation to move eviction onto the GPU.
…Kill validation v6 to free the GPU…
- 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.
- 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
- 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.
- 14%: Changed the runtime to evict before the scheduler admits new requests.
I will evict before admission and charge the post-eviction budget.
- 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×.
- 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.
- 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.9 | DeepSeek V4.1 Flash 0.0 | Grok 4.7 17.7 | |
|---|---|---|---|
| Steps | 166 | 419 | 85 |
| Validation runs started | 4 | 11 | 0 (recorded from 13%) |
| Validation runs with a result | 4 | 7 | 0 |
| Last validation result, at | 2.312 at 19% | 0.0 at 82% | none |
| Submitted files identical to the marked run | yes (the patch was regenerated byte for byte) | yes (the one later code edit was reverted before finishing) | — |
| Time used: validation in progress | 52% | 67% | 0% |
| Time used: other steps over 60 s | 5% | 4% | 0% |
| Time used: editing and short checks | 41% | 20% | 17% |
| Time used: not in the trajectory (summary) | 0% | 0% | 79% |
| Longest single step | 5 min | 4 min | not recorded |
| Output tokens | 100,370 | 785,397 | 95,588 |
| Budget used | 21% | 83% | 16% |
| Hidden test (raw) | 4.34 | 0.0 | 0.9033 |
| Score | 84.9 | 0.0 | 17.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)