Curvature-Corrected Rotary Position Embeddings: An Entropy-Invariant Temperature for Mitigating Numerical-Rank Collapse in Long-Context Attention
Open accessThe 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
Cites
Statistics
Verification
Claims the paper makes
9 Valid · 5 Not valid · 4 Not checked · 164 Own results and interpretations
The cited sources support only part of this claim — read each source’s verdict below.
In the paper
“Condition (D1) is not a convenience imposed for tractability; it describes the regime-trained transformers are independently observed to enter at long context.”
What the sources say
- Not checked — no full text of the sourcecites [2] 2. Anson, B.; Wang, X.; Aitchison, L. Scale-invariant attention. arXiv 2025 , arXiv:2505.17083. [CrossRef] source
- Partly supportedcites [3] 3. Zhang, Z.; Wang, Y.; Huang, X.; Fang, T.; Zhang, H.; Deng, C.; Li, S.; Yu, D. Attention entropy is a key factor: An analysis of parallel context encoding with full-attention-based pre-trained language models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics ; Association for Computational Linguistics: Kerrville, TX, USA, 2025. [CrossRef] sourceExperimental — accuracy not yet measured
Section 3 says longer sequences tend to have higher attention entropy and reports observations from a pretrained model, which supports a long-context attention trend. But the citing sentence does not define Condition (D1), so our copy cannot establish that the condition as a whole describes the observed regime. (LLM, conf=0.70)
plain- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
The cited sources support only part of this claim — read each source’s verdict below.
In the paper
“high attention entropy at long context is independently identified as a factor degrading long-context behaviour by Zhang et al. [3].”
What the sources say
- Partly supportedcites [3] 3. Zhang, Z.; Wang, Y.; Huang, X.; Fang, T.; Zhang, H.; Deng, C.; Li, S.; Yu, D. Attention entropy is a key factor: An analysis of parallel context encoding with full-attention-based pre-trained language models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics ; Association for Computational Linguistics: Kerrville, TX, USA, 2025. [CrossRef] sourceExperimental — accuracy not yet measured
The Introduction and §4.2 link elevated attention entropy to poorer performance under parallel context encoding and report that entropy-reducing methods improve performance. The claim omits that condition: the paper does not establish high entropy as a general factor degrading long-context behaviour across encoding schemes. (LLM, conf=0.86)
plainstates a cause- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: unclear — It is unclear whether the paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
- Partly supported
The sources with a verdict support this claim; the rest weren’t checked yet, have no full text we could read, or their verdicts aren’t rated yet.
In the paper
“The information geometry derives the schedule (14) from the entropy-temperature identity (12), rather than positing it empirically as in the LogN-scaling and YaRN families [2,5], whose temperature factors are curve-fitted.”
What the sources say
- Not checked — no full text of the sourcecites [2] 2. Anson, B.; Wang, X.; Aitchison, L. Scale-invariant attention. arXiv 2025 , arXiv:2505.17083. [CrossRef] source
- Supportedcites [5] 5. Peng, B.; Quesnelle, J.; Fan, H.; Shippole, E. YaRN: Efficient context window extension of large language models. arXiv 2023 , arXiv:2309.00071. [CrossRef] source
Section 3.4 gives YaRN’s recommended temperature factor, 1/t = 0.1 ln(s) + 1, and explicitly says the equation was found by fitting values at the lowest perplexity across scale factors. This supports the claim about YaRN’s empirically fitted factor; the citation does not attribute the citing paper’s information-geometric derivation to YaRN. (LLM, conf=0.94)
plainstates a cause- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
The cited sources support only part of this claim — read each source’s verdict below.
In the paper
“at fixed softmax temperature the attention entropy grows like log L”
- Also stated in: § 1. Introduction · plain
“With a fixed softmax temperature, the entropy of each attention row grows like log L as the sequence lengthens-a phenomenon observed empirically in trained transformers [2,3]”
- Also stated in: § 2.3. The Diffuse-Attention Regime · plain
“With a fixed softmax temperature, attention entropy grows logarithmically, H ( pt ) ∼ log L, so attention spreads out and the per-position relevance signal weakens as L increases [2]”
What the sources say
- Not checked — no full text of the sourcecites [2] 2. Anson, B.; Wang, X.; Aitchison, L. Scale-invariant attention. arXiv 2025 , arXiv:2505.17083. [CrossRef] source
- Partly supportedcites [3] 3. Zhang, Z.; Wang, Y.; Huang, X.; Fang, T.; Zhang, H.; Deng, C.; Li, S.; Yu, D. Attention entropy is a key factor: An analysis of parallel context encoding with full-attention-based pre-trained language models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics ; Association for Computational Linguistics: Kerrville, TX, USA, 2025. [CrossRef] sourceExperimental — accuracy not yet measured
Section 3 says that longer sequences intuitively have higher attention entropy in length extrapolation. It does not establish that entropy grows like log L or specify a fixed softmax temperature; Section 2.1 defines entropy but gives no length-scaling law. Page numbers are unavailable in our copy. (LLM, conf=0.85)
plainstates a cause- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
- Also stated in: § 1. Introduction · plain
Every source the paper cites for this claim was checked and supports it.
In the paper
“they address extrapolation of the positional code, a different concern from the entropy growth we analyse”
What the sources say
- Supportedcites [4] 4. Chen, S.; Wong, S.; Chen, L.; Tian, Y. Extending context window of large language models via positional interpolation. arXiv 2023 , arXiv:2306.15595. [CrossRef] source
The Introduction says Position Interpolation extends context windows by down-scaling position indices rather than extrapolating positional encodings beyond trained positions. The contrast with entropy growth is the citing authors’ framing, not a finding attributed to this source. (LLM, conf=0.88)
- Supportedcites [5] 5. Peng, B.; Quesnelle, J.; Fan, H.; Shippole, E. YaRN: Efficient context window extension of large language models. arXiv 2023 , arXiv:2309.00071. [CrossRef] source
Section 2.2 describes Position Interpolation as modifying RoPE positions to extend context beyond the pretrained limit. Sections 3.4 and 5 describe YaRN as combining RoPE interpolation with attention scaling to enable longer-context extrapolation. The comparison with the citing authors’ entropy analysis is their framing, not a finding attributed to YaRN. (LLM, conf=0.86)
plain- Asserted: passes — The authors put it forward as true.
- Checkable: passes — It can be checked against evidence.
- Load-bearing: passes — The paper’s conclusions depend on it.
- Based: passes — The paper gives a reason why it holds.
- Supported
58 more claims
Create a free account to see all 182 claims and to verify the 1 reference still open.
- Probably not a substantial claim. 34
- It may state two separate claims as one. 96
- The quote only partly states this claim. 3
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.
Rated minor: it would not touch a result — a value no result rests on, a p-value that stays on the same side of the significance level, or a conflict that is clerical, resolved elsewhere in the paper, or outside its own findings.
In the paper
§ 5. Elimination of Numerical-Rank Collapse in the Diffuse Regime
“calibrating L ref at the model's training length (where ε mach σ 1 already exceeds every σ k ) makes this fraction zero”
§ 6.3. Entropy Growth and Rank Collapse
“| 256 | 4.39 | 0 | 2.4 × 10 9 | 4.39 | 0 | 2.4 × 10 9 |”
Rated minor: it would not touch a result — a value no result rests on, a p-value that stays on the same side of the significance level, or a conflict that is clerical, resolved elsewhere in the paper, or outside its own findings.
In the paper
§ Appendix B.2. Curvature Identities
“| I ( t ) | Θ ( 1/ ( d L a )) | Θ ( 1/ d ) (restored) |”
§ 3.1. Collision-Support Growth
“Measured directly, I ( t ) is essentially constant in L (Section 6), as is the per-step distinguishability KL ( pt ∥ pt + 1 )”
Rated minor: it would not touch a result — a value no result rests on, a p-value that stays on the same side of the significance level, or a conflict that is clerical, resolved elsewhere in the paper, or outside its own findings.
In the paper
§ 6.1. Experimental Setup
“lowering θ min so the slowest block's period shrinks from ≈ 62,832 tokens to a few hundred”
§ 1. Introduction
“the lowest-frequency block completing one cycle every ∆ t full = 2 π / θ min ≈ 62,832 tokens”
Rated minor: it would not touch a result — a value no result rests on, a p-value that stays on the same side of the significance level, or a conflict that is clerical, resolved elsewhere in the paper, or outside its own findings.
In the paper
§ 1.2. Contributions
“a positiondependent phase warp ˜ R θ ( t ) = R θ ( t + ηκ g ( t )) -a construction that stays exactly in SO ( d ) and preserves the relative-position property-cannot change the diffuse nearcirculant structure”
§ 4.3. An Obstruction for Relative-Position-Preserving Warps
“The construction keeps the encoding on the group, adds no parameters, and makes the effective distance depend non-linearly on both endpoints.”
Citations
Cites
Accuracy and Stability of Numerical Algorithms: Second Edition
Higham, N. J. (2002) · doi:10.1137/1.9780898718027 · Cited by 3,803
Trefethen, L. N., & Bau, III (1997) · doi:10.1137/1.9780898719574 · Cited by 3,301 · cited 1×
“For a backward-stable evaluation, the standard perturbation bound of numerical linear algebra [32,33] gives a relative forward error so a condition number κ corresponds to a worst-case loss of about log 10 κ significant decimal digits.”
Transformer-XL: Attentive language models beyond a fixed-length context
Dai, Z., Yang, Z., Yang, Y., Carbonell, J., Le, Q., & Salakhutdinov, R. (2019) · Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/p19-1285 · Cited by 3,169 · cited 1×
“Transformer-XL [20] introduced segment-level recurrence as the first step beyond fixed-length contexts.”
RoFormer: Enhanced transformer with rotary position embedding
Su, J., Ahmed, M., Lu, Y., Pan, S., Bo, W., & Liu, Y. (2024) · Neurocomputing · doi:10.1016/j.neucom.2023.127063 · Cited by 1,957
Curvatures of left invariant metrics on lie groups
Milnor, J. (1976) · Advances in Mathematics · doi:10.1016/s0001-8708(76)80002-3 · Cited by 1,272
A Length-Extrapolatable TransformerPreprint
Sun, Y., Dong, L., Patra, B., Ma, S.-M., Huang, S.-H., Benhaim, A., Chaudhary, V., Song, X., & Wei, F. (2022) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2212.10554 · Cited by 192
Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
Press, O., Smith, N. A., & Lewis, M. (2021) · arXiv · doi:10.48550/arxiv.2108.12409 · Cited by 161 · cited 2×
“ALiBi [17] instead replaces rotation with a linear distance penalty; this sidesteps the condition number problem but sacrifices the relative-position expressiveness and architectural compatibility of RoPE.”
Accurately computing the log-sum-exp and softmax functions
Blanchard, P., Higham, D. J., & Higham, N. J. (2021) · IMA Journal of Numerical Analysis · doi:10.1093/imanum/draa038 · Cited by 126
Training-Free Long-Context Scaling of Large Language ModelsPreprint
An, C., Huang, F., Zhang, J., Gong, S., Qiu, X., Zhou, C., & Kong, L. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2402.17463 · Cited by 99
A Length-Extrapolatable Transformer
Sun, Y., Dong, L., Patra, B., Ma, S., Huang, S., Benhaim, A., Chaudhary, V., Song, X., & Wei, F. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2023.acl-long.816 · Cited by 59
Research works printed but not linked: 2
- Jonasson, A. (2025). Rotary offset features in large language models. arXiv.
- 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
- gold
- doi.org
- Licence
- 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
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Curvature-Corrected Rotary Position Embeddings: An Entropy-Invariant Temperature for Mitigating Numerical-Rank Collapse in Long-Context Attention. https://app.cochat.ai/papers/10.3390/math14142637
- The paper
- Mtetwa, J. T., Ogudo, K. A., & Pudaruth, S. (2026). Curvature-Corrected Rotary Position Embeddings: An Entropy-Invariant Temperature for Mitigating Numerical-Rank Collapse in Long-Context Attention. Mathematics. https://doi.org/10.3390/math14142637
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.