Position bias is a prevalent issue in modern language models.
The bias leads to unexpected model failures and affects performance, robustness, and reliability.
A mechanistic analysis identifies causal attention and relative positional encodings as the sources of bias.
A training-free zero-shot approach called PINE (Position-INvariant inferencE) is proposed to eliminate the bias and improve performance in downstream tasks.