Fathom: 오프로드된 KV 캐시 기반 희소 디코딩을 위한 쿼리별 읽기 깊이 기법
Fathom: Per-Query Read Depth for Sparse Decoding over Offloaded KV Caches
한국어 초록
에이전트 세션이 100만 토큰에 달하고 여러 세션이 동시에 상주하는 환경에서는 KV 캐시와 이를 순위 매기는 인덱스가 호스트 메모리에 위치하게 되며, top-k 단계를 위해 모든 n개의 키 순위를 매기는 스캔 작업이 디코딩 성능을 제한하는 병목 트래픽이 됩니다. 본 논문에서는 각 쿼리가 각 키 채널을 몇 비트씩 읽을지 결정하는 키 스캔 기법인 Fathom을 제시합니다. 4비트 K 캐시는 비트 평면(bit plane) 형태의 채널 우선(channel-major) 방식으로 저장되므로, t개 평면의 접두 문맥은 채널의 t비트 양자화기(quantizer)와 정확히 일치하며, 쿼리는 채널의 분산 가중 중요도에 따라 역 워터필링(reverse water-filling) 방식으로 비트 예산을 할당합니다. Qwen3-8B 기반의 100만 토큰 환경에서 Fathom의 디코드 단계는 Double Sparsity, Loki 및 SparQ(r=32)의 136비트 스캔 대비 GPU 시간 기준으로 1.67배 빠르며, SparQ의 68비트 읽기(r=16)와 동일한 GPU 시간 내에 7개 모델 및 컨텍스트 설정 중 6개에서 더 낮은 어텐션 오차를 보이면서 18% 적은 바이트를 읽어옵니다. RULER 형태의 태스크에서 토큰별 스캔은 정확한 top-k 디코딩과 일치하며, 실제 코딩 에이전트 세션에서 Fathom은 92비트만으로 가장 정확한 136비트 스캔 수준의 스텝 일치도(step agreement)를 달성합니다. 저장소는 양자화 서빙 스택이 이미 보유한 4비트 K 복사본을 활용하며, 인덱스가 GPU 메모리에 상주하는 경우에는 이 방법으로 속도가 향상되지 않습니다.
원문 초록
When agentic sessions run to a million tokens with many sessions resident at once, the KV cache and the index that ranks it live in host memory, and the scan that ranks all n keys for a top-k step becomes the traffic that bounds decoding. We present Fathom, a key scan in which each query decides how many bits of each key channel to read. The 4-bit K cache is stored channel-major as bit planes, so a prefix of t planes is exactly the channel's t-bit quantizer, and the query spends its bit budget by reverse water-filling over the variance-weighted importance of its channels. At one million tokens on Qwen3-8B a decode step is 1.67x faster in GPU time than with the 136-bit scans of Double Sparsity, Loki and SparQ r=32, and in the same GPU time as SparQ's 68-bit read (r=16) Fathom reads 18% fewer bytes with lower attention error on six of seven model and context settings. On RULER-style tasks every per-token scan matches exact top-k decoding, and on real coding-agent sessions Fathom reaches the step agreement of the most accurate 136-bit scan at 92 bits. The store is the 4-bit K copy a quantized serving stack already holds, and the method is not faster when the index is resident in GPU memory.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.17652v3제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.