Question 1: Short answer
mediumAI-checkedAttention & TransformersRelative position representations (Shaw et al., 2018) learn one embedding per query–key offset , with the offset clipped to . With clipping distance , how many distinct offset embeddings does a layer learn for its keys, whatever the sequence length?