atlas

Research map / Architectures and efficiency / Attention and transformers

Self-attention Networks Localize When QK-eigenspectrum Concentrates

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Sparse and structured attention · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Characterizes attention localization via the eigenspectrum of the query-key matrix (signal propagation probability under a random-walk model), argues small eigenspectrum variance unifies rank and entropy collapse, and proposes the LocAteR regularizer that improves WikiText-2 perplexity in 1-layer transformers.

Problem

Attention localization is linked to two seemingly contradictory failure modes, rank collapse (uniform attention reducing expressivity) and entropy collapse (peaked attention causing plateaus); no unified characterization of when attention localizes and how it affects performance exists.

Approach

Define a signal propagation probability per token (whether a token's signal reaches the QK gradient) under a Gaussian random-walk token model; show localization occurs when the query-key eigenspectrum has a non-zero mean and small variance, which simultaneously mitigates rank collapse and entropy collapse; then regularize the eigenspectrum mean and scale (LocAteR).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase LocAteR mean regularization strength κ2 while keeping κ1=100 fixed (ablation)LocAteR, 1-layer Transformer (d=128) · WikiText-2perplexityHelped
Increase LocAteR mean regularization strength κ2 while keeping κ1=100 fixed (ablation)LocAteR, 1-layer Transformer (d=128) · WikiText-2attention entropyHelped
Increase LocAteR mean regularization strength κ2 while keeping κ1=100 fixed (ablation)LocAteR, 1-layer Transformer (d=32) · WikiText-2perplexityHelped
Increase LocAteR mean regularization strength κ2 while keeping κ1=100 fixed (ablation)LocAteR, 3-layer Transformer (d=32) · WikiText-2perplexityHelped
Increase LocAteR mean regularization strength κ2 while keeping κ1=100 fixed (ablation)LocAteR, 6-layer Transformer (d=32) · WikiText-2perplexityHelped
Increase LocAteR mean regularization strength κ2 while keeping κ1=100 fixed (ablation)LocAteR, 3-layer Transformer (d=128) · WikiText-2perplexityHelped
Increase LocAteR mean regularization strength κ2 while keeping κ1=100 fixed (ablation)LocAteR, 6-layer Transformer (d=128) · WikiText-2perplexityHelped
Use a smaller QK eigenspectrum scale with a larger eigenspectrum meanSimulated self-attention · Synthetic random walks (isotropic and anisotropic covariance)signal propagation localizationHelped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-2

Benchmarks: WikiText-2

Metrics: perplexity attention entropy eigenspectrum scale tr(W_QK^T W_QK) signal propagation probability

Baselines: No regularization (LocAteR with kappa_2=0)

Builds on: rank collapse analysis of self-attention entropy collapse in transformer training sparsemax

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy