SparseDitto:用LLM智能体按稀疏模式定制GPU内核
SparseDitto: Customizing GPU Kernels for Different Sparsity Patterns with LLM-Based Agentic System
不用手写内核了?SparseDitto 用 LLM 智能体自动生成,比 cuSPARSE 平均快 2.7 倍,最高 146 倍。
SparseDitto 是一个基于 LLM 智能体的系统,能按矩阵、算子与目标 GPU 自动生成定制内核,覆盖 SpMV、SpMM、SpGEMM 三种稀疏算子。
论文指出同一 SpMM 任务中 cuSPARSE 在 CSR 与 Blocked-ELL 格式下性能差距最高达 350 倍,现有实现无法在所有稀疏模式上占优。SparseDitto 在 NVIDIA RTX PRO 6000 上相对 cuSPARSE 取得 2.
68 倍几何平均加速,最高 146.61 倍;
在 H200 上平均加速 2.79 倍,最高 78.
5 倍。其生成的 SpMM 内核还让全批次 GCN 训练最高提速 3.
39 倍。
SparseDitto: Customizing GPU Kernels for Different Sparsity Patterns with LLM-Based Agentic System
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.
本条情报归属 AITOP「论文」核心追踪栏目。涉及核心实体与技术议题包括:SparseDitto、GPU内核、稀疏矩阵、LLM智能体,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Shiyang Li, Guangyan Sun, Jinwei Tang, Yanzhi Wang, Mingyi Hong, Caiwen Ding),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 6 家独立信源对该事件进行交叉印证与跟进报道(含 LangChain、NVIDIA AI、techcrunch 等),属于近期高关注度行业信号。