TL;DR
This paper introduces QUEST, a new attention mechanism for Transformers that constrains keys to a hyperspherical space, improving training stability, performance, and robustness across vision and other domains.
Contribution
The paper proposes QUEST, a spherical attention formulation that replaces standard softmax attention, addressing training instabilities and enhancing robustness and accuracy.
Findings
QUEST trains without instabilities
Models with QUEST show improved performance
QUEST-based models are robust to data corruptions and adversarial attacks
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
