Concept

Sinusoidal Positional Encoding

Sinusoidal positional encoding is a technique that represents a token's position using a combination of sine and cosine functions of varying frequencies. The resulting positional vectors are then added to the corresponding token embeddings to create the final input for the Transformer. While this method can generalize to sequences of any length, its effectiveness may decrease for sequences much longer than those encountered during training.

Image 0

0

1

Updated 2026-04-23

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences