HySPE: Positional Encoding via Symplectic Dual Shears
Zhongping Ji
Key points
From the paper's conclusion- We introduce Hyperbolic Symplectic Positional Encoding (HySPE), grounding positional attention in non-compact symplectic transformations.
Abstract
We introduce Hyperbolic Symplectic Positional Encoding (HySPE), grounding positional attention in non-compact symplectic transformations. While canonical Rotary Position Embedding (RoPE) parameterizes the compact, elliptic branch of $\Sp(2,\R)$ via rotations, HySPE operationalizes its hyperbolic branch via a damped symmetric composition of dual shears, yielding a conformally symplectic contraction with two spectral decay rates per channel pair. To eliminate the exponential representation drift inherent to naive absolute factorizations, we diagonalize the operator in its invariant eigenbasis and introduce blockwise coordinate rebasing with adaptive centered execution. This guarantees length-independent numerical bounds while matching cached RoPE forward latency (7.21\,ms on an RTX 4090). On TinyShakespeare, HySPE-UltraLong maintains an invariant perplexity of 4.810 up to $16\times$ zero-shot extrapolation ($L=4096$), whereas RoPE degrades to 131.198. Scaled to a 51M-parameter subword Transformer on WikiText-103 ($L_{\text{train}}=512$), HySPE closely matches RoPE in-domain while robustly extrapolating to length 8192, reducing tail perplexity by 83.9\% over RoPE. While these controlled experiments establish HySPE's extrapolation robustness and numerical stability, evaluating its scaling behavior on large-scale foundation models remains an important direction for future investigation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- WavePrune: One period is often enough for RoPEarXiv · 2026
- LayerRoPE: Dynamic Depth-wise Magnitude & Angular SuperpositionarXiv · 2026
- Phase Space Attention:A Hairer Lift Circumvents the Single-Layer Induction ObstructionarXiv · 2026
- Disentangling the Expressivity of RoPEarXiv · 2026
- ConvPE: Convolutional Position Embedding Improves TransformersarXiv · 2026
- Compression Does Not End at Selection: Post-Selection Positional Geometry for Sparse KV CachesarXiv · 2026