跳到正文
arXiv (AI + Vision + Imaging)· Roberto C. Sotero, Pouya Taghipour, Jose M. Sanchez-Bornot·· 2 天前AI 评分17

脉冲Transformer中的无Softmax注意力:作为零温二能级系统及其XAI应用

Softmax-Free Attention in Spiking Transformers as Zero-Temperature Two-Level Systems: Applications to XAI

AI 导读

研究指出阈值注意力中每条query-key连接都是二能级系统,因此采用阈值注意力的脉冲Transformer是零温二能级系统网络,注意力图为基态、训练用替代梯度对应有限温度磁化率。基于此提出热积分(ThI)解释方法,无需梯度或输入基线,得分精确加总为输出变化。在CIFAR-10上,ThI在六项删除与插入测试中平均排名仅次于模糊块Shapley采样,且从未低于第四。

正文 · 原文

arXiv:2610.15968v2 Announce Type: replace Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org