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

在视觉Transformer中用ReLU替代softmax

Replacing softmax with ReLU in Vision Transformers

Google DeepMind(谷歌DeepMind)

Mitchell Wortsman, Jaehoon Lee, Justin Gilmer, Simon Kornblith

AI总结:

本研究发现在视觉Transformer中,用ReLU替代softmax注意力并除以序列长度可缓解精度下降,在ImageNet-21k上训练小到大规模模型,其性能可接近或匹配softmax注意力。

摘要:

先前的研究观察到,当用逐点激活函数(如ReLU)替代注意力机制中的softmax时,会出现精度下降。在视觉Transformer的背景下,我们发现当除以序列长度时,这种下降得以缓解。我们在ImageNet-21k上训练从小到大的视觉Transformer的实验表明,就计算量的缩放行为而言,ReLU注意力可以接近或匹配softmax注意力的性能。

英文摘要:

Previous research observed accuracy degradation when replacing the attention softmax with a point-wise activation such as ReLU. In the context of vision transformers, we find that this degradation is mitigated when dividing by sequence length. Our experiments training small to large vision transformers on ImageNet-21k indicate that ReLU-attention can approach or match the performance of softmax-attention in terms of scaling behavior as a function of compute.

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

↑