scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Randomized Positional Encodings Boost Length Generalization of Transformers

Anian Ruoss, Grégoire Delétang, Tim Genewein, Jordi Grau-Moya, Róbert Csordás, Mehdi Bennani, Shane Legg, Joel Veness

ACL 2023Architectures and efficiency › Attention and transformersapproach: Transformer expressivity and learnabilityopen problems in this approach170 citations (OpenAlex)

Google DeepMind · The Swiss AI Lab

Read the paperPlace an idea next to itCheck your own paper ↗

11measured effects
8improved
2no clear effect
1hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
randomize positional encodings (sampled up to L=2048)relative PE · Reverse Stringaccuracy: 58.3 -> 95.1Improved
randomize positional encodingsrelative PE · Missing Duplicateaccuracy: 54.0 -> 100.0Improved
randomize positional encodingssin/cos PE · Even Pairsaccuracy: 50.9 -> 100.0Improved
randomize positional encodingsall PE schemes, 15 tasks · algorithmic reasoning suite (avg over tasks)accuracy: +12.0% on average, up to 43.5%Improved
randomize positional encodingsALiBi · Even Pairsaccuracy: 67.3 -> 81.5Improved
randomize positional encodingsrelative PE · Binary Multiplicationaccuracy: 52.2 -> 50.1No clear effect
sort the sampled positions (ablation)randomized sin/cos PE · 15 tasks (avg)accuracy: +15.7% on average, up to 76.3%Improved
sort the sampled positions (ablation)randomized sin/cos PE · Bucket Sortaccuracy: 23.7 -> 100.0Improved
sort the sampled positions (ablation)randomized sin/cos PE · Missing Duplicateaccuracy: 53.1 -> 52.5Hurt
vary maximum position L (1024, 2048, 4096, 8192) (ablation)randomized relative PE · Reverse String, Missing DuplicateaccuracyNo clear effect
train randomized relative PE on length 40 instead of classical relative PE on length 500relative PE · Missing Duplicatetraining speed: 168.4 vs 22.1 steps per secondImproved

Open problems in Transformer expressivity and learnability

Do theorems about transformer expressivity and learning still hold for deep, softmax, trained models?

All 3 open problems and what was already tried →

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