atlas

Research map / Architectures and efficiency / RNNs and normalization

Algebraic Positional Encodings

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Differentiable optimization layers · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Algebraic Positional Encodings (APE), mapping the algebraic specification of sequences, trees, and grids to orthogonal matrix operators that generalize rotary encodings, and evaluates them on translation, synthetic transduction, tree tasks, and CIFAR-10.

Problem

Positional encodings for Transformers are mostly ad hoc or task-specific, lacking a principled account of how they reflect the structure of the underlying domain (sequences, trees, grids).

Approach

Interpret the group of relative paths in a domain (free group for sequences/k-ary trees, direct sums for grids) homomorphically as subgroups of the orthogonal group, so positions become orthogonal operators applied to queries and keys; RoPE emerges as a special case and tree/grid extensions follow naturally.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Algebraic positional encoding instead of the strongest reported baselineTransformer base · WMT14 en→de testBLEU: 24.03 ± 0.06 -> 23.93 ± 0.10Mixed
Add RoPE-mimicking initialization (ablation)Algebraic positional encoding · Sequence and tree transduction tasksperplexityHelped
Add RoPE-mimicking initialization (ablation)Algebraic (seq), Compact Convolutional Transformer · CIFAR-10, ≤150 epochsaccuracy: 88.93 ± 0.19 -> 92.68 ± 0.24Helped
Add RoPE-mimicking initialization (ablation)Algebraic (seq), Compact Convolutional Transformer · CIFAR-10, ≤300 epochsaccuracy: 91.09 ± 0.20 -> 94.59 ± 0.15Helped
Add RoPE-mimicking initialization (ablation)Algebraic (grid), Compact Convolutional Transformer · CIFAR-10, ≤150 epochsaccuracy: 92.95 ± 0.07 -> 93.13 ± 0.33No clear effect
Add RoPE-mimicking initialization (ablation)Algebraic (grid), Compact Convolutional Transformer · CIFAR-10, ≤300 epochsaccuracy: 94.48 ± 0.18 -> 94.67 ± 0.06No clear effect
Use trainable sequential APE instead of tuned RoPETransformer · Algorithmic sequence transductionperplexityMixed
Freeze RoPE rotation angles rather than tuning themTransformer · Synthetic sequence transductionperplexityMixed
Use tree-structured APE instead of sequential positional encodingsTransformer · Tree copying, breadth-firstperplexityHurt
Use tree-structured APE instead of sequential positional encodingsTransformer · Tree manipulation, breadth-firstperplexityMixed
Use grid-structured rather than sequential APECompact Convolutional Transformer · CIFAR-10, ≤150 epochsaccuracy: 92.68 ± 0.24 -> 93.13 ± 0.33Helped
Use grid-structured rather than sequential APECompact Convolutional Transformer · CIFAR-10, ≤300 epochsaccuracy: 94.59 ± 0.15 -> 94.67 ± 0.06No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: WMT14 en-de newstest2014 CIFAR-10 synthetic sequence copy/reverse/repeat tasks synthetic tree tasks (copy, rotate, C3 reduction, tree-ops)

Benchmarks: WMT14 en-de (newstest2014) synthetic sequence transduction (Copy, Repeat, Reverse) synthetic tree transduction (Copy, Rotate, C3, Tree-Ops) CIFAR-10

Metrics: BLEU perplexity top-1 accuracy

Baselines: Sinusoidal positional encoding Absolute positional encoding Relative positional encoding Rotary positional encoding (frozen) Rotary positional encoding (tuned) Tree-SQ Compact Convolutional Transformer

Builds on: Transformer RoPE Montague semantics

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy