通过有效维度关闭理论与实践之间的差距:脉冲变换器
Closing the Theory-Practice Gap in Spiking Transformers via Effective Dimension
AI总结:
本文提出首个脉冲自注意力的理论框架,通过有效维度分析解释为何少量时间步足以实现高精度,提供设计规则和实验验证。
摘要:
Spiking transformers在神经形态硬件上实现了38-57倍的能量效率,但缺乏理论指导。本文建立了首个全面的脉冲自注意力表达性理论,证明脉冲注意力在Leaky Integrate-and-Fire神经元下是连续排列等价函数的通用近似器,提供了包含新颖横向抑制网络的显式脉冲电路构造,并通过率-失真理论推导了紧致脉冲计数下界。我们的关键见解是利用测量的有效维度(CIFAR/ImageNet中为47-89),解释了为何T=4时间步足以实现高精度,尽管最坏情况T≥10,000。我们提供了校准的常数(C=2.3,95%置信区间:[1.9, 2.7])的设计规则。在Spikformer、QKFormer和SpikingResformer上进行的视觉和语言基准测试验证了预测,R²=0.97(p<0.001)。我们的框架为神经形态变换器设计提供了首个原理性基础。
英文摘要:
Spiking transformers achieve competitive accuracy with conventional transformers while offering $38$-$57\times$ energy efficiency on neuromorphic hardware, yet no theoretical framework guides their design. This paper establishes the first comprehensive expressivity theory for spiking self-attention. We prove that spiking attention with Leaky Integrate-and-Fire neurons is a universal approximator of continuous permutation-equivariant functions, providing explicit spike circuit constructions including a novel lateral inhibition network for softmax normalization with proven $O(1/\sqrt{T})$ convergence. We derive tight spike-count lower bounds via rate-distortion theory: $\varepsilon$-approximation requires $Ω(L_f^2 nd/\varepsilon^2)$ spikes, with rigorous information-theoretic derivation. Our key insight is input-dependent bounds using measured effective dimensions ($d_{\text{eff}}=47$--$89$ for CIFAR/ImageNet), explaining why $T=4$ timesteps suffice despite worst-case $T \geq 10{,}000$ predictions. We provide concrete design rules with calibrated constants ($C=2.3$, 95\% CI: $[1.9, 2.7]$). Experiments on Spikformer, QKFormer, and SpikingResformer across vision and language benchmarks validate predictions with $R^2=0.97$ ($p<0.001$). Our framework provides the first principled foundation for neuromorphic transformer design.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。