Turbo-GMM: FlashAttention에서 착안한 GPU 가속 가우시안 혼합 모델
Turbo-GMM: FlashAttention-Inspired GPU-Accelerated Gaussian Mixture Model
한국어 초록
가우시안 혼합 모델(GMM)에 대한 기댓값 최대화(EM)는 $N$개의 데이터 포인트를 $K$개의 혼합 성분에 대해 점수화해야 한다. 기존의 융합 GPU 구현, 특히 Flash-GMM은 $N \times K$ 책임도 행렬의 구체화를 제거하지만, 정규화 항을 계산하고 충분통계량을 누적하기 위해 성분 차원을 두 번 순회한다. 본 논문은 성분 차원을 한 번 순회하는 동안 책임도 정규화와 충분통계량 누적을 완료하는 단일 스윕 융합 EM 커널인 Turbo-GMM을 제안한다. Turbo-GMM은 성분 축 전체를 온칩에 유지함으로써, 공개된 두 번 스윕 Flash-GMM 구현에서 필요한 두 번째 점수 계산을 피한다. 적용 가능성은 레지스터 압력, 점유율, 성분 및 특징 차원에 의해 제한되므로, 성분 수가 상대적으로 적은 대규모 데이터셋에 특히 적합하다. 더 큰 구성에서는 확립된 융합 설계를 따르는 2단계 대체 경로를 사용한다. 실수 연산에서 표준 EM과의 대수적 동등성을 증명하고, NVIDIA A100에서 16개 구성을 평가한다. 보고된 벤치마킹 프로토콜에서 Turbo-GMM은 평가 대상 Flash-GMM 구현 대비 중앙값 $2.15\times$의 속도 향상을 달성하며, PyTorch 및 \texttt{scikit-learn} 대비 각각 최대 $5.3\times$와 $9.9\times$의 속도 향상을 달성한다. 이 결과는 단일 스윕 성분 순회의 잠재력을 보여주는 동시에, 온칩 자원 제약이 이 접근법의 주요 한계임을 확인해 준다.
원문 초록
Expectation-maximization (EM) for Gaussian mixture models (GMMs) requires scoring $N$ data points against $K$ mixture components. Prior fused GPU implementations, notably Flash-GMM, eliminate materialization of the $N \times K$ responsibility matrix but traverse the component dimension twice to compute normalization terms and accumulate sufficient statistics. We introduce Turbo-GMM, a single-sweep fused EM kernel that completes responsibility normalization and sufficient-statistic accumulation within one traversal of the component dimension. By retaining the complete component axis on chip, Turbo-GMM avoids the second score computation required by the released two-sweep Flash-GMM implementation. Its applicability is limited by register pressure, occupancy, and the component and feature dimensions, making it particularly suitable for large datasets with relatively small numbers of components. For larger configurations, Turbo-GMM employs a two-pass fallback following the established fused design. We establish algebraic equivalence to standard EM in real arithmetic and evaluate sixteen configurations on an NVIDIA A100. Under the reported benchmarking protocol, Turbo-GMM achieves a median $2.15\times$ speedup over the evaluated Flash-GMM implementation and up to $5.3\times$ and $9.9\times$ over PyTorch and \texttt{scikit-learn}, respectively. The results demonstrate the potential of single-sweep component traversal while identifying on-chip resource constraints as the principal limitation of this approach.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2611.02449v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.