LoomKV
A lossless KV cache compression technique that compresses the high bytes of BF16 values using a two-level 3-bit codebook. It supports an external storage tier (tier mode) and a GPU pool (pool mode), increasing the effective capacity of the KV cache without loss of precision.
Timeline (last 90 days)
LoomKV adopts a lossless compression scheme, and the decompressed KV values are bit-for-bit identical to the original BF16 values.
The compression core of LoomKV is a two-level 3-bit codebook calibrated per attention head, applied to the high byte of BF16 (the sign bit plus the upper 7 exponent bits), while the low bits are retained separately.
Tested across nine models, LoomKV compresses BF16 KV to 0.71 of its original size and FP8 KV to 0.85 to 0.87.
LoomKV's tier mode introduces a TileStream mechanism in the external storage layer, so that writes are recorded at exact lengths, length readback is moved off the load path, and retrieval decompresses directly into scattered GPU pages.
On the AgentX workload, LoomKV's tier mode makes the compressed tier layer behave like an original layer with 1.4x capacity amplification.
Near LMCache's LRU cliff, the effective throughput of tier mode is 2.7 to 3.6 times that of the original layer, with average TTFT reduced by 1.9 to 3.1 times.
For repeated prompts, the SSD-to-DRAM promotion mechanism can reduce TTFT by up to 1.7 times.
Tier mode is bit-for-bit identical to the original tier layer, with no semantic deviation in reuse behavior.
LoomKV's pool mode uses FragPack to pack variable-length records into shared-budget GPU pages, which are read in place by a fused decode attention kernel.
The fused decode attention kernel is faster than FlashAttention-3 on BF16, with numerical accuracy on par with the latter.
4 more timeline events
All Facts (14)
LoomKV adopts a lossless compression scheme, and the decompressed KV values are bit-for-bit identical to the original BF16 values.
50%UnverifiedThe compression core of LoomKV is a two-level 3-bit codebook calibrated per attention head, applied to the high byte of BF16 (the sign bit plus the upper 7 exponent bits), while the low bits are retained separately.
50%UnverifiedTested across nine models, LoomKV compresses BF16 KV to 0.71 of its original size and FP8 KV to 0.85 to 0.87.
50%UnverifiedLoomKV's tier mode introduces a TileStream mechanism in the external storage layer, so that writes are recorded at exact lengths, length readback is moved off the load path, and retrieval decompresses directly into scattered GPU pages.
50%UnverifiedOn the AgentX workload, LoomKV's tier mode makes the compressed tier layer behave like an original layer with 1.4x capacity amplification.
50%UnverifiedNear LMCache's LRU cliff, the effective throughput of tier mode is 2.7 to 3.6 times that of the original layer, with average TTFT reduced by 1.9 to 3.1 times.
50%UnverifiedFor repeated prompts, the SSD-to-DRAM promotion mechanism can reduce TTFT by up to 1.7 times.
50%UnverifiedTier mode is bit-for-bit identical to the original tier layer, with no semantic deviation in reuse behavior.
50%UnverifiedLoomKV's pool mode uses FragPack to pack variable-length records into shared-budget GPU pages, which are read in place by a fused decode attention kernel.
50%UnverifiedThe fused decode attention kernel is faster than FlashAttention-3 on BF16, with numerical accuracy on par with the latter.
50%UnverifiedWhen the tier layer is sufficient to hold the working set, pool mode can fit 1.31 to 1.34 times the GPU tokens; in a scenario where the original layer can only hold 8 long requests, it can admit 12 long requests, with queue length and effective throughput roughly comparable to the original layer.
50%UnverifiedOn the trace of an AI IDE, tier mode and pool mode improve effective throughput by 1.24 times and 1.59 times, respectively.
50%UnverifiedIn scenarios where the original capacity is already sufficient, LoomKV's compression brings at most a 2.2% throughput loss.
50%UnverifiedLoomKV is built on LMCache and vLLM, and does not require modifying the engine itself.
50%