Skip to content
English

Switch theme

// ◎ Transformers & Attention

ALiBi (Attention with Linear Biases)

Replaces position embeddings with a distance-proportional attention penalty.

ALiBi 线性偏置 2021 Intermediate extended

IN PLAIN WORDS

No position vectors — farther tokens just get a larger penalty on their attention scores, which extrapolates to longer inputs.

Used in: BLOOM, MPT

TIMELINE · prerequisites → this → what builds on it

2017 Transformer &…2021 ALiBi (Attention …

01Original paper

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

Ofir Press, Noah A. Smith, Mike Lewis · 2021

arXiv ↗ ✓ Verified · arXiv API

02Where it sits

Learn the left column first; the right column builds on this one.

Learn first

ALiBi (Attention with Linear Biases)

Then you can learn

  • Nothing in the atlas builds on it yet

Related:Rotary Position Embedding (RoPE)

Transformer & S…Rotary Position… ALiBi (Attention wi…

Left: prerequisites · right: builds on this · dashed: related. Full map →

03Learning resources

Official docs, explainers, courses and reference code. All links checked.

04Where the course teaches it

For AI / data

Data updated: AI algorithms & curriculum(UTC+8)