by PartiallyTyped · 4y ago · 0 comments
This is because graph networks are permutation invariant, but vision tasks are not. Nodes do not necessarily know their ordering with respect to the input. We use positional embeddings to inform the nodes where they are with respect to the input, because it matters.
To see how, or why, take any image, flip it upside down, cut it into patches, and then flip the patches.
The patches know what their content is, but not where. The edges in the graph merely point to the neighbours for further computation.
Positional embeddings are just vectors that you index or compute at runtime. These vectors then are concatenated or added onto the vectors of the patches or tokens.
We use positional embeddings for all sorts of tasks, such as text (position of token), vision tasks (position of patch), or even sound tasks (e.g. point in time).
No comments yet.