面向轻量边缘推理的Kolmogorov-Arnold网络(KAN)硬件加速
Hardware Acceleration of Kolmogorov-Arnold Network (KAN) for Lightweight Edge Inference
AI总结:
本文首次采用算法-硬件协同设计方法,结合算法层优化与电路层ACIM相关技术,实现KAN的硬件加速,在22nm工艺下相比传统DNN硬件大幅降低面积与能耗并提升精度。
摘要:
近期,一种名为Kolmogorov-Arnold Networks(KAN,柯尔莫哥洛夫-阿诺德网络)的新型模型被提出,它通过带可训练系数的参数化B样条函数,有望用数量级更少的参数实现传统深度神经网络(DNNs)的功能。然而,KAN中的B样条函数给硬件加速带来了新的挑战。评估B样条函数可通过查找表(LUTs)直接映射B样条函数来实现,从而降低计算资源需求,但该方法仍需要大量电路资源(LUT、多路复用器MUX、解码器等)。本文首次采用算法-硬件协同设计方法来加速KAN。提出的算法层技术包括对齐对称性与PowerGap KAN硬件感知量化、KAN稀疏性感知映射策略;电路层技术包括搭配模拟存内计算(ACIM)电路的N:1时间调制动态电压输入生成器。研究还基于台积电(TSMC)22nm RRAM-ACIM原型芯片测得的统计数据,评估了工艺偏差导致的部分和误差等非理想效应的影响。采用搜索得到的最优KAN超参数,并在22nm工艺节点实现优化电路后,与传统DNN硬件相比,我们可将硬件面积减少41.78倍,能耗降低77.97倍,同时精度提升3.03%。
英文摘要:
Recently, a novel model named Kolmogorov-Arnold Networks (KAN) has been proposed with the potential to achieve the functionality of traditional deep neural networks (DNNs) using orders of magnitude fewer parameters by parameterized B-spline functions with trainable coefficients. However, the B-spline functions in KAN present new challenges for hardware acceleration. Evaluating the B-spline functions can be performed by using look-up tables (LUTs) to directly map the B-spline functions, thereby reducing computational resource requirements. However, this method still requires substantial circuit resources (LUTs, MUXs, decoders, etc.). For the first time, this paper employs an algorithm-hardware co-design methodology to accelerate KAN. The proposed algorithm-level techniques include Alignment-Symmetry and PowerGap KAN hardware aware quantization, KAN sparsity aware mapping strategy, and circuit-level techniques include N:1 Time Modulation Dynamic Voltage input generator with analog-CIM (ACIM) circuits. The impact of non-ideal effects, such as partial sum errors caused by the process variations, has been evaluated with the statistics measured from the TSMC 22nm RRAM-ACIM prototype chips. With the best searched hyperparameters of KAN and the optimized circuits implemented in 22 nm node, we can reduce hardware area by 41.78x, energy by 77.97x with 3.03% accuracy boost compared to the traditional DNN hardware.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。