scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation

Ofir Press, Noah Smith, Mike Lewis

ICLR 2022Architectures and efficiency › Attention and transformersapproach: Sparse efficient transformers for long contextopen problems in this approach31 citations (OpenAlex)

Meta · Allen Institute for Artificial Intelligence

Read the paperPlace an idea next to itCheck your own paper ↗

9measured effects
6improved
3hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace sinusoidal positional embeddings with ALiBiBaevski & Auli transformer LM · WikiText-103 validation, L=3072perplexity: 18.67 -> 17.60Improved
Use ALiBi with train length 512 and evaluate at length 3072Baevski & Auli transformer LM · WikiText-103 validationperplexity: 19.73 -> 18.40Improved
Replace sinusoidal positional embeddings with ALiBiBaevski & Auli transformer LM · WikiText-103 test, L=3072perplexity: 19.38 -> 18.30Improved
Replace sinusoidal positional embeddings with ALiBiBaevski & Auli transformer LM · Toronto BookCorpus validation, train 512 / eval 3072perplexity: 14.46 -> 13.55Improved
Train on 1024 tokens with ALiBi instead of 2048 tokens with sinusoidal positions1.3B transformer LM · CC100+RoBERTa validation, eval 2048perplexity: 9.01 -> 8.92Improved
Train on 1024 tokens with ALiBi instead of 2048 tokens with sinusoidal positions1.3B transformer LM · CC100+RoBERTa validation, eval 2048memory: 29.3 GB -> 26.2 GBImproved
Replace sinusoidal positional embeddings with ALiBi at equal training length1.3B transformer LM · CC100+RoBERTa validation, L=2048perplexity: 8.83 -> 8.84Hurt
Use trainable rather than fixed ALiBi slopes (ablation)ALiBi · Extrapolation experimentsextrapolation performanceHurt
Multiply attention scores by a distance bias instead of adding the ALiBi bias (ablation)ALiBi attention · Language modeling experimentsperformanceHurt

Open problems in sparse efficient transformers for long context

Do sparse and efficient long-context attention methods keep their quality and speed at larger model scale?

All 5 open problems and what was already tried →

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