Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

SPHERICAL KV: Angle-Domain Attention and Rate-Distortion Retention for Efficient Long-Context Inference

About

Long-context inference is increasingly constrained by the KV cache: resident memory grows with context length, and decoding becomes limited by repeated High Bandwidth Memory (HBM) streaming rather than arithmetic. Existing methods such as eviction, windowing, quantization, and offloading reduce footprint, but often leave the critical-path bottleneck only partially addressed, especially when compressed states must still be reconstructed into dense vectors during decoding. We present Spherical KV, a long-context inference method that treats KV allocation as a rate-distortion problem grounded in attention geometry for efficient decoding. The method is built on two ideas: (i) represent directional information cheaply in the decode hot loop, and (ii) allocate retention and precision according to estimated future utility. Its first component, Angle-Domain Attention (ADA), stores keys in a spherical parameterization consisting of a scalar radius and compact angle codes, and computes attention logits directly from these codes without reconstructing dense keys. This preserves a paged, block-local, fusion-friendly decode path and directly targets HBM traffic in realistic serving settings. Its second component, Rate-Distortion Retention (RDR), jointly chooses keep/drop decisions and precision tiers per token and head under a fixed budget, producing tier-homogeneous pages with lightweight metadata and coalesced reads. Together, ADA and RDR provide a deployment-oriented mechanism for reducing KV residency while preserving decode efficiency.

Anay Chauhan, Gurucharan Marthi Krishna Kumar, Arion Das, Amit Dhanda, Vinija Jain, Aman Chadha, Amitava Das• 2026

Related benchmarks

TaskDatasetResultRank
End-to-end decode throughput8K Context Length
Throughput (tok/s)268.5
6
End-to-end decode throughputContext Length 32K
Decode Throughput (tok/s)183
6
End-to-end decode throughputcontext length 128K
Throughput (tok/s)108
6
Large Language Model Inference8K context (test)
Q Score81.01
6
Long-context evaluation128K-context
Quality Score (Q)79.58
6
Long-context language modeling32K context
Quality Score79.03
6
KV Cache Footprint EvaluationContext Length 8K 1.0 (test)
Effective KV Cache Size (dense)1.66e+3
3
KV Cache Footprint EvaluationContext Length 32K 1.0 (test)
Effective b_KV (dense)1.86e+3
3
KV Cache Footprint EvaluationContext Length 128K 1.0 (test)
Effective b_KV (dense)2.36e+3
3
Long-context language modelingMatched Quality Evaluation Suite 8K--
3
Showing 10 of 14 rows

Other info

Follow for update