arXiv:2608.09160v1 cs.LG

SwiftQK: 쿼리-키 정규화를 위한 빠르고 통신 효율적인 텐서 병렬화

SwiftQK: Fast and Communication-Efficient Tensor Parallelism for Query-Key Normalization

Gyudong Kim, Wonjun Han, Young Geun Kim

제출 2026-08-10

한국어 초록

쿼리-키 정규화(Query-Key Normalization, QK-Norm)는 최신 대규모 언어 모델(LLM)의 학습(training) 안정성과 품질을 향상시킵니다. 그러나 텐서 병렬화(tensor parallelism, TP) 환경에서는 정규화 계수가 전체 은닉 벡터에 의존하기 때문에 레이어별 QK-Norm이 GPU 간 추가 통신을 유발합니다. 본 논문에서는 스칼라 정규화 통계만을 교환하고, 데드락으로부터 안전한 지속형 커널(persistent kernel) 내에서 잔여 피어 투 피어(P2P) 리덕션과 독립적인 요소별(element-wise) 연산을 중첩(overlap)하는 다중 GPU RMSNorm 커널인 SwiftQK를 제안합니다. 최근 LLM을 대상으로 한 평가에 따르면, SwiftQK는 전체 벡터 All-Gather를 사용하는 표준 TP QK-Norm 대비 QK-Norm 지연 시간을 81.4~93.9% 단축합니다. 엔드투엔드 서빙 환경에서 SwiftQK는 All-Gather 기반 기준선(baseline) 대비 평균 29.5%, 최적화된 스칼라 집계 구현 대비 14.3%만큼 TPOT을 줄입니다.

원문 초록

Query-Key Normalization (QK-Norm) improves the training stability and quality of modern Large Language Models (LLMs). However, under Tensor Parallelism (TP), layerwise QK-Norm introduces additional cross-GPU communication because the normalization factor depends on the full hidden vector. We present SwiftQK, a multi-GPU RMSNorm kernel that exchanges only scalar normalization statistics and overlaps the remaining Peer-to-Peer reduction with independent element-wise computation in a deadlock-safe persistent kernel. Evaluations on recent LLMs show that SwiftQK reduces QK-Norm latency by 81.4--93.9% relative to the standard TP QK-Norm using full-vector All-Gather. In end-to-end serving, SwiftQK reduces TPOT on average by 29.5% over the All-Gather-based baseline and by 14.3% over an optimized scalar-aggregation implementation.

제출 이력

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

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

함께 살펴볼 논문

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

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

토론

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