arXiv:2610.11201v1 cs.DC

PageWeaver: 희소 어텐션을 위한 KV 유도 쿼리 결합

PageWeaver: KV-Guided Query Unions for Sparse Attention

Zhiyuan Li, Zihan Li, Zefang Yuan, Lei Wang, Hao Wang

제출 2026-10-08

저자 비고

arXiv Comments

11 pages, 9 figures, 2 tables. Zhiyuan Li and Zihan Li contributed equally

한국어 초록

동적 희소 어텐션(dynamic sparse attention)은 각 쿼리가 선택하는 KV 페이지를 제한하지만, 지지 집합(support)이 작다고 해서 반드시 효율적인 GPU 연산으로 이어지는 것은 아닙니다. 쿼리 결합(query union)은 페이지 로드를 공유하고 텐서 코어(Tensor Core) 타일을 채우며, 이들의 비용은 어떤 쿼리들이 함께 묶이느냐에 따라 달라집니다. 본 논문에서는 각 쿼리의 원래 지지 집합과 완전한 출력 소유권을 보존하면서 선택된 페이지 친화도(affinity)를 활용해 쿼리 그룹을 구성하는 실행 설계인 PageWeaver를 제시합니다. 범위가 제한된 GPU 탐색을 통해 쿼리 ID를 생성하며, ID를 인식하는 2-CTA 커널은 재정렬된 Q 텐서나 페이지 간 부분 출력을 실체화(materialize)하지 않고 이를 사용합니다. 직접적인 KV 페이지 결합 구현은 비로컬 재사용 및 축소(reduction) 비용에 대한 상호보완적인 설계 연구를 제공합니다. 전체적으로 FP8 KV를 사용할 때, H200 Union8 구현은 6개의 캡처에서 측정된 FlashInfer 경로 대비 1.70배의 기하평균 전체 호출 속도 향상을 달성합니다. 온라인 재그룹화는 선택된 5개의 64K 컨텍스트 캡처에서 지연 시간을 3.26-7.66% 추가로 단축합니다. 전체 모델 프리필(prefill) 처리량은 테스트된 네이티브 경로보다 7.88-14.36% 더 높으며, 증분 재그룹화 이점은 상대적으로 작아 32K/64K에서 0.47-0.73%의 중앙값 향상을 보이고 8K에서는 성능 저하를 보입니다. B300 비교를 통해서는 준비 비용과 더 강력한 네이티브 커널로 인해 이러한 이점이 사라지는 사례들을 규명합니다. 이러한 결과는 실행 그룹 재사용과 이를 온라인에서 활용하는 데 드는 전체 비용을 분리하여 보여줍니다.

원문 초록

Dynamic sparse attention limits the KV pages selected by each query, but a small support does not necessarily yield efficient GPU work. Query unions share page loads and populate Tensor Core tiles; their cost depends on which queries are grouped together. We present PageWeaver, an execution design that uses selected-page affinity to assemble query groups while preserving each query's original support and complete output ownership. A bounded GPU search produces query IDs, and an ID-aware two-CTA kernel consumes them without materializing reordered Q tensors or cross-page partial outputs. A direct KV-page union implementation provides a complementary design study of nonlocal reuse and reduction cost. With FP8 KV throughout, the H200 Union8 implementation achieves a 1.70x geometric-mean complete-call speedup over the measured FlashInfer path on six captures. Online regrouping further lowers latency by 3.26-7.66% on five selected 64K-context captures. Whole-model prefill throughput is 7.88-14.36% above the tested native path; the incremental regrouping benefit is smaller, with observed median gains of 0.47-0.73% at 32K/64K and regressions at 8K. A B300 comparison identifies cases where preparation cost and a stronger native kernel remove the advantage. These results separate execution-group reuse from the complete cost of exploiting it online.

제출 이력

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

  1. arXiv:2610.11201v1

함께 살펴볼 논문

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

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

토론

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