atlas

Research map / Architectures and efficiency / Attention and transformers

Towards Understanding Inductive Bias in Transformers: A View From Infinity

ICML 2024 · 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.

Analyzes transformer inductive bias in the infinite-width GP (NNGP) limit using symmetric-group representation theory, giving learnability scaling laws in context length for permutation-symmetric data, and shows WikiText-2 has approximate permutation symmetry in first-order correlations.

Problem

Characterizing the inductive bias of transformers, i.e., which functions are expressible and how many samples are needed to learn them, as a function of context length, especially for sequence data with permutation symmetry.

Approach

Treat the infinite-width transformer as a GP with NNGP kernel; use the equivalent kernel eigenproblem and representation theory of the symmetric group (irreps labeled by partitions (L-k,k)) to bound eigenvalues by irrep dimension, giving learnability scaling N ~ L^k for irrep (L-k,k).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use softmax attention instead of fully connected layersTransformer-like model on a symmetric task · Symmetric tasksamples required to learn target: N=\Theta(1) vs. N=O(L)Helped
Increase context length L for targets in irrep (L-k,k)Transformer-like model with permutation symmetry · Symmetric sequence taskssamples required to learn: Ω(L^{k})Hurt
Use a nonlinear erf MLP instead of a linear MLP (ablation)Linear-attention transformer, GP limit · HMM mixturelearnabilityNo clear effect
Use a nonlinear erf MLP instead of a linear MLP (ablation)Linear-attention transformer, GP limit · HMM mixturepredictor similarityNo clear effect
Train a finite erf-MLP network with SGD instead of using exact GP inference (ablation)Linear-attention transformer · HMM mixture, OODprediction agreementNo clear effect
Use standard softmax attention instead of linear attention (ablation)Transformer block · Symmetric taskeigenvalue scaling in the trivial irrep: L^0Helped
Use standard softmax attention instead of linear attention (ablation)Transformer block · Symmetric taskeigenvalue scaling in the standard irrep: L^{-1}Helped
Evaluate on the OOD distribution instead of the training distributionLinear-attention transformer, GP limit · HMM mixturegeneralization lossHurt

Limitations

Experimental setup

Datasets: mixture of hidden Markov models WikiText-2

Benchmarks: WikiText-2

Metrics: MSE loss learnability cosine similarity of correlation matrices eigenvalue scaling

Baselines: fully connected network exact GP inference

Builds on: NNGP equivalent kernel Langevin dynamics Specht modules

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