Learn Before
Concept

Translation and Rotation Invariant Attention Kernels

Attention kernels α(k,q)\alpha(\mathbf{k}, \mathbf{q}) that are translation and rotation invariant remain unchanged in value if the key k\mathbf{k} and query q\mathbf{q} are shifted and rotated in the same manner. For simplicity, when scalar arguments k,qRk, q \in \mathbb{R} are chosen and the key k=0k = 0 is picked as the origin, the kernel can be expressed as a function of the query, yielding various scalar kernel functions that correspond to different notions of range and smoothness.

Image 0

0

1

Updated 2026-05-14

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L