Thinking Outside the Box: Retention and Transmission of Information in Sliding-Window KV Inference
Abstract
Sliding-window KV inference refers to processing a sequence incrementally while retaining only a fixed-size cache of recent key and value states. It can be applied to pretrained causal transformers at inference time without additional training, while its KV-cache memory remains fixed as more tokens are processed. Because cached states are computed in the context of earlier tokens, they may carry information from beyond the current window and transmit it to later states. This study presents a series of experiments using five open-weight models spanning Qwen, Llama, Mistral, and Muse Glimmer. We investigate whether information originating outside the immediate context window can persist through a rolling KV cache and remain useful for retrieval. Initial results show that retaining previously computed states improves retrieval across the models tested compared with recomputing the final fixed window from raw tokens. We then measure how far this effect extends and find that Muse Glimmer and Mistral 7B show the strongest latent information relay: they can recover information even after the relevant source tokens have left the cache. Both models incorporate sliding-window attention in their published architectures, an association that motivates testing whether training with sliding windows promotes more reliable information retention.
Create a lesson
Metadata
- Comments
- 13 pages, 4 figures
Related papers
GreenDynaMix: Thermal-Aware Dynamic Mixed-Precision MoE LLM Inference Systems
Shared title terminologycs.AIHan-Yi Lin, Kieran Griperay, Qiang Zhou et al.
Stranded Compute in AI Inference Workloads: Recovering Value Through Demand Aggregation
Shared title terminologycs.AISam Kingsley
What People Choose Not to Say: A Multimodal Benchmark for Fine-Grained Information Manipulation in Conversations
Shared title terminologycs.AIYuhan Bian, Zhaokai Liang, Jia Wang et al.
Rational Clarification by Assistive Agents via Value-of-Information Reasoning
Shared title terminologycs.AIT. Duy Nguyen-Hien, Yee Whye Teh, Wee Sun Lee et al.
VISTA: Value-Informed Event Appraisal for Multimodal Emotion Conflict
Shared title terminologycs.AIJiale Dai, Liuxian Ma, Xiaoke Niu et al.
Information Bottleneck-Guided Adaptive Hypergraph Transformer for Brain Disease Diagnosis
Shared title terminologycs.AIJingxi Feng, Xudong Chen, Yifan Zhang et al.