Saved in:
Bibliographic Details
Main Authors: Gu, Zihan, Chen, Ruoyu, Zhang, Han, Zhang, Hua, Hu, Yue
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.13027
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910017093894144
author Gu, Zihan
Chen, Ruoyu
Zhang, Han
Zhang, Hua
Hu, Yue
author_facet Gu, Zihan
Chen, Ruoyu
Zhang, Han
Zhang, Hua
Hu, Yue
contents Positional encodings enable Transformers to incorporate sequential information, yet their theoretical understanding remains limited to two properties: distance attenuation and translation invariance. Because natural language lacks purely positional data, the interplay between positional and semantic information is still underexplored. We address this gap by deconstructing the attention-logit computation and providing a structured analysis of positional encodings, categorizing them into additive and multiplicative forms. The differing properties of these forms lead to distinct mechanisms for capturing positional information. To probe this difference, we design a synthetic task that explicitly requires strong integration of positional and semantic cues. As predicted, multiplicative encodings achieve a clear performance advantage on this task. Moreover, our evaluation reveals a hidden training bias: an information aggregation effect in shallow layers that we term the single-head deposit pattern. Through ablation studies and theoretical analysis, we proved that this phenomenon is inherent in multiplicative encodings. These findings deepen the understanding of positional encodings and call for further study of their training dynamics.
format Preprint
id arxiv_https___arxiv_org_abs_2505_13027
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Deconstructing Positional Information: From Attention Logits to Training Biases
Gu, Zihan
Chen, Ruoyu
Zhang, Han
Zhang, Hua
Hu, Yue
Machine Learning
Positional encodings enable Transformers to incorporate sequential information, yet their theoretical understanding remains limited to two properties: distance attenuation and translation invariance. Because natural language lacks purely positional data, the interplay between positional and semantic information is still underexplored. We address this gap by deconstructing the attention-logit computation and providing a structured analysis of positional encodings, categorizing them into additive and multiplicative forms. The differing properties of these forms lead to distinct mechanisms for capturing positional information. To probe this difference, we design a synthetic task that explicitly requires strong integration of positional and semantic cues. As predicted, multiplicative encodings achieve a clear performance advantage on this task. Moreover, our evaluation reveals a hidden training bias: an information aggregation effect in shallow layers that we term the single-head deposit pattern. Through ablation studies and theoretical analysis, we proved that this phenomenon is inherent in multiplicative encodings. These findings deepen the understanding of positional encodings and call for further study of their training dynamics.
title Deconstructing Positional Information: From Attention Logits to Training Biases
topic Machine Learning
url https://arxiv.org/abs/2505.13027