atlas

Research map / Architectures and efficiency / Attention and transformers

When Do Transformers Outperform Feedforward and Recurrent Networks? A Statistical Perspective

NeurIPS 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.

Proves a statistical (sample complexity) separation showing single-layer Transformers learn q-sparse token regression with N-independent sample complexity when heads H≥q, while RNNs need N^Ω(1) samples for general qSTR and FFNs need Ω(N) even for simple-qSTR.

Problem

Which function classes can Transformers learn with fewer samples than feedforward and recurrent networks, even with infinite compute, and how does sample complexity scale with sequence length N?

Approach

Introduces the q-sparse token regression (qSTR) model where each output depends on q input tokens whose positions are given in the prompt (dynamic sparsity); shows attention adapts to this via retrieval, while FFNs and RNNs lack this adaptivity, giving a sample complexity hierarchy, using covering-number bounds for Transformers and metric-entropy/norm-based lower bounds for RNNs and FFNs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use an FFN or RNN instead of a Transformer1STR · 1STR; varying sequence length Nsample complexityHurt
use an RNN instead of an FFNsimple-1STR · simple-1STR; varying sequence length Nsample complexityHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic qSTR / simple-1STR data

Benchmarks: synthetic 1STR and simple-1STR tasks

Metrics: test MSE sample complexity to reach loss threshold

Baselines: feedforward networks recurrent neural networks

Builds on: Sanford et al. 2023 sparse averaging separation covering number bounds for Transformers Maurey sparsification

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