Concept

Mechanism of Relative Positional Embedding

The fundamental mechanism behind relative positional embedding is to determine the offset—or the relative distance—between any given pair of token positions. Once this positional offset is obtained, it is directly incorporated into the self-attention model, allowing the system to utilize pairwise token relationships rather than absolute positions.

0

1

Updated 2026-04-23

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences