A mass-budgeted KV cache for autoregressive video: keep the smallest set of past tokens carrying (1-tau) of the attention mass, and by kvexact the output error is bounded by tau. It adapts memory to the attention, keeps keyframe sinks a fixed window drops, and cuts error ~10x at matched cache with a bounded worst case. Measured on an Apple M4.
Python