The result
A low-rank correction produced the clearest quality and latency tradeoff in our latest cache-transfer experiments.
We transferred the prompt cache from Llama-3.1-Minitron-4B-Width-Base into Llama 3.1 8B, then compared four target paths: direct cache reuse, a ridge map, a validation-selected learned correction, and ordinary native prefill.
The selected learned path reduced held-out 32-step divergence from 0.20051 to 0.18138 KL32, a 9.54% improvement over direct reuse. It won on 54 of 64 paired prompts. At an 8,192-token prefix, it reached the target's first token in 38.25 ms when the source cache was already available, compared with 302.69 ms for native target prefill.
The 7.91× result measures the online handoff after Minitron has already produced a resident cache. Including Minitron's prefill, the learned path took 241.56 ms at 8K, which was still 1.25× faster than native Llama prefill.
The frozen study
Selection ended before the 64 final prompts were loaded.
- Source
- NVIDIA Llama 3.1 Minitron 4B Width Base
- Target
- Llama 3.1 8B base
- Screen
- 20 configurations
- Confirmation
- Top 2 configurations · 3 fixed seeds each
- Final quality set
- 64 untouched WikiText-103 prompts
- Quality path
- 256-token prefix · 32 forced steps
- Latency study
- 6 prefix lengths · 20 warm-ups · 50 repetitions
- Measurement
- CUDA-synchronized p50 on H100
The screen varied direct and ridge bases, linear and quadratic residuals, ranks 4 through 32, three learning rates, feature choices, and KV-MSE warm-up. The six strongest arms entered checkpoint and residual-scale evaluation. The top two were retrained on a disjoint partition with three fixed seeds. Only then did we freeze one configuration and open the final set.
The learned handoff
The useful correction was a rank-8 residual on direct KV, not a full ridge translation.
The winning method injected the Minitron cache directly, then added a learned linear low-rank correction to each key and value cache. The correction used rank 8, 1,048,576 learned parameters, a 20-step cache-reconstruction warm-up, and a residual scale of 0.75. Its checkpoint was only 12.0 MiB.
This matters because the seemingly more structured baseline failed. A per-head ridge map raised final KL32 to 0.37489 and reduced top-1 agreement to 75.10%. It lost to direct reuse on 60 of 64 prompts and was slower online. For this cross-width pair, direct injection preserved information that the ridge projection destroyed, while a compact residual could correct part of the remaining trajectory error.
Held-out quality
The gain over direct reuse was small, paired, and statistically stable.
On the untouched final set, the learned-minus-direct KL32 difference was -0.01913 ± 0.00378 standard error. Its 95% interval ran from -0.02654 to -0.01172, and the learned method improved 54 of 64 paired prompts. Top-1 agreement rose by 0.684 percentage points, from 81.84% to 82.52%.
Long-context latency
The handoff crossed native prefill near 1K tokens and widened the lead with context length.
Native target prefill grew from 13.40 ms at 128 tokens to 302.69 ms at 8K. The learned handoff stayed near 30 ms through 4K and reached 38.25 ms at 8K. With a resident source cache, it became faster than native prefill around 1K tokens and delivered a 7.91× speedup at 8K.
Direct reuse was faster still at 16.99 ms, but it gave up the learned method's held-out quality improvement. The result is a measurable frontier: direct reuse for minimum latency, the learned residual for better cache fidelity at modest fixed overhead, and native prefill for exact target behavior.
What this establishes
Long-context cache handoff is now a measured systems tradeoff, not a shape-compatibility demo.
This study combines a frozen selection protocol, paired held-out quality, synchronized latency, and both resident-cache and cold-context accounting. It shows that a small learned residual can improve a directly reused cache while preserving a large long-context latency advantage over target prefilling.
The boundary is just as important. KL32 uses 32 oracle-forced tokens, not open-ended generation, task accuracy, or human preference. The source is a width-pruned and distilled derivative of the target lineage, not an unrelated checkpoint. Native prefill remains exact and is faster at short prefixes. The learned path also uses more incremental VRAM at 8K than native prefill, 9.34 GiB versus 7.96 GiB.
The next gate is functional generation on long, diverse prompts, followed by an integrated serving test that includes cache transport across the actual model-routing boundary.