Example

Visual Example of Positional Encoding Failure

A visual representation of positional encoding failure can be seen when a model is trained on sequences up to a certain length, for instance, 1,024 positions. When this model is then required to generate positional values for a longer sequence, such as up to 2,048, the output remains coherent within the original training range but becomes chaotic and meaningless for all positions beyond 1,024. This visualization clearly demonstrates the model's inability to generalize its understanding of position.

0

1

Updated 2025-10-09

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