arXiv:2610.11245v1 cs.LG

중요한 것만 읽기: KV 캐시를 위한 쿼리 적응형 양자화

Read What Matters: Query-Adaptive Quantization for KV Caches

Siddharth Bhandari, Lucas Gretta, Krishna Balasubramanian, Shiva Kasiviswanathan

제출 2026-10-08

저자 비고

arXiv Comments

50 pages, 3 figures, 12 tables

한국어 초록

KV 캐시 항목은 향후 쿼리를 알 수 없는 시점에 저장되지만, 각 디코딩 쿼리는 서로 다른 위치에서 정밀도를 필요로 합니다. 본 연구에서는 보존되는 비트와 쿼리당 가져오는 비트에 대한 별도의 예산을 사용하여 이러한 불일치를 분석합니다. ReadKV는 접두사(prefix)가 서로 다른 재구성 정밀도를 지원하는 점진적 코드(progressive code)에 각 키와 값을 저장합니다. 각 쿼리에 대해 쿼리를 사용하여 키-채널 접두사를 할당하고, 재구성된 키로부터 어텐션을 계산한 다음, 해당 어텐션을 사용하여 값-토큰 접두사를 할당합니다. 저장된 항목은 변경되지 않은 상태로 유지됩니다. 각 단계는 고정된 예산 내에서 보정된 왜곡 목적 함수를 최적화하며, 저하되는 정밀화 이득 하에서 정확한 할당을 증명하고 이러한 목적 함수를 어텐션 출력 오차와 연결합니다. 또한 동일한 읽기 예산에서 경쟁 인코더 및 디코더에 제한이 없더라도 쿼리 의존적 접근이 모든 쿼리 독립적 리더(reader)보다 엄격하게 우수한 성능을 보이는 유한 차원 어텐션 계열을 제시합니다. 6개의 베이스 모델에 걸쳐 8비트 캐시에서 평균 4비트를 읽을 경우 C4 퍼플렉시티 증가는 최대 0.66%에 불과하며, 16비트 캐시 대비 약 4분의 1의 논리적 읽기와 절반의 보존 용량만을 사용합니다. 동일한 페이로드 읽기 예산에서 4비트를 저장하고 전체를 읽는 방식보다 일관되게 더 정확합니다. 각 쿼리가 가져오는 비트보다 더 많은 비트를 보존하는 방식은 가중치보다 스텝당 이동하는 캐시 바이트가 비용을 지배하는 롱 컨텍스트(long-context) 디코딩을 목표로 합니다. 두 개의 인스트럭션 튜닝 모델을 대상으로 한 롱 컨텍스트 질의응답 및 검색 평가를 통해 추가적인 품질 검증을 제공합니다. NVIDIA A10G에서 테스트한 8K 토큰, 배치 크기 1, 단일 층 워크로드에서 평균 2비트 페이로드 읽기 예산을 가진 제한된 8비트 ReadKV 리더는 테스트된 TurboQuant 코덱보다 지연 시간이 39% 더 낮았습니다.

원문 초록

KV-cache entries are stored before their future queries are known, but each decoding query needs precision in different places. We study this mismatch using separate budgets for retained bits and bits fetched per query. ReadKV stores each key and value in a progressive code whose prefixes support different reconstruction precisions. For each query, it allocates key-channel prefixes using the query, computes attention from the reconstructed keys, and then allocates value-token prefixes using that attention. Stored entries remain unchanged. Each stage optimizes a calibrated distortion objective under a fixed budget; we prove exact allocation under diminishing refinement gains and relate these objectives to attention-output error. We also exhibit a finite-dimensional attention family where query-dependent access strictly outperforms every query-independent reader at the same read budget, even with unrestricted competing encoders and decoders. Across six base models, reading four bits on average from an eight-bit cache increases C4 perplexity by at most 0.66%, using about one quarter of the logical reads and half the retained capacity of a 16-bit cache. It is consistently more accurate than storing and fully reading four bits at the same payload-read budget. Retaining more bits than each query fetches is aimed at long-context decoding, where the cache bytes moved per step, rather than the weights, dominate cost. Long-context question answering and retrieval on two instruction-tuned models provide additional quality evidence. On the tested 8K-token, batch-one, single-layer workload on an NVIDIA A10G, a restricted eight-bit ReadKV reader with a two-bit mean payload-read budget has 39% lower latency than the tested TurboQuant codec.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2610.11245v1

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.