Vibeleaderboard
← All Intel
Intel / blog

Using group theory to explore the space of positional encodings for attention

Source
blog.janestreet.com
Date

Context

Rotations and exponential decay can emerge from the same mathematical rule for representing position in a sequence. Jane Street's analysis starts with , which compares internal representations but needs an added mechanism to account for where they occur.

The analysis restricts that mechanism to linear transformations, relative-position dependence, continuity, and unchanged comparisons at equal positions. Two successive position shifts must then have the same effect as one combined shift. This yields a family of matrix transformations containing rotary positional encoding, or RoPE, and exponential decay. The result gives designers a way to relate familiar choices under explicit assumptions, rather than an empirical ranking of their quality.

Terms in this piece · Glossary
  • attention — The mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.
  • Model — A computational system that uses learned patterns to produce an output from information supplied to it.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source blog.janestreet.com
Recommended reads