Question 4
A transformer layer with absolute positional encoding and another with ALiBi are compared on sequences extended from length 128 to 512, without retraining.
Which numerical behavior is most likely for ALiBi in this extrapolation scenario?
Attention scores remain numerically well-shaped because ALiBi biases scale linearly with distance, not with a fixed maximum length.
The model cannot compute positional information beyond 128 because ALiBi stores one embedding per absolute position up to 128 only.
ALiBi attention becomes undefined for positions beyond 128 because its biases require precomputed lookup tables that stop at 128.
Attention scores collapse to near zero for distant positions because ALiBi uses fixed sinusoidal patterns tied to the original length 128.