FlashSketch: GPU上快速稀疏Sketching的Sketch-内核协同设计
FlashSketch: Sketch-Kernel Co-Design for Fast Sparse Sketching on GPUs
AI总结:
FlashSketch通过设计BlockPerm-SJLT稀疏Sketch和优化CUDA内核,实现了GPU上快速稀疏Sketching的高效与鲁棒性平衡,提升了Sketching质量和速度的帕累托前沿。
摘要:
稀疏Sketch如稀疏Johnson-Lindenstrauss变换是随机数值线性代数中的核心基础,因为它们利用随机稀疏性来降低Sketching的算术成本,同时仍提供强的近似保证。然而,这种随机稀疏性与现代GPU上的高效实现相矛盾,因为它导致不规则的内存访问模式,从而降低内存带宽利用率。受这种张力的启发,我们追求一种Sketch-内核协同设计方法:我们设计了一种新的稀疏Sketch家族,BlockPerm-SJLT,其稀疏结构被选择以启用FlashSketch,即一个相应的优化CUDA内核,用于高效实现这些Sketch。BlockPerm-SJLT的设计引入了一个可调参数,明确权衡GPU效率与Sketching鲁棒性之间的张力。我们为BlockPerm-SJLT在无偏子空间嵌入(OSE)框架下提供了理论保证,并分析了可调参数对Sketching质量的影响。我们实证评估了FlashSketch在标准RandNLA基准以及一个称为GraSS的端到端ML数据归因流水线上的表现。FlashSketch在多种情况和任务中推动了Sketching质量与速度的帕累托前沿,并在全局几何均速提升上达到了约1.7倍的先前最先进GPU Sketches的提升。
英文摘要:
Sparse sketches such as the sparse Johnson-Lindenstrauss transform are a core primitive in randomized numerical linear algebra because they leverage random sparsity to reduce the arithmetic cost of sketching, while still offering strong approximation guarantees. Their random sparsity, however, is at odds with efficient implementations on modern GPUs, since it leads to irregular memory access patterns that degrade memory bandwidth utilization. Motivated by this tension, we pursue a sketch-kernel co-design approach: we design a new family of sparse sketches, BlockPerm-SJLT, whose sparsity structure is chosen to enable FlashSketch, a corresponding optimized CUDA kernel that implements these sketches efficiently. The design of BlockPerm-SJLT introduces a tunable parameter that explicitly trades off the tension between GPU-efficiency and sketching robustness. We provide theoretical guarantees for BlockPerm-SJLT under the oblivious subspace embedding (OSE) framework, and also analyze the effect of the tunable parameter on sketching quality. We empirically evaluate FlashSketch on standard RandNLA benchmarks, as well as an end-to-end ML data attribution pipeline called GraSS. FlashSketch pushes the Pareto frontier of sketching quality versus speed, across a range of regimes and tasks, and achieves a global geomean speedup of roughly 1.7x over the prior state-of-the-art GPU sketches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。