Concept

Stabilizing Attention with Global Tokens

A key benefit of incorporating global tokens is the stabilization of model performance, particularly when processing very long sequences. By allowing all tokens to attend to a common set of global tokens, the output distribution of the Softmax function in the attention calculation is smoothed. This prevents the attention weights from becoming too sparse or concentrated, leading to more stable training and inference.

0

1

Updated 2025-10-06

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