NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

QUEST: A robust attention formulation using query-modulated spherical attention

Hariprasath Govindarajan, Per Sidén, Jacob Roll, Fredrik LindstenICLR 2026

While Transformer architectures dominate modern deep learning, they remain notoriously finicky to train at scale. A primary culprit for training instability is "exploding attention logits." In standard attention mechanisms, scores are calculated via a dot product between query ($Q$) and key ($K$) vectors. If the magnitudes (norms) of these vectors grow unchecked during training, the resulting softmax function produces an extremely "sharp" probability distribution.

This phenomenon leads to attention collapse, where the model fixates on a tiny number of tokens and ignores the broader context. Standard attention is particularly prone to getting "stuck" on spurious, easy-to-learn patterns in the data because specific keys can inflate their norms to globally "steal" attention. While existing solutions like QKNorm (normalizing both $Q$ and $K$) provide stability, they often bottleneck the model's expressivity by forcing every token to share the same attention sharpness.

To solve this, researchers introduce QUEST (QUEry-modulated Spherical aTtention), a simple, drop-in replacement for standard attention that stabilizes training while preserving model expressivity.

The QUEST Formulation

QUEST modifies the standard attention operation by introducing a structural constraint that prevents norm-hacking:

  1. Key Normalization: QUEST $\ell_2$-normalizes the key vectors, effectively projecting them onto a unit hypersphere. This ensures that no single key can dominate the attention distribution simply by having a massive magnitude.
  2. Query Modulation: Crucially, the query vectors remain unnormalized. The norm of the query vector acts as a per-token, learnable temperature control. A query with a large norm creates a sharp attention peak (focusing on specific details), while a query with a small norm creates a broad, "soft" distribution (aggregating global context).
  3. Simplified Scaling: Because the keys are normalized, the standard $1/\sqrt{d_h}$ scaling factor is no longer necessary and is set to 1.

Under QUEST, the rank-order of attention is determined purely by cosine similarity (vector alignment) in the latent space, while the "intensity" of that focus is controlled individually by each query.

Key Insights and Robustness

By preventing keys from "stealing" attention, QUEST forces the model to learn more robust, distributed representations. Standard attention often focuses on a single, highly salient feature (e.g., just the beak of a bird). If that feature is obscured by noise, the model fails. QUEST, by contrast, tends to distribute attention more evenly across all relevant parts of an object.

Comparison of attention maps between QUEST and Standard attention under image corruption.

As seen in class-activation maps, QUEST-based models "see" objects more holistically. This makes the model significantly more resilient to occlusions, data corruptions, and adversarial attacks.

Experimental Validation

The researchers evaluated QUEST across a diverse array of benchmarks—including Computer Vision (ImageNet-1K, ADE20K), Language Modeling (WikiText-103), Time-Series classification, Graph Learning, and 3D Point Clouds—yielding impressive results:

  • Training Stability: QUEST successfully trained ViT-Base and ViT-Large models using standard recipes where standard attention frequently crashed or diverged.
  • Improved Accuracy: On ImageNet-1K, QUEST consistently outperformed standard attention and QKNorm baselines. For example, a ViT-Tiny with QUEST achieved 73.4% Top-1 accuracy compared to 72.6% for standard attention.
  • Superior Robustness: QUEST showed dramatic improvements in adversarial settings. On the "AutoAttack" benchmark, QUEST improved the accuracy of a ViT-S/16 from 38.22% to 40.98%. It also significantly reduced the Mean Corruption Error (MCE) on ImageNet-C.
  • Dense Prediction: In segmentation tasks on ADE20K, QUEST improved mIoU (mean Intersection over Union) by 1.5 to 1.7 points over standard baselines.

Future Directions

While QUEST demonstrates broad success as a drop-in replacement, the authors note several promising avenues for future work. Extending the QUEST principle to linear-complexity attention variants could yield highly efficient, stable models. Furthermore, while tested on models up to 2.4 billion parameters, its impact on massive-scale autoregressive language models (GPT-4 scale) remains to be fully documented. Finally, because QUEST operates in a hyperspherical latent space, leveraging specialized geometric optimization techniques like Riemannian gradient descent might unlock even greater performance gains.

Summary updated

BibTeX
@inproceedings{govindarajan2026quest,
  author = {Hariprasath Govindarajan and Per Sidén and Jacob Roll and Fredrik Lindsten},
  title = {{QUEST: A robust attention formulation using query-modulated spherical attention}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=HkztQWZfl2},
}
Figure