atlas

Research map / Architectures and efficiency / Attention and transformers

Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformers

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Theory of self-attention dynamics · 3 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.

Develops a finite-width statistical-mechanics (BPKR) theory of Bayesian learning in a linear-value multi-head multi-layer self-attention network, showing predictor statistics are a U-weighted sum of path-path kernels and validating on synthetic HMM and one-shot Omniglot/FashionMNIST tasks with head pruning.

Problem

Transformers lack theoretical characterization of how their multiple attention paths (sequences of heads across layers) interact and affect generalization; infinite-width GP theory loses this interplay.

Approach

Exact finite-width thermodynamic-limit equations (N,P→∞, P/N fixed) for a deep linear-in-values multi-head attention network show the mean predictor is a kernel regression with a kernel summing path-path kernels weighted by an order parameter U that aligns the kernel with task labels; this task-relevant kernel combination is absent in the GP limit.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use finite-width learning with task-relevant attention-path kernel combination instead of the GP limitTransformer-like attention network · HMC classificationclassification accuracyHelped
combine the good and denoising attention paths using cross-path kernelsTransformer-like attention network · HMC classificationclassification accuracyHelped
increase perpendicular noise to σ⊥=5 while using the good and denoising pathsTransformer-like attention network · HMC classification with stronger perpendicular noiseclassification accuracyHelped
use finite-width learning instead of the GP limitTransformer-like attention network · One-shot Omniglot classificationclassification accuracyHelped
use finite-width learning instead of the GP limitTransformer-like attention network · One-shot FashionMNIST classification (OOD)classification accuracyHelped
prune the two lowest-scoring heads (ablation)Gradient-descent-trained one-shot image classifier · One-shot Omniglot classification (ID)classification accuracy: 25%Hurt
prune the two lowest-scoring heads (ablation)Gradient-descent-trained one-shot image classifier · One-shot FashionMNIST classification (OOD)classification accuracy: 25%Helped
use only the designed good attention path (ablation)Transformer-like attention network · HMC classificationclassification accuracy: A∼94%Helped
use each of the three other paths in isolation rather than the good path (ablation)Transformer-like attention network · HMC classificationclassification accuracy: A∼94% to A∼50%Hurt
include adversarial paths rather than suppressing their associated kernels (ablation)Transformer-like attention network in the GP limit · HMC classificationclassification accuracyHurt
combine the good and denoising paths instead of using the good path alone (ablation)Transformer-like attention network in the GP limit · HMC classificationclassification accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: Omniglot MNIST FashionMNIST synthetic hidden Markov chain data

Benchmarks: hidden Markov chain classification Omniglot one-shot classification FashionMNIST OOD one-shot classification MNIST one-shot classification

Metrics: classification accuracy order parameter structure kernel-label PC overlap head pruning accuracy

Baselines: GP limit (infinite-width) predictor gradient descent-trained network

Builds on: back-propagating kernel renormalization Gaussian process limit of attention networks globally gated deep linear networks

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