Skip to content
conftrace_
2024 ACL ACL 2024

Learned Transformer Position Embeddings Have a Low-Dimensional Structure

AbstractPosition embeddings have long been essential for sequence-order encoding in transformer models, yet their structure is underexplored. This study uses principal component analysis (PCA) to quantitatively compare the dimensionality of absolute position and word embeddings in BERT and ALBERT. We find that, unlike word embeddings, position embeddings occupy a low-dimensional subspace, typically utilizing under 10% of the dimensions available. Additionally, the principal vectors are dominated by a few low-frequency rotational components, a structure arising independently across models.

More from ACL 2024

All ACL 2024 papers →