QUEST: 一种使用查询调节球面注意力的鲁棒注意力方法
QUEST: A robust attention formulation using query-modulated spherical attention
AI总结:
本文提出QUEST,通过将键约束在超球面潜在空间中,提升注意力机制的稳定性与鲁棒性,适用于视觉及其他领域,实现训练稳定性和性能提升。
摘要:
Transformer模型架构已成为深度学习中最广泛使用的架构之一,其核心是注意力机制。标准注意力公式使用缩放点积的softmax操作。我们探讨了查询和键的范数所起的作用,当它们任意增加时会导致训练不稳定。我们展示了即使在简单的Transformer模型中,这种现象也可能在数据中存在容易学习的虚假模式时发生。我们提出了一种新的注意力公式,即查询调节球面注意力(QUEST),它将键约束在超球面潜在空间中,同时允许单个标记灵活控制注意力分布的锐度。QUEST可以很容易地作为标准注意力的替换使用。我们专注于视觉应用,同时探索其他领域以突出该方法的通用性。我们显示(1)QUEST在训练中没有不稳定性(2)产生性能改进的模型(3)对数据损坏和对抗攻击具有鲁棒性。
英文摘要:
The Transformer model architecture has become one of the most widely used in deep learning and the attention mechanism is at its core. The standard attention formulation uses a softmax operation applied to a scaled dot product between query and key vectors. We explore the role played by norms of the queries and keys, which can cause training instabilities when they arbitrarily increase. We demonstrate how this can happen even in simple Transformer models, in the presence of easy-to-learn spurious patterns in the data. We propose a new attention formulation, QUEry-modulated Spherical aTtention (QUEST), that constrains the keys to a hyperspherical latent space, while still allowing individual tokens to flexibly control the sharpness of the attention distribution. QUEST can be easily used as a drop-in replacement for standard attention. We focus on vision applications while also exploring other domains to highlight the method's generality. We show that (1) QUEST trains without instabilities and (2) produces models with improved performance (3) that are robust to data corruptions and adversarial attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。