DocuMeow
Algebraic Positional Encodings cover Algebraic Positional Encodings

Algebraic Positional Encodings

Konstantinos Kogkalidis, Jean-Philippe Bernardy, Vikas Garg

CC-BY-SA-4.0 EnglishOpen Tech Books6,093 words39 min listenShort read

We introduce a novel positional encoding strategy for Transformer-style models, addressing the shortcomings of existing, often ad hoc, approaches. Our framework provides a flexible mapping from the algebraic specification of a domain to an interpretation as orthogonal operators. This design preserves the algebraic characteristics of the source domain, ensuring that the model upholds its desired structural properties. Our scheme can accommodate various structures, ncluding sequences, grids and trees, as well as their compositions. We conduct a series of experiments to demonstrate the practical applicability of our approach. Results suggest performance on par with or surpassing the current state-of-the-art, without hyper-parameter optimizations or "task search" of any kind. Code is available at https://github.com/konstantinosKokos/ape.

arxivopen-accesspapercs.LGcs.AI

Chapter 1

We introduce a novel positional encoding strategy for Transformer-style models, addressing the shortcomings of existing, often ad hoc , approaches. Our framework provides a flexible mapping from the algebraic specification of a domain to an interpretation as orthogonal operators. This design preserves the algebraic characteristics of the source domain, ensuring that the model upholds its desired structural properties. Our scheme can accommodate various structures, including sequences, grids and trees, as well as their compositions. We conduct a series of experiments to demonstrate the practical applicability of our approach. Results suggest performance on par with or surpassing the current state-of-the-art, without hyper-parameter optimizations or “task search” of any kind. Code is available through https://aalto-quml.github.io/ape/ .

Edition & License

License
CC-BY-SA-4.0
Source
arXiv (CC-BY)
First published
2024
Catalog ID
arxiv:2312.16045

More in English

Browse all →