KV-cache pruning in SGLang
Choose which tokens to keep in SGLang’s key–value cache. The reward measures decoding speedup and the accuracy retained on long contexts.
Task and metric
Full task description
Design, implement and tune a heavy-hitter KV-cache pruning policy inside SGLang, and win real decode speedup from it without losing long-context accuracy.
Reward. Mean decode speedup gained across the evaluator's compression ratios.
Full reward definition
Mean decode speedup gained across the evaluator's compression ratios. At each ratio the submitted engine's steady-state decode throughput with pruning enabled is divided by the same build's throughput serving the full KV cache, one is subtracted, and the result is floored at zero: an engine slower than not pruning has made serving worse and earns nothing there. That gain is then multiplied by how much of the model's long-context accuracy survived at that ratio, measured against the same build at full KV on both the accuracy suite and the timed requests' own answers, whichever is lower, so quality is priced rather than gated -- buying speed by destroying the model scales the reward toward zero on its own. Both arms are measured in the same run, so the score is self-anchoring and no baseline or reference measurement enters it. Scoring the sweep rather than one operating point measures the accuracy-versus-compression frontier, so a policy that degrades gracefully outscores one tuned to a single budget. A submission that fails any of the four policy gates -- heavy-hitter fidelity by behaviour, heavy-hitter fidelity by rubric, budget compliance, or denominator integrity against the pristine engine -- scores exactly 0.
Normalized score. The baseline below corresponds to 0 points and the theoretical best to 100. The theoretical best is not always achievable in practice. A valid submission that performs below baseline receives a negative score, bounded at −100. An invalid submission receives 0. Score formula
| Setup | Value |
|---|---|
| Research area | Infra & Systems |
| Direction | Higher is better |
| Baseline, hidden-test mean | 0 |
| Baseline, hidden-test std | 0 (identical reruns) |
| Theoretical best | 5.111 |
| Time budget | 6 h |
| Compute | 1 × H100 |
| GPU-hours | 6 |
Results
The two highest mean scores were 81.2 (GPT-6.2 Astra) and 76.9 (Claude Sonnet 5.5). Across all 13 models, the mean was 42.7 points. Of those, 12 averaged above baseline.
Mean hidden-test score by model
- Claude Code
- Codex
- Antigravity SDK
- Muse Code
- Grok Build
- Terminus 2
View data
| Label | Series | Mean score |
|---|---|---|
| GPT-6.2 Astra | Codex | 81.2 |
| Claude Sonnet 5.5 | Claude Code | 76.9 |
| Claude Opus 5.5 | Claude Code | 67.7 |
| Claude Fable 5.2 | Claude Code | 66.3 |
| GPT-6 Astra | Codex | 61.2 |
| Muse Wonder | Muse Code | 53.0 |
| GPT-6.1 Sol | Codex | 37.0 |
| Gemini 4 Carbon | Antigravity SDK | 36.6 |
| Qwen3.8-Max | Terminus 2 | 23.3 |
| Kimi K3 | Terminus 2 | 22.9 |
| GLM-5.3 | Terminus 2 | 21.8 |
| Grok 4.7 | Grok Build | 7.0 |
| DeepSeek V4.1 Flash | Terminus 2 | 0.0 |
Download CSV · 13 rows
| # | Model | Mean of 3 | Best of 3 | Attempts | Outcomes |
|---|---|---|---|---|---|
| 1 | GPT-6.2 Astra | 81.2 | 84.9 | 3 | 3 valid |
| 2 | Claude Sonnet 5.5 | 76.9 | 104.2 | 3 | 3 valid |
| 3 | Claude Opus 5.5 | 67.7 | 74.4 | 3 | 3 valid |
| 4 | Claude Fable 5.2 | 66.3 | 78.1 | 3 | 3 valid |
| 5 | GPT-6 Astra | 61.2 | 80.7 | 3 | 3 valid |
| 6 | Muse Wonder | 53.0 | 56.5 | 3 | 3 valid |
| 7 | GPT-6.1 Sol | 37.0 | 58.8 | 3 | 3 valid |
| 8 | Gemini 4 Carbon | 36.6 | 67.5 | 3 | 2 valid, 1 out of time |
| 9 | Qwen3.8-Max | 23.3 | 59.2 | 3 | 3 valid |
| 10 | Kimi K3 | 22.9 | 39.5 | 3 | 2 valid, 1 out of time |
| 11 | GLM-5.3 | 21.8 | 58.1 | 3 | 3 valid |
| 12 | Grok 4.7 | 7.0 | 17.7 | 3 | 2 valid, 1 invalid |
| 13 | DeepSeek V4.1 Flash | 0.0 | 0.0 | 3 | 2 valid, 1 out of time |
Walkthrough: Time spent on KV-cache pruning.
Statistics
| Statistic | Value |
|---|---|
| IRT difficulty | −0.70 |
| IRT discrimination | 1.35 |
| IRT pass bar (normalized score) | 0.0 |
| Attempts above the pass bar | 82.1% |
| Median share of time budget used | 70% |
| Median output tokens per attempt | 362k |
| Median validation runs per attempt | 6 |
IRT: two-parameter model of pass or fail against the pass bar (statistics).
Time and tokens over all tasks: results. Medians are over this task's 39 scored attempts.
The trajectory of 1 of 39 attempts (Gemini 4 Carbon, out of time) was not recorded: the output-token and validation-run medians cover 38 attempts.
Validation and hidden test
| Validation measure | Value |
|---|---|
| Attempts with a recorded validation score | 33 |
| Attempts scoring at least 99 on validation | 0 |