{
  "id": 621,
  "kind": "other",
  "title": "Shard: getting to 10x KV cache compression",
  "summary": "Engineering writeup of Shard, a drop-in HuggingFace Cache. Reimplementing TurboQuant stalled around 4-6x; authors split K and V: undo RoPE then PCA+int4 on K (rank 192/1024, DP bit allocation with a 4x drop penalty) and Hadamard + 4-d vector quantization on V. Attention scores run on int4 PCA coeffs via a relative-Delta RoPE identity; V Hadamard is applied after the weighted sum. 4 FP16 sink tokens + 64-token recency window. Decode stream uses data-oblivious Hadamard+Lloyd-Max (8-bit path 750/750 FP16 match at 150 tokens). Llama-3.1-8B: 10x at 8K / 11.2x at 32K, NIAH recall 1.000 across 4K-32K, LongBench-E avg 16.19 vs FP16 16.24, WikiText-2 PPL +0.26%. Decode throughput 0.39-0.49x FP16, so a memory win not a latency win. Code krish1905/shard.",
  "body": "",
  "notes": "Primary: technical blog. Discord/X https://x.com/krishgarg/status/2059041521576648980 via fxtwitter (also http://krishgarg.com/shard). Code https://github.com/krish1905/shard (MIT). Tweet credits @kirrithan; second author name not given so left off. Compares to TurboQuant arXiv 2504.19874 (ICLR 2026); papers_local id 606 is a different TurboQuant-related GitHub (RyanCodrai/turbovec). Inference method, not a new hosted corpus, so no datasets_local row.",
  "url": "https://krishgarg.com/shard",
  "links": [],
  "authors": [
    "Krish Garg"
  ],
  "tags": [
    "shard",
    "kv-cache",
    "turboquant",
    "pca",
    "vector-quantization",
    "llama",
    "inference",
    "blog",
    "x"
  ],
  "topics": "KV cache compression, LLM inference",
  "venue": "krishgarg.com",
  "publisher": "",
  "source": "web",
  "language": "en",
  "access": "free",
  "license": "MIT",
  "published_year": null,
  "added_at": "2026-08-14T19:20:00.000Z",
  "verified_at": "2026-08-14T19:20:00.000Z",
  "attrs": {
    "scale": "Llama-3.1-8B-Instruct on one NVIDIA B200. 10.0x at 8K (102 MB stored) / 11.2x at 32K (366 MB). GitHub 97 stars / 10 forks at check.",
    "purpose": "Compress Llama-3.1-8B KV about 10x with no NIAH or LongBench hit via asymmetric K/V methods",
    "author_type": "human",
    "time_period": "Tweet 2026-05-25. Discord posted 2026-05-26. Repo created 2026-04-18, pushed 2026-08-11."
  },
  "enrichment": {},
  "enriched_at": "2026-10-03T14:33:38.107Z",
  "license_class": "permissive",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "640",
    "needs_deep_eval": "no",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/621",
  "markdown": "https://papers.projxon.ai/entries/621.md",
  "api": "https://papers.projxon.ai/api/entries/621",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "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": 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"
    },
    {
      "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": 1118,
      "kind": "paper",
      "title": "WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inference",
      "summary": "arXiv 2512.22737. Proposes WeDLM: Topological Reordering places observed tokens in the physical prefix while preserving RoPE logical positions so masked recovery works under a strict causal mask; Dual-Stream Masking reduces train–inference gap; Streaming Parallel Decoding commits confident left-to-right prefixes with a dynamic sliding window. Instantiated on Qwen2.5-7B and Qwen3-8B (100B continued pretrain + SFT). Reports ~3× speedups on reasoning vs vLLM-served AR and up to ~10× in low-entropy regimes while matching/improving quality. Code/models: github.com/Tencent/WeDLM; HF tencent/WeDLM collection; project wedlm.github.io.",
      "url": "https://arxiv.org/abs/2512.22737",
      "authors": [
        "Aiwei Liu",
        "Minghua He",
        "Shaoxun Zeng",
        "Sijun Zhang",
        "Linhao Zhang",
        "Chuhan Wu",
        "Wei Jia",
        "Yuan Liu",
        "Xiao Zhou",
        "Jie Zhou"
      ],
      "tags": [
        "wedlm",
        "diffusion-lm",
        "causal-attention",
        "kv-cache",
        "tencent",
        "qwen3",
        "arxiv-2512.22737",
        "inference"
      ],
      "venue": "arXiv / WeChat AI (Tencent); Peking University; Tsinghua University",
      "source": "arxiv",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-09-02T17:40:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 44,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1118",
      "markdown": "https://papers.projxon.ai/entries/1118.md",
      "api": "https://papers.projxon.ai/api/entries/1118"
    },
    {
      "id": 595,
      "kind": "code",
      "title": "n8loom",
      "summary": "Python library (mlx_lm + Transformers) that stores per-node KV-cache fragments and concatenates the ancestor path when generating, so many ToT branches can share prefix cache without duplicating the full prompt cache at each node. Core types are Heddle (a reasoning node) and Loom (chat-root Heddle); ramify/crown helpers batch- or stream-expand children. Llama-architecture only. pip install n8loom; optional FastAPI example server. CC0.",
      "url": "https://github.com/N8python/n8loom",
      "authors": [
        "N8python"
      ],
      "tags": [
        "n8loom",
        "tree-of-thought",
        "kv-cache",
        "mlx",
        "llama",
        "loom",
        "heddle"
      ],
      "venue": "N8python (GitHub)",
      "source": "github",
      "license": "CC0-1.0",
      "published_year": 2025,
      "added_at": "2026-08-14T18:35:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 80,
      "page": "https://papers.projxon.ai/entries/595",
      "markdown": "https://papers.projxon.ai/entries/595.md",
      "api": "https://papers.projxon.ai/api/entries/595"
    },
    {
      "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"
    }
  ]
}
