Easy control for Key-Value Constrained Generative LLM Inference(https://arxiv.org/abs/2402.06262)
-
Updated
Feb 13, 2024 - Python
Easy control for Key-Value Constrained Generative LLM Inference(https://arxiv.org/abs/2402.06262)
A prefix-cache advisor for LLM serving infrastructure that recommends KV-cache capacity and eviction policies from your request traces/logs.
A learned, cost-aware eviction policy for semantic LLM caches that replaces heuristic policies like LRU/FIFO with a lightweight offline-trained model, improving regeneration-token savings while maintaining safe LRU fallback.
Trace-driven research harness for KV-cache hierarchy policy evaluation in long-context LLM inference.
REAL: REtrieval-reAsoning and Logic-constructed Attention Behaviors for Long-Context KV Cache Compression
Event-driven simulator for prefix KV-cache eviction policies in LLM serving systems
Trace-driven simulator for learned KV Cache eviction on synthetic sparse block-level access traces
Pre-registered study: KV-cache eviction heuristics (StreamingLLM, H2O, SnapKV, LRU) vs Belady and weighted oracles on Qwen2.5-7B, offline and live
Virtual memory page replacement algorithms: Least Recently Used (LRU) and Second-Chance Clock algorithm.
Deterministic decay-and-eviction policy for bounded agent memory, and the paired-statistics harness that scores it against LRU, LFU, ARC, a branch-aware baseline and a Belady ceiling.
In-memory LRU cache with per-key TTL expiration, deterministic eviction, and hit/miss/stale telemetry for LLMs
Benchmark of KV-cache eviction policies on GPT-2-medium showing two clear regimes: sink-preserving heuristics dominate at tiny budgets, while attention-based eviction becomes near-lossless at moderate budgets. attention_384 matches full-cache quality with ~33% less cache.
FreCoS: freshness- and cost-aware extension to GPTCache (BSc course project)
A small caching library implementing standard caching strategies, starting with LRU, in Python. Part of the multi-language mnemosyne-cache project. Built by hand to develop real, working fluency in caching mechanics rather than just theory.
Redis-like KV store with custom hash map, LRU & TTL in Python | 자료구조를 직접 구현한 Mini Redis
Tiered KV-cache persistence for LLM inference, with learned and value-aware eviction policies evaluated on synthetic workloads and the Azure LLM trace.
LAFC-Evict: ~278M-row counterfactual supervision dataset and benchmark for learned cache eviction (5 trace families; Hugging Face + AWS Open Data). Preprint: ssrn.com/abstract=7625523
Real-time AI memory orchestrator for multi-model GPU serving. PERC: provably optimal KV cache eviction via fractional knapsack. 25-79% eviction cost reduction vs LRU.
Memory-aware LLM inference optimizer for KV cache compression, eviction, and scheduling.
Learning-augmented cache eviction: decision-aligned eviction-value prediction vs. LRU, SIEVE, LRB, 3L-Cache, CACHEUS, HALP. Code + audited results for the Knowledge-Based Systems 2026 paper (doi:10.1016/j.knosys.2026.117353).
To associate your repository with the cache-eviction topic, visit your repo's landing page and select "manage topics."