arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.20289cs.LGcs.AI
收藏

插件式脉冲运算符:突破脉冲变换器中的非线性瓶颈

Plug-and-Play Spiking Operators: Breaking the Nonlinearity Bottleneck in Spiking Transformers

IASM, Harbin Institute of Technology, China(哈尔滨工业大学人工智能研究所,中国);School of Artificial Intelligence, Jilin University, China(吉林大学人工智能学院,中国)

Xinzhe Yuan, Xiang Peng, Bin Gu, Huan Xiong

AI总结:

本文提出了一种插件式框架,通过将Transformer中的非线性运算分解为三个基本算子(除法、指数和ℓ2范数),并利用LIF神经元群体和轻量级位移缩放实现脉冲友好的近似,从而在不需微调的情况下支持常见的Transformer非线性运算。

摘要:

ANN到SNN的转换提供了一条实用且无需训练的途径来构建脉冲大规模语言模型。然而,当前的流程主要关注于脉冲驱动实现Transformer线性代数运算,而对关键非线性运算的支持有限。这种差距限制了与神经形态风格执行约束的兼容性,其中此类非线性通常需要除法、指数或范数计算,这些计算并不自然支持于标准的泄漏积分-放电动力学。为了解决这个问题,我们提出了一种插件式框架,实现了Transformer非线性的脉冲友好的近似,并整合到现有的ANN到SNN流程中。我们的方法将这些非线性计算分解为三个反复出现的基本算子——除法、指数和ℓ2范数——并通过利用LIF神经元群体进行群体计算,并结合轻量级位移缩放以避免浮点运算来实现它们。通过将这些基本算子作为模块化运算块进行组合,我们的框架支持常见的Transformer非线性运算(例如Softmax、SiLU和归一化),而无需任何微调。在一系列LLM Transformer上的实验表明,选择性地替换目标非线性运算符在所有评估任务中导致的精度下降少于1%。

英文摘要:

ANN-to-SNN conversion offers a practical, training-free route to spiking large language models. However, current pipelines primarily focus on spike-driven realizations for Transformer linear-algebra operations, while providing limited support for key nonlinear operators. This gap limits compatibility with neuromorphic-style execution constraints, where such nonlinearities typically require division, exponentiation, or norm computations that are not naturally supported by standard leaky integrate-and-fire dynamics. To solve this problem, we propose a plug-and-play framework that implements spike-friendly approximations for Transformer nonlinearities and integrates into existing ANN-to-SNN pipelines. Our method decomposes these nonlinear computations into three recurring primitives -- division, exponentiation, and $\ell_2$ norms -- and realizes them via population computation using LIF neuron groups, combined with lightweight bit-shift scaling to avoid floating-point arithmetic. By composing these primitives as modular operator blocks, our framework supports common Transformer nonlinearities (e.g., Softmax, SiLU, and normalization) without any fine-tuning. Experiments on a range of LLMs Transformers show that selectively replacing the targeted nonlinear operators incurs less than a $1\%$ accuracy drop across all evaluated tasks.

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

↑