Short Answer

Calculating Linear Relative Position Biases

In a causal attention mechanism, a linear relative position bias is calculated using the formula bias = -β * (i - j), where i is the query position, j is the key position, and β is a positive scalar. If the query is at position 6 (i=6) and it can only attend to keys at its own position and all previous positions, what are the bias values for the keys at positions 6, 5, 4, and 3? Express your answer as a sequence of four values in terms of β, ordered from position 6 down to 3.

0

1

Updated 2025-10-04

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

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science