Spherical Position Encoding for Transformers

Eren Unlu
10/4/2023
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Position encoding is the primary mechanism which induces notion of sequential order for input tokens in transformer architectures. Even though this formulation in the original transformer paper has yielded plausible performance for general purpose language understanding and generation, several new frameworks such as Rotary Position Embedding (RoPE) are proposed for further enhancement. In this paper, we introduce the notion of "geotokens" which are input elements for transformer architectures, each representing an information related to a geological location. Unlike the natural language the sequential position is not important for the model but the geographical coordinates are. In order to induce the concept of relative position for such a setting and maintain the proportion between the physical distance and distance on embedding space, we formulate a position encoding mechanism based on RoPE architecture which is adjusted for spherical coordinates.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{unlu2023spherical,
  title  = {Spherical Position Encoding for Transformers},
  author = {Eren Unlu},
  year   = {2023},
  eprint = {2310.04454},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.04454v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.04454.svg)](https://codeofpaper.com/paper/2310.04454)

Discussion