atlas

Research map / Architectures and efficiency / Attention and transformers

Transformers Provably Learn Sparse Token Selection While Fully-Connected Nets Cannot

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 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 that a one-layer transformer with stochastic positional encoding trained by gradient descent provably learns the q-sparse token selection task with width O(d+q log T), while any FCN approximating it needs first-layer width Omega(Td), and the learned model length-generalizes.

Problem

Whether the expressivity separation between transformers and fully-connected networks on sparse token selection translates into learnability under gradient descent, and whether such trained transformers generalize to longer sequences.

Approach

Uses a stochastic (random near-orthogonal, RIP-based) positional encoding with a query-subset encoding, reparameterizes Q and K into one matrix W, and analyzes GD on the population loss to prove global convergence with near-optimal width; also proves an average-case (population) width lower bound for FCNs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use stochastic positional encoding instead of fixed positional encodingone-layer transformer on sparse token selection · out-of-distribution sequence lengthsvalidation lossHelped
use fixed positional encoding instead of stochastic positional encodingone-layer transformer on sparse token selection · in-distribution trainingtraining loss convergenceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic sparse token selection data (Gaussian tokens, uniform q-subsets)

Benchmarks: synthetic sparse token selection (in-distribution and OOD length)

Metrics: population squared loss OOD validation loss cosine similarity to ground-truth weights

Baselines: fully-connected networks fixed absolute positional encoding

Builds on: q-sparse averaging (qSA) stochastic positional encoding restricted isometry property (RIP) encodings

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