CoChat

Curvature-Corrected Rotary Position Embeddings: An Entropy-Invariant Temperature for Mitigating Numerical-Rank Collapse in Long-Context Attention

Open access

The DOI matches its Crossref record; 37 of the 37 references it cites were found in a registry or an index; 16 of the 26 sources its claims cite were checked for support.

Abstract

As large language models process ever longer contexts, the positional encoding—most commonly rotary position embeddings (RoPEs)—must remain numerically trustworthy. We give an information-geometric analysis of why the attention matrix becomes ill-conditioned as the sequence length L grows. We first show that the tempting frequency-aliasing explanation fails, because RoPE’s multi-frequency code keeps positions well separated. The mechanism is statistical: at fixed softmax temperature the attention entropy grows like logL, and the rows spread their mass over a collision support (inverse participation ratio) that grows polynomially as La (a≈0.9 measured), confining the matrix’s trailing singular values and producing a numerical-rank collapse. We prove, and confirm in 50-digit arithmetic, that the spectral condition number is intrinsically ill-posed here, so the numerical rank is the correct diagnostic. From the exact entropy–temperature identity dH/dβ=−βVarp(e) we derive the entropy-invariant schedule β★(L)=(L/Lref)c0, Curvature-Corrected RoPE (CC-RoPE), and prove that in the diffuse near-circulant regime it eliminates the collapse at a characterised conditioning–mixing cost, whereas no relative-position-preserving warp can. The two signatures are further confirmed in a trained RoPE model (Pythia-160M); the downstream perplexity effect is framed as a falsifiable prediction.

Overview

CoChat Summary

TL;DR

The paper argues that long-context RoPE attention becomes numerically rank-deficient not because of frequency aliasing but because fixed-temperature softmax entropy grows like log L, spreading each row over a collision support that grows as L^a (a ≈ 0.9). It derives an entropy-invariant temperature schedule, CC-RoPE, β⋆(L) = (L/L_ref)^c0, which eliminates the numerical-rank deficit in the full non-causal diffuse regime studied, while leaving causal trained-model behavior open.

Key findings

  • Frequency aliasing is not the mechanism: positions one slow-period apart have ℓ2 code distance ≈ 8.2, and the position-feature matrix condition number decreases toward 1.4 as L grows.
  • Under fixed temperature, mean row entropy grows linearly in log L (fit H ≈ 0.91 log L − 0.75), collision support grows as L^a with measured exponents 0.90, 0.89, and 0.89 (a ≈ 0.9), and the numerical-rank deficit grows with L; the spectral condition number sits at the double-precision roundoff floor (∼10^16–10^19).
  • CC-RoPE with β⋆(L) = β0(L/L_ref)^c0, c0 = 0.91, holds mean row entropy constant to within 0.29 nats over a 16× length range (H ∈ [4.11, 4.39] for L ∈ [256, 4096], versus uncorrected rise to 6.88), makes the numerical-rank deficit identically zero at every tested length, and lifts κ from ∼10^19 to ∼10^10; the conservative √log L schedule only reduces the deficit (e.g., 926 → 633 at L = 4096).
  • In Pythia-160M on real text, median-head entropy grows as H ≈ 0.19 log L + 0.43; the numerical-rank deficit is head-dependent, with median deficit rising 1 → 13 and upper-quartile deficit 8 → 210 from L = 128 to 2048, but on causal lower-triangular attention neither √log L nor β⋆ reduced the rank deficit.

Methods

  • Theoretical information-geometric analysis of RoPE attention, deriving collision-support growth, trailing-spectrum bounds, and the entropy-invariant temperature from the identity dH/dβ = −β Var_p(e).
  • Reduced-scale numerical verification without training: attention matrices constructed from the RoPE score formula in the diffuse regime, with head dimension d = 64 and slow-block period ≈ 400 tokens instead of ≈ 62,832; dense SVD, entropy, collision support, Fisher information, numerical rank, and condition number measured, including 50-digit arithmetic checks.
  • Trained-model check: Pythia-160M (RoPE, trained context 2048), no training, CPU only, one forward pass per context length L ∈ {128, 256, 512, 1024, 2048} on real text, harvesting all 144 (layer, head) attention matrices and measuring mean row entropy and numerical-rank deficit.

Limitations

  • Stated: no trained-model end-to-end evaluation; the paper does not measure perplexity or downstream accuracy, and the link from numerical rank to task quality is a falsifiable conjecture, not a result.
  • Stated: reduced-scale and partially synthetic experiments; the core verification uses a rescaled length axis, constants and exact onset at L = 10^6 are not measured, the trained-model check is at modest context (≤2048 tokens), and on causal lower-triangular attention the schedule does not by itself restore rank, leaving a causal-aware correction to future work.
  • Stated: elimination comes at a mixing cost, the optimal sharpening exponent is not resolved, the analysis assumes the diffuse-attention regime, and entropy invariance is not proven optimal; c0 must be measured per model. Evident from the text: the trained-model evidence is limited to one model, Pythia-160M, and no controlled training study is performed.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

Crossref · 10.3390/math14142637

Cites

37 of 37 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Verification

Claims the paper makes

9 Valid · 5 Not valid · 4 Not checked · 164 Own results and interpretations

58 more claims

Create a free account to see all 182 claims and to verify the 1 reference still open.

See all claims — free account
  • Probably not a substantial claim. 34
  • It may state two separate claims as one. 96
  • The quote only partly states this claim. 3

Create a free account to see these claims.

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

4 of 4

Citations

Cites

Show all 37 references

Research works printed but not linked: 2

  1. Jonasson, A. (2025). Rotary offset features in large language models. arXiv.
  2. Biderman, S., Schoelkopf, H., Anthony, Q., Bradley, H., O’Brien, K., Hallahan, E., Khan, M.A., Purohit, S., Prashanth, U.S., and Raff, E. (2023). Pythia: A suite for analyzing large language models across training and scaling. Proceedings of the 40th International Conference on Machine Learning, PMLR.

Metadata

Authors
Mtetwa, J. T., Ogudo, K. A., & Pudaruth, S.
Affiliations
  • University of Johannesburg (ZA)
  • University of Mauritius (MU)
Corresponding author
Mtetwa, Joseph Tafataona
Venue
Mathematics
Publisher
MDPI AG
Published
2026-07-20
Volume
14
Issue
14
Pages
2637
ISSN
2227-7390 (ISSN-L)
OpenAlex
W7169808933
Cited by
0
References
16
FWCI
0.00
Type
journal article
Language
en
Open access
Locations
  • Mathematics (publishedVersion, cc-by)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion)
Funders
  • University of Johannesburg’s URC-2025 Research Fund (KA_Ogudo/UJ/DEET/2025)
  • UJ Library APC-2026
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Computational Theory and Mathematics › Matrix Theory and Algorithms
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
Keywords
rotary position embedding, information geometry, attention entropy, inverse participation ratio, spectral condition number, curvature correction, aliasing, relative position encoding, large language models

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

The claim verdicts this report counts are experimental: their accuracy is not yet measured.

A language model drew the claims from the paper on 2026-10-06, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-10-06 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

Cited sources are checked with a language model’s help (gpt-6-sol).

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.