Home Knowledge Base Relative Position Bias

Relative Position Bias is a position encoding method that adds a learnable bias to attention logits based on the relative distance between query and key positions — directly encoding "how far apart" two tokens are, rather than their absolute positions.

How Does Relative Position Bias Work?

Why It Matters

Relative Position Bias is distance-based attention adjustment — telling the model how to weight attention based on how far apart tokens are, not where they are.

relative position bias

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.