SparseDitto: LLM 기반 에이전트 시스템을 통해 다양한 희소성 패턴에 맞춘 GPU 커널 커스터마이징
SparseDitto: Customizing GPU Kernels for Different Sparsity Patterns with LLM-Based Agentic System
한국어 초록
희소 행렬 커널(kernel)은 과학 계산, 그래프 분석, 머신러닝의 기초가 됩니다. 이들의 GPU 성능은 입력의 희소성(sparsity) 패턴과 실행 전략에 크게 의존합니다. 동일한 행렬에 대한 동일한 SpMM에서도 cuSPARSE는 CSR과 Blocked-ELL 간에 350배의 성능 격차를 보입니다. 다양한 데이터 포맷, 특화된 시스템, 희소 컴파일러를 분석한 결과, 어떤 단일 구현도 여러 희소성 패턴과 연산자 전반에서 일관되게 우위를 점하지 못함을 확인했습니다. 이는 각 워크로드 및 타깃 GPU에 맞추어 표현 방식, 실행 전략, 하드웨어 매핑을 적응시킬 수 있는 시스템의 필요성을 시사합니다. 본 논문에서는 각 행렬, 연산자, 타깃 GPU에 맞춘 GPU 커널을 구축하는 LLM 기반 시스템인 SparseDitto를 제시합니다. SparseDitto는 통일된 설계 프레임워크 내에서 SpMV, SpMM, SpGEMM을 지원합니다. 경량 덧셈 모델(additive model)은 입력 행렬의 구조적 특징을 활용하여 기존 전략들의 순위를 매깁니다. 이후 아키텍처 인지형 플래너가 여러 후보 설계를 제안하며, 코딩 및 검증 에이전트가 타깃 GPU에서의 측정값을 바탕으로 이를 구현하고 개선합니다. 세 가지 희소 연산자와 다양한 행렬 세트에 걸쳐, SparseDitto는 NVIDIA RTX PRO 6000 GPU에서 cuSPARSE 대비 기하평균 2.68배(최대 146.61배)의 속도 향상을 달성했습니다. NVIDIA H200 GPU에서는 기하평균 2.79배(최대 78.5배)의 속도 향상을 기록했습니다. 또한 생성된 SpMM 커널은 풀배치(full-batch) GCN 학습(training) 속도를 최대 3.39배 가속합니다.
원문 초록
Sparse matrix kernels are fundamental to scientific computing, graph analytics, and machine learning. Their GPU performance depends strongly on the input sparsity pattern and execution strategy. For the same SpMM on the same matrix, cuSPARSE exhibits a 350x performance gap between CSR and Blocked-ELL. Our study of multiple data formats, specialized systems, and sparse compilers shows that no single implementation consistently dominates across sparsity patterns and operators. This motivates a system that can adapt its representation, execution strategy, and hardware mapping to each workload and target GPU. We present SparseDitto, an LLM-based system that constructs a GPU kernel for each matrix, operator, and target GPU. SparseDitto supports SpMV, SpMM, and SpGEMM within a unified design framework. A lightweight additive model ranks established strategies using structural features of the input matrix. An architecture-aware planner then proposes several candidate designs. Coding and verification agents implement and refine them using measurements from the target GPU. Across three sparse operators and a diverse set of matrices, SparseDitto achieves a geometric-mean speedup of 2.68x over cuSPARSE on an NVIDIA RTX PRO 6000 GPU, with a maximum of 146.61x. On an NVIDIA H200 GPU, it achieves 2.79x, with a maximum of 78.5x. Its generated SpMM kernels also accelerate full-batch GCN training by up to 3.39x.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.05033v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.