atlas

Research map / Architectures and efficiency / Attention and transformers

Dynamical Properties of Tokens in Self-Attention and Effects of Positional Encoding

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 0 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.

Analyzes the continuous-time limit of self-attention to give conditions under which token embeddings converge to zero or diverge, shows RoPE promotes divergence, and proposes learnable regularization of the query-key matrix that gives small perplexity/BPC gains.

Problem

Understanding how tokens evolve through pre-trained Transformer self-attention layers (treated as a continuous-time dynamical system), and how absolute and rotary positional encodings affect whether tokens converge or diverge, with prior theory relying on restrictive assumptions.

Approach

Treats the residual self-attention update as an ODE with matrices A = W(V^T)^{-1} and W, proves token-distance monotonicity and convergence-to-zero or divergence conditions under broader assumptions than prior work, then uses these regimes to constrain attention and to add a learnable negative-definite term to RoPE's query-key matrix to discourage convergence.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Constrain attention parameters to the convergence scenarioTransformer with sinusoidal positional encoding · EnWik8 testBPC: 1.331 -> 1.350Hurt
Constrain attention parameters to the divergence scenarioTransformer with sinusoidal positional encoding · EnWik8 testBPC: 1.331 -> 1.324Helped
Constrain attention parameters to the convergence scenarioTransformer with sinusoidal positional encoding · WikiText-103 validationPPL: 31.63 -> 32.24Hurt
Constrain attention parameters to the divergence scenarioTransformer with sinusoidal positional encoding · WikiText-103 validationPPL: 31.63 -> 31.12Helped
Constrain attention parameters to the convergence scenarioDeiT · ImageNet-1K validationTop 1 Acc: 71.80 -> 71.34Hurt
Constrain attention parameters to the divergence scenarioDeiT · ImageNet-1K validationTop 1 Acc: 71.80 -> 71.96Helped
Add learnable regularization term λI_D to W_li (ablation)Transformer + RoPE · EnWik8 testBPC: 1.295 -> 1.288Helped
Add learnable regularization term λA to W_liTransformer + RoPE · EnWik8 testBPC: 1.295 -> 1.281Helped
Add learnable regularization term λA to W_liTransformer + RoPE · WikiText-103 validationPPL: 31.37 -> 31.06Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-103 EnWik8 ImageNet-1K

Benchmarks: WikiText-103 EnWik8 ImageNet-1K

Metrics: perplexity bits per character top-1 accuracy top-5 accuracy

Baselines: Transformer with sinusoidal positional encoding Transformer + RoPE DeiT

Builds on: Geshkovski et al. particle-system analysis of self-attention ResNet continuous-time limit RoPE ALBERT

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