Amazon Paper: Match KV-Cache Policy to Prevent Long-Context Failures
rohanpaul_ai · x · 2026-08-31
A new Amazon paper argues that KV-cache policy isn't just an inference optimization; it should dictate the training regime. If an LLM forgets context at inference, it should be trained to forget that way too.
- The Mismatch: Sparse attention allows fixed-size KV caches for long contexts, but models are often fine-tuned with full attention, causing failures when memory is missing at inference.
- Findings: In 128k-token tests, models trained with full attention often produced long, nonsensical answers under sparse inference, while those fine-tuned with the matching cache policy behaved correctly.
- Method: The paper makes policy-matched training practical for arbitrary cache policies, including computing gradients for a 4B model on a 40GB A100.
Related event: Amazon Paper: Training Should Match KV-Cache Inference Strategies(2 posts)→
More from Infra
- Export controls may widen US-China AI gap by only 2-3 months, argues analyst — kevinnbass · 2026-12-02
- Amazon Ergo enters most attractive quadrant at $1.64 per Intelligence Index task — ArtificialAnlys · 2026-12-02
- Amazon Ergo takes open-weights crown: 38 on AA Index, 1.1T params (55B active) — ArtificialAnlys · 2026-12-02
- Jensen Huang warns the US risks repeating its "5G mistake" and losing the AI race to China — TinfoilTricorn · 2026-12-02
- Hyperscaler capex consensus keeps being redrawn upward, now at $1.2T — peterwildeford · 2026-12-02
- Netlify served 54B requests over Black Friday weekend, peaking at 249K rps — thisiskp_ · 2026-12-02