ALiBi
What is ALiBi?
In one sentence: ALiBi is a simple way of handling word position by adding a penalty to attention scores based on how far apart two words are.
What does ALiBi look like?
Under ALiBi, a word 100 positions back gets a bigger attention penalty than a word 2 positions back.
Why does ALiBi matter?
ALiBi helps models work on longer texts than they were trained on.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/alibi/">ALiBi, explained simply</a> (The AI Math Dictionary)