atlas

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

Learning Linear Attention in Polynomial Time

NeurIPS 2025 · Learning theory and algorithms › Kernels and regression theory · approach: Generalization theory of deep networks · 1 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.

Shows that single-layer multi-head linear attention is strongly agnostically PAC-learnable in polynomial time by relaxing to a rank-H linear regression over cubic features, and gives a data-based certificate (min eigenvalue of second-moment matrix) for when all empirical risk minimizers compute the same function.

Problem

Whether single-layer Transformers with linear attention can be learned efficiently (polynomial time and samples) from data, and whether a learned model is uniquely determined by the data so it generalizes out of distribution.

Approach

Reformulate multi-head linear attention output as a linear function of a fixed cubic feature map over a d^2 x d^2 matrix W; solve least squares in polynomial time, then recover heads via SVD (at most d^2 heads). Identifiability is certified when the feature second-moment matrix is full rank.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase the number of heads, up to d^2 heads (ablation)Multi-head linear attention trained with SGD · Synthetic random linear attentionperformanceHelped
Use d^2 heads instead of fewer heads (ablation)Multi-head linear attention trained with SGD · Synthetic random linear attentionperformance relative to the polynomial-time algorithmNo clear effect
Increase the number of layers in single-head linear attention (ablation)Multi-layer linear attention · Synthetic random linear attentiontraining loss convergenceHurt
Add more layers (ablation)Multi-layer linear attention · Synthetic random linear attentionperformanceHurt
Add more layers (ablation)Multi-layer linear attention · Synthetic random linear attentionperformanceMixed
Replace single-layer linear attention with a full Transformer using softmax attention, MLP blocks, and layer normalization (ablation)Single-layer linear attention · Synthetic random linear attentionperformanceNo clear effect
Train on identifiable data with minimum eigenvalue 0.06 rather than unidentifiable data with minimum eigenvalue 0MHLA trained with SGD · Associative lookupdistance to ground truth in p feature space: 0.06 vs. 0Helped
Increase the certificate value (minimum eigenvalue of the data covariance matrix)Polynomial-time learning algorithm · Associative lookupdistance to ground truth in p feature spaceHelped
Use unidentifiable data with minimum eigenvalue 0 instead of identifiable dataMHLA trained with SGD · Associative lookupdistance to ground truth in p feature space: 0.06 vs. 0Hurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic linear attention network outputs associative memory synthetic data (Gaussian and random unitary key-values)

Benchmarks: synthetic random linear attention regression associative memory lookup learning universal Turing machine (theory only)

Metrics: training loss validation loss distance in p feature space min eigenvalue of second-moment matrix

Baselines: multi-layer linear attention softmax Transformer SGD-trained multi-head linear attention

Builds on: Transformer expressivity via Turing machine simulation PAC learning VC theory

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