
MiniPIC: Flexible Position-Independent Caching in <100LOC
MiniPIC addresses a critical bottleneck in production LLM inference: KV cache reuse across structurally similar but positionally distinct requests. Current prefix caching in vLLM only matches identical prefixes, wasting compute on redundant prefills of recurring documents and code spans. This work decouples positional encoding from cache storage, enabling position-independent reuse with minimal server modifications and no host-to-device overhead. For retrieval-augmented and agentic workloads that repeatedly process standardized inputs, the efficiency gains directly reduce latency and throughput costs, making it immediately relevant to inference platform operators and teams optimizing LLM serving economics.62



























