arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.04405cs.LGcs.AIcs.CL
收藏

FAS:面向脉冲大语言模型的快速 ANN-SNN 转换

FAS: Fast ANN-SNN Conversion for Spiking Large Language Models

Sichuan University(四川大学);Royal Melbourne Institute of Technology University(皇家墨尔本理工大学)

Long Chen, Xiaotian Song, Andy Song, BaDong Chen, Jiancheng Lv, Yanan Sun

AI总结:

针对脉冲 LLM 训练与转换成本高、性能下降的问题,本文提出两阶段快速 ANN-SNN 转换方法 FAS,通过全参数微调和由粗到细校准实现更优精度、更低延迟与能耗。

摘要:

脉冲大语言模型已被证明在多种场景下是 LLM 的良好替代方案。现有的脉冲 LLM 构建方法,即直接训练和 ANN-SNN 转换,往往存在性能下降以及计算成本较高的问题。为解决这些问题,我们提出了一种新颖的快速 ANN-SNN 转换策略(FAS),它分两个阶段将 LLM 转换为脉冲 LLM。第一阶段对预训练模型进行全参数微调,因此不需要从头进行任何直接训练。第二阶段引入由粗到细的校准方法,以减少转换误差并提高准确率。在四种不同规模 LLM 的语言和视觉-语言任务上的实验表明,FAS 能够实现最先进性能,同时显著降低推理延迟和计算成本。值得注意的是,FAS 仅需 8 个时间步即可取得比 OPT-7B 模型高 3% 的准确率,同时将能耗降低 96.63%。源代码可在 https://github.com/lc783/FAS 获取。

英文摘要:

Spiking Large Language Models have been shown as a good alternative to LLMs in various scenarios. Existing methods for creating Spiking LLMs, i.e., direct training and ANN-SNN conversion, often suffer from performance degradation and relatively high computational costs. To address these issues, we propose a novel Fast ANN-SNN conversion strategy (FAS) that transforms LLMs into spiking LLMs in two stages. The first stage employs a full-parameter fine-tuning of pre-trained models, so it does not need any direct training from scratch. The second stage introduces a coarse-to-fine calibration method to reduce conversion errors and improve accuracy. Experiments on both language and vision-language tasks across four different scales of LLMs demonstrate that FAS can achieve state-of-the-art performance yet with significantly reduced inference latency and computational costs. Notably, FAS only takes eight timesteps to achieve an accuracy of 3\% higher than that of the OPT-7B model, while reducing energy consumption by 96.63\%. The source code is available at https://github.com/lc783/FAS

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑