脉冲Transformer中无Softmax注意力机制作为两能级系统的零温度极限
Softmax-Free Attention in Spiking Transformers as Zero-Temperature Two-Level Systems: Applications to XAI
AI总结:
该研究将无Softmax脉冲注意力机制对应为两能级系统的零温度极限,恢复其热力学理论基础,解释优化困难并通过实验验证,统一了标准与神经形态注意力机制的热力学分析框架。
摘要:
脉冲Transformer通过舍弃Softmax归一化,采用阈值化的二元注意力机制实现能效提升。然而,这种舍弃破坏了用于分析注意力网络的热力学框架,因为归一化测度和配分函数不复存在。我们通过证明无Softmax脉冲注意力机制的运行恰好等价于独立两能级系统乘积的零温度极限,恢复了这一理论基础。这种对应关系表明,对于所有输入,脉冲注意力机制严格处于热力学相图的冻结有序相中。因此,组织注意力的熵成本消失,取而代之的是由动作电位产生决定的Landauer型物理下限。此外,这种有序相钉扎从数学上解释了由消失的代理梯度导致的优化困难。我们通过前向松弛实验验证了该理论,将标准注意力机制和神经形态注意力机制置于统一的热力学轴上。
英文摘要:
Spiking Transformer architectures usually drop the softmax, and some threshold each query--key score into a binary attention map. For such maps, the statistical mechanics of softmax attention does not carry over, because no temperature of the softmax gives a binary map. We show instead that each query--key link of threshold attention is a two-level system, as a spiking neuron is. Thus, a spiking Transformer with threshold attention is a zero-temperature network of two-level systems. In this picture, the attention map is a ground state, and the surrogate gradients used in training are susceptibilities at a finite temperature. Cooling trained networks from high temperature then shows that their predictions form gradually as their units freeze. Using this cooling picture, we adapt thermodynamic integration to explainable AI (XAI). Specifically, we heat the binary units of each patch, its neurons and the links into it, to random states at their deployed occupation, then cool them back patch by patch and credit each change of the output to the patch just cooled. This thermal integration (ThI) needs no gradients or input baseline, and its scores sum exactly to the output change. On CIFAR-10, pixel-level integrated gradients with surrogate gradients instead miss the output change by about a quarter. On six deletion and insertion tests in the spiking Transformer, ThI's mean rank is second only to Shapley value sampling with blurred patches. Yet ThI never ranks below fourth, whereas Shapley sampling, with any choice of removed patches, drops to sixth or seventh on some tests.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。