Reproduce “Faster Query-Key Learning Sharpens Attention in Self-Attention Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Rahul Vashisht, Harish G. Ramaswamy

Research from IIT Madras investigates how optimizing self-attention models influences attention patterns, finding that faster learning rates for query-key circuits lead to sharper, more faithful attention without compromising predictive accuracy. The study provides a mechanistic understanding of how relative optimization speeds between attention and prediction components drive the emergence of interpretable attention distributions.

Key insights

  • Faster optimization of the query-key circuit, relative to the output-value circuit, drives attention to become sharper and more focused on task-relevant tokens.
  • Factorized parameterizations induce state-dependent gradient rescaling, causing different optimization trajectories compared to collapsed parameterizations.
  • Attention sharpening is an emergent property of relative optimization dynamics, distinct from achieving optimal predictive performance.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.