PolyKAN:面向多项式Kolmogorov-Arnold网络变体的高效GPU融合算子
PolyKAN: Efficient Fused GPU Operators for Polynomial Kolmogorov-Arnold Network Variants
AI总结:
针对现有KAN并行实现GPU利用率低的问题,提出融合多项优化技术的GPU加速算子库PolyKAN,可在保证精度一致的前提下大幅提升多项式KAN变体的推理与训练速度。
摘要:
Kolmogorov-Arnold网络(KAN)相比多层感知机具备更强的表达能力与可解释性,在AI for Science领域优势尤为突出,但现有并行实现的GPU利用率较低,阻碍了其实际落地应用。为解决该问题,我们提出GPU加速算子库PolyKAN,这是首个面向KAN及其变体的通用开源实现。PolyKAN将多项式KAN层的前向与反向传播融合为一组精简的优化CUDA核,其设计依托四项正交技术:一是采用带线性插值的查找表替代运行时开销高昂的数学库函数;二是采用2D分块策略在保留内存局部性的前提下挖掘线程级并行性;三是采用两阶段归约方案,将分散的原子更新转换为单次可控合并步骤;四是采用系数布局重排方法,在分块调度下实现单位步长读取。我们以KAN变体Chebyshev KAN为案例开展测试,在高端GPU与消费级GPU上的语音、音频增强、表格回归任务中,PolyKAN相比Triton+cuBLAS基准实现推理速度提升1.2-10倍、训练速度提升1.4-12倍,且精度完全一致。
英文摘要:
Kolmogorov-Arnold Networks (KANs) promise higher expressive capability and stronger interpretability than Multi-Layer Perceptron, particularly in the domain of AI for Science. However, practical adoption has been hindered by low GPU utilization of existing parallel implementations. To address this challenge, we present a GPU-accelerated operator library, named PolyKAN which is the first general open-source implementation of KAN and its variants. PolyKAN fuses the forward and backward passes of polynomial KAN layers into a concise set of optimized CUDA kernels. Four orthogonal techniques underpin the design: (i) \emph{lookup-table} with linear interpolation that replaces runtime expensive math-library functions; (ii) \emph{2D tiling} to expose thread-level parallelism with preserving memory locality; (iii) a \emph{two-stage reduction} scheme converting scattered atomic updates into a single controllable merge step; and (iv) \emph{coefficient-layout reordering} yielding unit-stride reads under the tiled schedule. Using a KAN variant, Chebyshev KAN, as a case-study, PolyKAN delivers $1.2$--$10\times$ faster inference and $1.4$--$12\times$ faster training than a Triton + cuBLAS baseline, with identical accuracy on speech, audio-enhancement, and tabular-regression workloads on both highend GPU and consumer-grade GPU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。