Term
positional encodings
Meaning
Precomputed node-level features that inject information about graph topology into models that otherwise see nodes only as a set, such as transformers. Examples include random-walk transition probabilities and Laplacian eigenvectors.
Source Unitary Convolutions for Message-passing and Positional Encodings on Directed Graphs
How papers use it 5 papers
Unitary Convolutions for Message-passing and Positional Encodings on Directed Graphs
Use Used as the reference encodings that graph transformers receive in the hybrid experiments, including Lap and Maglap variants. The paper argues that a Dune backbone makes these encodings less necessary, since the gains from adding them are smaller and often statistically insignificant.
BEHRT: Transformer for Electronic Health Records
Use Encodes each event's place in a patient's diagnosis sequence, which lets BEHRT model positional interactions among diseases. The paper uses pre-determined encodings rather than trainable ones, to avoid weak learning caused by the imbalanced distribution of medical sequence lengths. It follows the position encoding rule proposed for the Transformer, and it fills the order information that a recurrent structure would otherwise supply.
Meaning A fixed or learned vector added to each element's representation to encode where that element sits in a sequence. It gives order information to models, such as Transformers, that have no recurrence.
Transformers in Vision: A Survey
Use Cited prior work argues that self-attention combined with positional encodings can model the local-feature behaviour of convolutions and learn adaptive kernel weights and receptive fields.
Meaning Position-dependent vectors added to the inputs of a Transformer so that the model can use the location or order of its elements, since attention alone does not carry that information.
Attention Is All You Need
Use The paper uses the sinusoidal form, with each dimension corresponding to a sinusoid whose wavelengths form a geometric progression from 2π to 10000·2π. The authors chose it because they expected it to support learning attention by relative position and to extrapolate to sequence lengths longer than those seen in training. Learned positional embeddings gave nearly identical results in their comparison (Table 3, row (E)).
Meaning Position-dependent vectors that are added to the input token embeddings so that a model without recurrence or convolution can take token order into account. In the paper they are sine and cosine signals at different frequencies.
End-to-End Object Detection with Transformers
Use DETR adds fixed spatial positional encodings to the encoder input at each attention layer, using sine and cosine functions for each spatial coordinate with different frequencies. The decoder receives learned output encodings, which are the object queries. The paper runs ablations that compare fixed and learned spatial encodings, and that remove them, under different placements.
Meaning Encodings of position that are added to the inputs of attention layers, since self-attention by itself does not depend on the order of its inputs. They include spatial encodings for image feature positions and learned output encodings for decoder slots.