atlas

Research map / Architectures and efficiency / Attention and transformers

A Phase Transition between Positional and Semantic Learning in a Solvable Model of Dot-Product Attention

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Sparse and structured attention · 4 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.

Analyzes a tied low-rank dot-product attention model in the high-dimensional limit, giving a closed-form characterization of its global empirical-loss minimum and a positional-to-semantic phase transition in sample complexity.

Problem

Theoretically understanding how attention layers learn positional versus semantic mechanisms and when sharp transitions between them emerge with increasing sample complexity.

Approach

Uses a solvable model of single-layer tied low-rank dot-product attention on Gaussian tokens, maps ERM to a GLM and derives tight finite-dimensional self-consistent equations (via GAMP / replica) for the global minimum, revealing a sharp transition from positional to semantic attention as the number of samples grows.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase sample complexity so the learned mechanism transitions from positional to semantic attentionDot-product attention · Gaussian two-token attention tasktest MSEHelped
Use dot-product attention instead of a dense linear positional model at sufficient sample complexityAttention model versus dense linear baseline · Gaussian two-token attention tasktest MSEHelped
Use dot-product attention instead of a dense linear positional model below the semantic-learning thresholdAttention model versus dense linear baseline · Gaussian two-token attention tasktest MSEHurt
Continue training the positional or semantic solution after unfreezing parametersHistogram-task transformer solutions · Histogram task test setaccuracyHelped
Continue training the positional or semantic solution after unfreezing parametersHistogram-task transformer solutions · Histogram tasktraining lossHelped
Restrict attention to positional information rather than semantic information (ablation)Single-layer transformer on the histogram task · Histogram task test setaccuracy: 0.99885 ± 0.0004; 0.99895 ± 0.0012No clear effect
Restrict attention to semantic information rather than positional information (ablation)Single-layer transformer on the histogram task · Histogram task test setaccuracy: 0.99895 ± 0.0012; 0.99885 ± 0.0004No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian sentences (L=2 tokens) with teacher attention histogram task (synthetic)

Metrics: test mean squared error training loss summary statistics overlap

Baselines: linear positional baseline

Builds on: generalized approximate message passing state evolution replica method

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