atlas

Research map / Architectures and efficiency / Attention and transformers

Towards Understanding the Universality of Transformers for Next-Token Prediction

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 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.

Shows theoretically that causal Transformers (linear, exponential, or softmax attention) can explicitly implement a causal kernel descent that predicts the next token in autoregressive sequences x_{t+1}=f(x_t) for linear or periodic f, with connections to Kaczmarz projections in Hilbert spaces.

Problem

Understanding how causal Transformers perform next-token prediction in-context for autoregressive sequences where the hidden map f changes per sequence, which is not well explained by existing in-context learning theory based on iid input-output pairs.

Approach

Constructs explicit one-layer two-head causal Transformers whose layer-wise iterations implement a causal version of kernel least-squares gradient descent (causal kernel descent) over vector-valued RKHS; the estimate of x_{t+1} is shown to converge as t grows, linked to Kaczmarz/alternating projections.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use causal kernel descent for linear recursions with the dot-product kernelCausal kernel descent · Linear recursion, dot-product kernelsquared prediction errorHelped
use causal kernel descent for periodic sequences with the exponential kernelCausal kernel descent · Periodic recursion, exponential kernelsquared prediction errorHelped
use causal kernel descent with the exponential kernel for the nonlinear mappingCausal kernel descent · Nonlinear mapping, d=4, q=2squared prediction errorHelped
fine-tune the initialized M^nM^n · Orthogonal linear recursion, d=15, sequence length T=100next-token MSEHelped
fine-tune the initialized M^nM^n · Orthogonal linear recursion, t ≳ 20next-token MSEHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic autoregressive sequences generated by x_{t+1}=f(x_t) with random orthogonal Omega (instance 2) synthetic nonlinear complex-rotation sequences (instance 4)

Benchmarks: synthetic autoregressive sequences

Metrics: squared error ||u*_t - x_{t+1}||^2 MSE next-token prediction error

Baselines: untrained initialization Transformer (Mθ0)

Builds on: linear self-attention in-context learning (von Oswald et al.) kernel ridge regression in-context learning Kaczmarz algorithm neural ODEs Transformers as gradient descent in RKHS

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