atlas

Research map / Learning theory and algorithms / Kernels and regression theory

Bayes optimal learning of attention-indexed models

NeurIPS 2025 · Learning theory and algorithms › Kernels and regression theory · approach: Statistical perspectives on generalization · 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.

Introduces the attention-indexed model (AIM), a solvable high-dimensional teacher-student setting for deep attention with extensive-width key/query matrices, deriving Bayes-optimal error predictions, an AMP algorithm matching them, and showing averaged gradient descent approaches the optimum.

Problem

Theoretical understanding of learning in attention layers with extensive-width key and query matrices, which prior sequence multi-index models could not analyze.

Approach

Define attention indices as bilinear forms x_a^T S x_b with rotationally invariant S of extensive rank, show deep attention reduces exactly to this model, and analyze it via replica theory and AMP.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase sample complexityBayes-optimal estimation of hardmax tied attention · Hardmax tied attention, T=2estimation error: error approaches zero as α grows with rate compatible with O(1/α)Helped
Use any positive sample complexityBayes-optimal estimation of hardmax tied attention · Hardmax tied attention, T=2estimation error: error smaller than 1Helped
Use softmax instead of hardmaxTied attention · Single-layer attentionBayes-optimal estimation errorMixed
Vary inverse temperature β while keeping it finiteBayes-optimal softmax tied attention · Softmax tied attention, T≥2estimation errorNo clear effect
Increase token count TBayes-optimal softmax tied attention · Softmax tied attention, T≥2sample complexity for a fixed estimation error: factor 1 + 2/(T(T+1)) more samplesHurt
Use AMPBayes-optimal estimation of hardmax tied attention · Hardmax tied attention, T=2estimation errorNo clear effect
Use AMPBayes-optimal estimation of softmax tied attention · Softmax tied attention, T=2,3estimation errorNo clear effect
Average gradient-descent estimates across initializationsGradient descent for softmax tied attention · Softmax tied attentionestimation errorHelped
Use averaged gradient descent instead of standard gradient descentGradient descent for softmax tied attention · Softmax tied attentionestimation errorHelped
Increase sample complexity to the Bayes-optimal recovery thresholdGradient descent and averaged gradient descent · Softmax tied attentionrecovery: perfect recovery at the BO thresholdHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian token embeddings with attention-indexed teacher outputs

Benchmarks: synthetic attention-indexed teacher-student tasks

Metrics: estimation error generalization error

Baselines: Adam gradient descent averaged gradient descent (AGD)

Builds on: sequence multi-index model multi-index models AMP for matrix denoising ellipsoid fitting

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