atlas

Research map / Architectures and efficiency / Attention and transformers

Learning and Transferring Sparse Contextual Bigrams with Linear Transformers

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms · 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.

Proposes the Sparse Contextual Bigram (SCB) task and analyzes training a one-layer linear transformer with a preconditioned, l1-regularized projected proximal gradient method, showing a two-stage sample complexity and that pretraining with nontrivial correlation lets finetuning skip the sample-intensive stage.

Problem

Theoretical understanding of how transformers learn language modeling tasks that require both in-context (contextual) retrieval and global transition knowledge, including training dynamics, sample complexity, and transfer learning.

Approach

Extends the bigram model so the next token depends on a sparse, last-token-dependent set of earlier positions, shows it is representable by a one-layer linear transformer, and uses preconditioned l1-proximal gradient descent with thresholding stages to prove recovery with polynomial sample complexity, with a faster finetuning path when a pretrained model is correlated with the downstream task.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ℓ1-regularized proximal gradient descent after Stage 1 instead of vanilla SGDOne-layer linear transformer · Synthetic SCB (N=3, Q=2, T=5000)distance to ground truthHelped
Use vanilla SGD with the larger learning rate after Stage 1 (ablation)One-layer linear transformer · Synthetic SCB (N=3, Q=2, T=5000)convergenceHurt
Use vanilla SGD with the smaller learning rate after Stage 1 (ablation)One-layer linear transformer · Synthetic SCB (N=3, Q=2, T=5000)convergence rateHurt
Replace linear attention with softmax attentionTransformer trained on SCB · SCB (T=50, N=10, Q=2)lossNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Sparse Contextual Bigram data

Benchmarks: synthetic SCB task

Metrics: Frobenius/mu-norm distance to ground truth (||V-P||_mu, ||A-

Baselines: vanilla SGD

Builds on: bigram model linear transformer induction head analysis

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