Skip to main content
QUICK REVIEW

[论文解读] ReLU-KAN: New Kolmogorov-Arnold Networks that Only Need Matrix Addition, Dot Multiplication, and ReLU

Qi Qiu, Tao Zhu|arXiv (Cornell University)|Jun 4, 2024
Parallel Computing and Optimization TechniquesComputer Science被引用 13
一句话总结

ReLU-KAN 用 ReLU 基函数替代 KAN 的 B-spline 基函数,以实现全矩阵运算,显著的 GPU 加速、改进的拟合稳定性,并保留对灾难性遗忘的抵抗。

ABSTRACT

Limited by the complexity of basis function (B-spline) calculations, Kolmogorov-Arnold Networks (KAN) suffer from restricted parallel computing capability on GPUs. This paper proposes a novel ReLU-KAN implementation that inherits the core idea of KAN. By adopting ReLU (Rectified Linear Unit) and point-wise multiplication, we simplify the design of KAN's basis function and optimize the computation process for efficient CUDA computing. The proposed ReLU-KAN architecture can be readily implemented on existing deep learning frameworks (e.g., PyTorch) for both inference and training. Experimental results demonstrate that ReLU-KAN achieves a 20x speedup compared to traditional KAN with 4-layer networks. Furthermore, ReLU-KAN exhibits a more stable training process with superior fitting ability while preserving the "catastrophic forgetting avoidance" property of KAN. You can get the code in https://github.com/quiqi/relu_kan

研究动机与目标

  • 通过简化基函数来推动更快、GPU 友好的 Kolmogorov-Arnold Networks (KANs) 的实现。
  • 开发一个基于 ReLU 的基函数,使矩阵计算成为可能,且易于与 PyTorch 等框架集成。
  • 证明 ReLU-KAN 在加速训练、改善拟合精度的同时,保持 KAN 的性质,如避免灾难性遗忘。

提出的方法

  • 引入一个简化的基函数 R_i(x) = [ReLU(e_i − x) × ReLU(x − s_i)]^2 × 16/(e_i − s_i)^4,作为 KAN 中 B-splines 的替代。
  • 将整个基函数计算表达为矩阵运算,以提升 GPU 并行性。
  • 预生成不可训练参数以加速计算,类似于位置编码。
  • 将基函数的加权和表示为卷积运算,以适配标准的深度学习框架。
  • 提供一个简短的 ReLU-KAN 层的 PyTorch 实现,代码不超过 30 行。
  • 推导逐层计算流程,展示如何通过 R_i 基函数的评估形成用于输出的矩阵 F。

实验结果

研究问题

  • RQ1将 KAN 的 B-spline 基函数替换为基于 ReLU 的基函数是否能提升在 GPU 上的训练速度?
  • RQ2ReLU-KAN 能否在单变量和多变量函数上维持或提升 KAN 的拟合精度和稳定性?
  • RQ3在实现可扩展网络结构的同时,ReLU-KAN 是否保持了 KAN 抗灾难性遗忘的能力?

主要发现

  • ReLU-KAN 在从单层到三层模型的训练中比 KAN 快 5 到 20 倍。
  • 对于更大规模的网络,ReLU-KAN 的 GPU 速度提升更加显著,观察到约 20x 的加速。
  • ReLU-KAN 在拟合精度方面超过 KAN,大约在报告的比较中高出两个数量级。
  • ReLU-KAN 的训练相比 KAN 在评估函数中表现出更稳定的收敛,尤其是对于更高频的目标。
  • ReLU-KAN 在实验中保留了 KAN 的灾难性遗忘回避特性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。