arXiv:2607.28699v1 cs.AR

WitCert: KV 캐시 양자화를 위한 건전한 런타임 위험 관측 가능성 및 게이팅

WitCert: Sound Runtime Risk Observability and Gating for KV-Cache Quantization

Fanzhe Wei, Li Liu

제출 2026-07-30

한국어 초록

오늘날 KV 캐시 양자화(quantization)는 오프라인 벤치마크 평균을 통해 검증되며, 배포된 시스템은 압축이 현재 처리 중인 요청을 손상시키고 있는지 여부를 알 수 없습니다. 본 연구에서는 정밀한 어텐션(attention)과 압축된 어텐션 간의 전변동(total variation)에 대해 (층, 헤드, 스텝)별 상한을 제공하는 건전성이 증명된 런타임 측정기, 즉 "KV 양자화를 위한 DTrace"를 제공합니다. 이 측정기는 두 계층으로 구성됩니다. 첫째는 캐시를 보존하는 모든 블랙박스 양자화기 및 모든 쿼리에 대해 건전한 결정론적 밴드 노름 위트니스 상한(적응적 안전, 최악의 경우 코시-슈바르츠 및 RoPE 밴드 유니터리성)이며, 둘째는 명시적인 요청 수준 실패 예산 하에서 제어된 감산 디더링 INT8 양자화기를 위한 더 엄격한 확률론적 인증서입니다(비적응적 쿼리에 대해 기술됨, 핵심 정리는 Lean 4로 기계 검증됨). 세 가지 결과가 있습니다. 관측 가능성: 이 측정기는 환경(environment) 보호 패치를 통해 SGLang에 통합되며, 하나의 텐서(tensor) 함수로 등록된 모든 방식이 라이브 서빙 중에 측정됩니다. 복구: 위트니스가 포화된 곳에서는 위험 순위가 매겨지고 유의미한 곳에서는 인증되는 측정기 기반 게이팅을 통해 벤치마크 규모에서 품질의 하한선을 실증적으로 복원합니다. 예를 들어 고난도 RULER 태스크에서 단순 변환 FP8은 22.8에서 79.7로 회복되며, 압축되지 않은 버전과의 차이는 대응 표본 검정을 통해 [+0.0, +0.8]로 제한됩니다. 분석: 공격적인 방식들은 스텝별 충실도가 아니라 층(layer) 간 오차 상쇄를 통해 성능을 유지합니다. 28개 층 스윕에서 단일 층의 오염만으로는 성능 저하가 발생하지 않았으며(0/28), 인증된 INT8 캐시는 SGLang에서 동일한 메모리로 1.88배 더 많은 KV 토큰을 서빙합니다.

원문 초록

KV-cache quantization is validated today by offline benchmark averages; a deployed system cannot tell whether compression is damaging the request it is serving right now. We give it a provably sound runtime meter, a "DTrace for KV quantization": a per-(layer, head, step) upper bound on the total variation between exact and compressed attention. The meter has two tiers: a deterministic band-norm-witness bound, sound for any cache-preserving black-box quantizer and for any query (adaptive-safe, worst-case Cauchy-Schwarz plus RoPE band-unitarity), and a tighter probabilistic certificate for a controlled subtractively-dithered INT8 quantizer under an explicit request-level failure budget (stated for non-adaptive queries; core theorems machine-checked in Lean 4). Three results. Observability: the meter enters SGLang through an environment-guarded patch, and any scheme registered as one tensor function is measured in live serving. Repair: meter-driven gating, risk-ranked where the witness is saturated and certified where it is informative, empirically restores the quality floor at benchmark scale. For example, raw-cast FP8 improves from 22.8 back to 79.7 on hard RULER tasks, with the difference from uncompressed bounded at [+0.0, +0.8] by a paired test. Analysis: aggressive schemes survive on cross-layer error cancellation, not per-step fidelity. In a 28-layer sweep, no single layer's pollution alone loses anything (0/28), and the certified INT8 cache serves 1.88 times more KV tokens at the same memory in SGLang.

제출 이력

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

  1. arXiv:2607.28699v1제출 시각 미확인

함께 살펴볼 논문

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

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

토론

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