Absolute Positional Encoding
An encoding scheme that assigns a fixed position vector to each position in a sequence. It provides order information effectively within the training length, but when sequences exceed that length the position indices enter untrained regions, limiting extrapolation capability.
Timeline (last 90 days)
In controlled state-tracking tasks, multi-token template representations and absolute positional encoding severely limit extrapolation, whereas atomic operation representations significantly enhance length generalization.
Absolute positional encoding assigns a fixed position vector to each position in the sequence; when the sequence length exceeds the training range, the position indices enter untrained regions, the encoding loses meaning, and extrapolation ability is limited.
The advantage of relative positional encoding is that the same relative distance shares one set of parameters across different absolute positions, making it friendlier to changes in sequence length; the cost is more complex implementation, with the relative position term requiring extra handling in attention computation and sometimes truncation or bucketing of distances beyond a certain range.
When training and inference lengths match, learnable absolute encodings are simple and effective; when inference on longer sequences is needed, relative encodings and RoPE are preferred.
No single positional-encoding scheme dominates across all dimensions: absolute encodings are simple to implement but extrapolate poorly, relative encodings are flexible but computationally complex, and RoPE expresses relative positions at the attention level but also requires additional extrapolation strategies.
Regarding the encoding of absolute physical position, the community is divided: some argue for direct normalized input, while others believe relative position encoding or learnable position embeddings should be used, because absolute position may introduce unnecessary bias.
All Facts (6)
In controlled state-tracking tasks, multi-token template representations and absolute positional encoding severely limit extrapolation, whereas atomic operation representations significantly enhance length generalization.
50%UnverifiedAbsolute positional encoding assigns a fixed position vector to each position in the sequence; when the sequence length exceeds the training range, the position indices enter untrained regions, the encoding loses meaning, and extrapolation ability is limited.
50%UnverifiedThe advantage of relative positional encoding is that the same relative distance shares one set of parameters across different absolute positions, making it friendlier to changes in sequence length; the cost is more complex implementation, with the relative position term requiring extra handling in attention computation and sometimes truncation or bucketing of distances beyond a certain range.
50%UnverifiedWhen training and inference lengths match, learnable absolute encodings are simple and effective; when inference on longer sequences is needed, relative encodings and RoPE are preferred.
50%UnverifiedNo single positional-encoding scheme dominates across all dimensions: absolute encodings are simple to implement but extrapolate poorly, relative encodings are flexible but computationally complex, and RoPE expresses relative positions at the attention level but also requires additional extrapolation strategies.
50%UnverifiedRegarding the encoding of absolute physical position, the community is divided: some argue for direct normalized input, while others believe relative position encoding or learnable position embeddings should be used, because absolute position may introduce unnecessary bias.
50%