ALiBi › Historical Context

Michael BrenndoerferUpdated May 30, 20251 min read
Language AI HandbookAll chapters
Part 14 of 67Positional Encoding
Chapter 101ALiBi › Historical Context
Reading section 11 of 16 · Historical Context · 1 minSection 11 of 16 · 1 min

Book contents

Section 11 of 16 · 1 min read

ALiBi › Historical ContextOne section · Sections in this chapter11 / 16 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Historical Context

ALiBi was introduced in the paper "Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation" by Ofir Press, Noah A. Smith, and Mike Lewis, published in 2022 at ICLR. The title captures the core contribution succinctly: train on short sequences, test (inference) on long sequences, enabled by the linear bias design.

The paper was motivated by the observation that all existing position encoding methods (sinusoidal, learned, T5 relative biases, and RoPE) failed to generalize beyond training sequence length. The authors systematically evaluated length extrapolation and found that ALiBi dramatically outperformed all competitors on this metric while remaining competitive on standard perplexity benchmarks.

ALiBi was adopted by the BLOOM project (the largest open multilingual language model at the time of its release in 2022 with 176 billion parameters) and by MosaicML's MPT family of models. This adoption showed that ALiBi could support production-scale language models. The method influenced subsequent thinking about position encoding design and contributed to the recognition that inductive biases favoring locality are valuable, not limiting.