{
  "id": 1606,
  "kind": "paper",
  "title": "BasinKV: Bounded-VRAM Sparse KV-Cache Serving for llama.cpp, SGLang, and vLLM",
  "summary": "BasinKV (Zellige; github.com/zellige-ai/basinkv, Apache-2.0, released Dec 1 2026) is an open-source implementation and extension of the OasisKV lookahead-prefetch architecture (Xiao, Cho, et al., arXiv 2608.08097 - summarized here, not separately cataloged). It serves long contexts with bounded VRAM by capping each full-attention head at a fixed GPU working set (W = 2,048 tokens by default: sink blocks, retrieved sparse blocks, and a local ring, in static-shaped pages so stock FlashAttention/FlashInfer kernels and full-model CUDA graphs run unmodified), keeping the full KV history in pinned host RAM or on NVMe, scoring evicted blocks on the GPU, and prefetching needed blocks over PCIe while earlier layers compute. No retraining and no weight changes. Two precision tiers: the quality default is INT8 host KV with a Quest INT8 block index whose partial-RoPE radius weight alpha = 0.25 down-weights the non-rotary box radius (on Qwen3.8-27B, D = 256 with 64 RoPE + 192 NoPE dims, that radius averages 2.70x the midpoint magnitude; alpha = 0.25 raises per-step Top-8 recall from 29.9% unweighted and 82.5% at alpha = 0.5 to 95.5%, and restores 128K RULER from 0/5 to 5/5); the high-compression tier pairs WHT-INT4 host KV (1.97x smaller than INT8, 3.88x vs BF16, under 0.5% decode-speed cost) with a SphereIndex of WHT-rotated INT4 centroids (7.53x smaller GPU index than BF16 min/max). A successor co-fetch propagates each block's score one hop forward so cues straddling a block boundary fetch both halves, and content-addressed prefix caches persist in RAM/NVMe including hybrid recurrent state. Project-reported benchmarks (first-party, single-user llama.cpp decode unless noted): Qwen3.6-35B-A3B Q4_K_M at 256K on a 24 GB L4 runs at 67.12 tok/s with 84.8 MiB of GPU KV+index where stock llama.cpp OOMs from 64K, with live passkeys passing at 64K and 203K; on A100-80GB the same model goes 95.01 to 141.12 tok/s (1.49x) with 96.2% retrieval at 240K; Qwen3-8B at 128K goes 54.28 to 124.29 tok/s (2.29x); Gemma 4 E4B at 128K on L4 goes 31.69 to 61.46 tok/s (1.94x). Gains shrink where the baseline already fits comfortably: gpt-oss 20B 1.02-1.20x, and Inkling 2 Mini (looped + SWA) only 1.08x at 64K - most of its attention is already windowed. In SGLang, Qwen3.8-27B at batch 16 x 64K (1.02M tokens) runs 581.4 tok/s with native MTP on one A100 where stock OOMs with MTP. Limits stated in the repo: MLA models (DeepSeek-V3/R1, GLM-5, Kimi K2) are rejected at init on all engines; the vLLM integration's zero-fork mode is prefix caching only (sparse decode needs upstream hooks) and rejects recurrent hybrids today; quality evidence is passkey/RULER retrieval and short-output parity, not long-form generation quality. Flags: the repo is one day old at cataloging (14 commits) and every benchmark is the project's own. Cross-references: the serving-side member of the KV-cache thread, alongside training-free block-sparse attention (Factorized Context Attention, ID 1896); the Quest alpha detail - down-weighting NoPE dims in block scoring - is the transferable nugget for partial-RoPE hybrids.",
  "body": "",
  "notes": "Shared 2026-12-02 via @swarogan post (read via the fxtwitter API mirror after the x.com 403); the post's four headline numbers match the repo's own benchmark table. Details verified against the repo README (mechanism, benchmark tables, supported-models matrix, Apache-2.0 license section). Inserted live 2026-12-02; site rebuild waits for the twice-weekly batch.",
  "url": "https://github.com/zellige-ai/basinkv",
  "links": [],
  "authors": [
    "Zellige (implementation of the OasisKV architecture by Can Xiao",
    "Sukmin Cho",
    "et al.)"
  ],
  "tags": [],
  "topics": "",
  "venue": "GitHub release, Dec 1 2026 (github.com/zellige-ai/basinkv)",
  "publisher": "",
  "source": "github",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-12-02T00:00:00.000Z",
  "verified_at": "2026-12-02T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "swarogan",
    "legacy_paper_id": "1905"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-12-02T18:05:48.506Z",
  "updated_at": "2026-12-02T18:05:48.506Z",
  "page": "https://papers.projxon.ai/entries/1606",
  "markdown": "https://papers.projxon.ai/entries/1606.md",
  "api": "https://papers.projxon.ai/api/entries/1606",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 1066,
      "kind": "idea",
      "title": "KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)",
      "summary": "Single long X note_tweet + diagram (2026-09-25) by @techNmak explaining that during inference model weights are mostly fixed while per-request KV state grows with every cached token across attention layers. Frames context length and concurrency as GPU-memory costs; notes GQA/MQA (fewer KV heads), KV quantization (fewer bytes), and sliding-window attention (bounded history) as levers; stresses caching avoids recomputing old K/V projections but full attention still reads the cache each decode step. Diagram gives KV bytes = 2×B×T×L×H_kv×d_k×s (example: 8K tokens ≈ 1 GiB at L=32, H_kv=8, d_k=128, FP16). Pure original explainer — no primary paper; one reply promo-linked github.com/kvcachestore/kvcdn-cli.",
      "url": "https://x.com/techNmak/status/2103488645642793165",
      "authors": [
        "Tech with Mak (@techNmak)"
      ],
      "tags": [
        "kv-cache",
        "llm-serving",
        "gpu-memory",
        "gqa",
        "mqa",
        "kv-quantization",
        "sliding-window",
        "attention",
        "prefill-decode",
        "technmak",
        "x-thread",
        "idea"
      ],
      "venue": "X / Tech with Mak",
      "source": "x",
      "license": "n/a (X post / educational graphic)",
      "published_year": 2026,
      "added_at": "2026-09-26T12:56:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1066",
      "markdown": "https://papers.projxon.ai/entries/1066.md",
      "api": "https://papers.projxon.ai/api/entries/1066"
    },
    {
      "id": 1031,
      "kind": "paper",
      "title": "HySparse2: Hybrid Sparse Attention with Two-Level KV Sharing",
      "summary": "Xiaomi LLM-Core paper (arXiv 2609.26368v1, 2026-09-22, cs.CL). HySparse2 extends HySparse with YOCO-style self-decoder (hybrid SWA) + cross-decoder (hybrid sparse attention) and two-level KV sharing: outer KV Bridging (full-attention layers only; cross-decoder K/V from self-decoder full-attn hidden states) and inner KV Reuse (HySparse-style shared KV + selection within hybrid blocks). Refinements vs HySparse: token-level sparsity (replacing block-level) and Forced SWA (recent tokens forced into sparse selection, no separate SWA branch). All cross-decoder KV can be built from self-decoder states, so prefill can exit after the self-decoder (~half the model). On matched 80B-A3B MoE training: after light post-training (~100B tokens), mean MRCR-v2 / RULER-v2 +11.30 / +19.81 vs HySparse; at 256k RULER-v2 58.45 vs HySparse 32.61 / Hybrid SWA 35.74; lower AgentPPL and LongPPL to 256k; at 1M tokens analysis claims 2.92× / 5.02× less prefill FLOPs vs HySparse / Hybrid SWA plus smaller KV cache. No public code link in paper; AlphaXiv abs live; HF papers page 404 at catalog time.",
      "url": "https://arxiv.org/abs/2609.26368",
      "authors": [
        "Jianyu Wei*",
        "Yizhao Gao*",
        "Qihao Zhang",
        "Shimao Chen",
        "Zhengju Tang",
        "Yu Cheng",
        "Shengjie Zhou",
        "Zihan Jiang",
        "Yifan Song",
        "Hailin Zhang",
        "Liang Zhao",
        "Bo Yang",
        "Gang Wang",
        "Shijie Cao⋄",
        "Fuli Luo⋄† (*equal",
        "⋄corresponding",
        "†team lead)"
      ],
      "tags": [
        "hysparse2",
        "hysparse",
        "xiaomi",
        "sparse-attention",
        "kv-bridging",
        "kv-reuse",
        "yoco",
        "swa",
        "token-level-sparsity",
        "long-context",
        "agentic",
        "moe",
        "80b-a3b",
        "ruler-v2",
        "mrcr-v2"
      ],
      "venue": "LLM-Core Xiaomi / arXiv",
      "source": "arxiv",
      "license": "arXiv preprint (standard arXiv terms); no separate code license found",
      "published_year": 2026,
      "added_at": "2026-09-24T02:02:08.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1031",
      "markdown": "https://papers.projxon.ai/entries/1031.md",
      "api": "https://papers.projxon.ai/api/entries/1031"
    },
    {
      "id": 631,
      "kind": "code",
      "title": "VBR: Variable Bit-Rate KV Cache for llama.cpp",
      "summary": "spiritbuun llama.cpp fork (buun-llama-cpp) ships VBR as the default KV cache. Cache starts FP16 and degrades one (layer, side) tensor at a time down a price-ordered ladder (f16 → turbo8 → turbo4 → turbo3_tcq → turbo2_tcq → turbo1_tcq) using TurboQuant/TCQ codecs, following per-model KLD degrade tables. Default implicit VBR floors at turbo4; explicit -ct vbr opens the full ladder to t1. Budget is leftover VRAM after weights/compute; -c caps context so the budget is spent on quality instead of max length. CUDA-first with ROCm/HIP mirror. Related to TurboQuant (papers_local 606/640) but this is a dynamic controller, not a new codec paper.",
      "url": "https://github.com/spiritbuun/buun-llama-cpp",
      "authors": [
        "buun"
      ],
      "tags": [
        "vbr",
        "kv-cache",
        "llama-cpp",
        "turboquant",
        "quantization",
        "inference",
        "x"
      ],
      "venue": "GitHub",
      "source": "web",
      "license": "MIT",
      "published_year": 2026,
      "added_at": "2026-08-14T19:35:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 881,
      "page": "https://papers.projxon.ai/entries/631",
      "markdown": "https://papers.projxon.ai/entries/631.md",
      "api": "https://papers.projxon.ai/api/entries/631"
    },
    {
      "id": 450,
      "kind": "paper",
      "title": "Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse",
      "summary": "Shows within-family matched-KV pairs (shared KV head count and head dim) have substantial linear structure: on Qwen3 14B->32B one source layer explains 56%/32% of target key/value variance, 79%/65% with multiple layers. A closed-form per-head ridge mapper with top-k cross-layer source selection and RoPE-stripped content-space keys retains 73-98% of standalone-prefill accuracy on four of six pairs (Qwen3, Llama 3.1, Ministral 3) and is 2.7-25x faster than re-prefill; two Ministral pairs collapse and a nonlinear MLP recovers up to +37 pp HellaSwag. Attention-output cosine predicts retention better than reconstruction R^2.",
      "url": "https://arxiv.org/abs/2608.03893",
      "authors": [
        "Taekyung Heo",
        "Rasoul Shafipour",
        "Ritchie Zhao",
        "Maximilian Golub",
        "Mohammad Mahdi Kamani",
        "Ritika Borkar",
        "Makesh Tarun Chandran",
        "Pantea Zardoshti",
        "Bita Darvish Rouhani"
      ],
      "tags": [
        "kv-cache",
        "prefill",
        "ridge-regression",
        "rope",
        "serving",
        "qwen3",
        "llama",
        "ministral",
        "nvidia"
      ],
      "venue": "arXiv / NVIDIA",
      "source": "arxiv",
      "license": "CC BY 4.0",
      "published_year": 2026,
      "added_at": "2026-08-14T16:24:56.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 9,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/450",
      "markdown": "https://papers.projxon.ai/entries/450.md",
      "api": "https://papers.projxon.ai/api/entries/450"
    },
    {
      "id": 1322,
      "kind": "paper",
      "title": "Periodic Weak Spots: Phase Sensitivity from Chunked KV-Cache Compression",
      "summary": "Chunked KV-cache compression groups consecutive tokens into fixed-size windows and compresses each window into fewer cache entries at a fixed stride S, cutting long-context memory and attention cost. The paper shows this creates a new positional coordinate — the token's phase, its position modulo S — and a systematic failure mode called phase sensitivity: the same information can be easy to retrieve at one phase and difficult at another. In the DeepSeek-V4 family (which uses compressed sparse attention, CSA, with stride S=4), single-token needle-in-a-haystack retrieval at 128K context differs by up to 40.2 percentage points across phases, and a code-completion top-1 prediction flips periodically with period 4 matching the CSA stride. To isolate the cause, the authors pretrained a family of Qwen3-0.6B-derived transformers from scratch with chunked KV compression as the only substantial architectural change: every compressed variant shows periodicity matching the compression stride — even plain within-window averaging — while full-attention baselines show none. Window boundaries (key-value pairs split across windows) do not fully explain it: accuracy varies widely across phases that keep the pair inside one window. Mechanistic analysis (KV-head/layer knockouts in their models and attention-readout interventions) reveals phase specialization: different heads contribute asymmetrically to retrieval at different phases, also in DeepSeek-V4 itself. Compression gates that can learn separate positional preferences develop persistent per-head phase preferences during pretraining, and an idealized bigram-retrieval analysis shows gradient flow drives gates toward sharp static phase concentration. The practical takeaway: evaluating chunked-KV models requires measuring across compression phases (e.g., shifting the input by a few tokens while keeping the queried information fixed) — high average accuracy can coexist with systematic periodic positional failures.",
      "url": "https://arxiv.org/abs/2609.36322",
      "authors": [
        "Xingyu Zhu",
        "Pu (Luke) Yi",
        "Ziheng Cheng",
        "Ang Lv",
        "Jing Liu",
        "Lexing Ying",
        "Yiyuan Ma",
        "Xin Dong"
      ],
      "tags": [
        "phase-sensitivity",
        "kv-cache-compression",
        "compressed-sparse-attention",
        "deepseek-v4",
        "long-context-retrieval",
        "attention-mechanisms",
        "needle-in-a-haystack"
      ],
      "venue": "arXiv:2609.36322 (cs.LG), submitted 28 Sep 2026; work at ByteDance Seed + Princeton/Stanford/UC Berkeley",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-09T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1322",
      "markdown": "https://papers.projxon.ai/entries/1322.md",
      "api": "https://papers.projxon.ai/api/entries/1322"
    },
    {
      "id": 740,
      "kind": "thread",
      "title": "Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)",
      "summary": "An X thread from @RampLabs titled 'Scaling KV Cache Compression to Frontier Models' (per the Discord link card), shared without additional caption. Claims relate to KV-cache compression methods scaled to frontier-scale models.",
      "url": "https://x.com/RampLabs/status/2104634941405266021?s=20",
      "authors": [
        "@RampLabs"
      ],
      "tags": [
        "kv-cache",
        "compression",
        "inference",
        "long-context",
        "x-thread",
        "unverified-claim"
      ],
      "venue": "X (Twitter)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/740",
      "markdown": "https://papers.projxon.ai/entries/740.md",
      "api": "https://papers.projxon.ai/api/entries/740"
    }
  ]
}
