Submitted:
05 June 2026
Posted:
09 June 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
- 1.
- Mathematically rigorous. KGD admits an explicit series expansion via Funk-Hecke theory, with convergence guarantees and computability.
- 2.
- Predictive. We prove that KGD upper- and lower-bounds the performance gap in kernel ridge regression (KRR) and attention-layer output through operator norm inequalities, with both asymptotic and non-asymptotic guarantees.
- 3.
- Dimensionally consistent. Under the uniform probability measure, KGD exhibits clean asymptotic scaling with explicit polynomial decay in the unit-sphere regime.
- 1.
- KGD definition and spectral properties (Section 4). We define KGD via Funk-Hecke eigenvalue spectra under the uniform probability measure, establish its explicit computable form (Algorithm 1), and characterize its pseudometric structure.
- 2.
- Mercer kernel characterizations (Section 5). We derive the Mercer kernels induced by RMSNorm and LayerNorm for independent RF and GS-ORF, revealing distinct Gaussian RBF vs. spherical hypergeometric limits. These provide a systematic characterization for positive exponential features with normalization.
- 3.
- Performance prediction via KGD (Section 6). We prove that KGD bounds the excess risk gap in KRR and the output discrepancy in attention layers, with non-asymptotic finite-sample and finite-feature bounds.
- 4.
- Dimension scaling and asymptotics (Section 7). We prove the dimension scaling law and characterize the three-way KGD hierarchy among independent RF, GS-ORF, and RHF.
- 5.
- Numerical experiments (Section 8). We provide comprehensive simulations on synthetic spherical data and a sequence prediction task that confirm the scaling laws and performance bounds.
| Algorithm 1 Computation of KGD from kernel specifications |
|
2. Related Work
3. Preliminaries
3.1. Notation and Random Feature Map
3.2. Scaling Regimes
| Regime | Norm scaling | Analytical tool | Key property |
|---|---|---|---|
| Bounded-norm | Taylor expansion | Sub-leading corrections | |
| Large-norm | Full Bessel asymptotics | Qualitative GS advantage | |
| Unit-sphere | Funk-Hecke theory | Zonal kernels; clean spectral decay |
3.3. Funk-Hecke Theory Under the Uniform Probability Measure
4. Kernel Geometry Divergence: Definition and Properties
- 1.
- Non-negativity:, with equality iff in .
- 2.
- Symmetry:.
- 3.
- Triangle inequality:.
- 4.
- Scale invariance:For any , .
4.1. Computability and Algorithm
4.2. KGD as a Predictor of Performance Gaps
5. Mercer Kernel Characterizations for RF Constructions
5.1. Independent Gaussian Random Features
5.2. Gram-Schmidt Orthogonal Random Features (GS-ORF)
5.3. Random Hadamard Features (RHF)
6. Performance Prediction via KGD
7. Dimension Scaling and Asymptotics
7.1. Explicit Eigenvalue Asymptotics
7.2. Dimension Scaling Law
- ,
- ,
- for .
7.3. Three-Way KGD Hierarchy
- 1.
- The Hadamard matrix ensures that the coordinates of are uncorrelated (orthogonality of rows).
- 2.
- The random sign diagonal provides the necessary randomization, making the vectors conditionally independent given .
- 3.
- The resulting empirical process satisfies the same concentration bounds as i.i.d. samples up to a constant factor depending on the coherence of (which is 0 for Hadamard matrices).
8. Numerical Experiments
8.1. Dimension Scaling of KGD
| d | KGD(Ind,GS) | KGD(Ind,RHF) | KGD(RHF,GS) | ||
|---|---|---|---|---|---|
| 8 | |||||
| 16 | |||||
| 32 | |||||
| 64 | |||||
| 128 |
8.2. Kernel Ridge Regression Performance Gap
| Gap (mean ± std) | Upper bound | Ratio | |
|---|---|---|---|
| 0.01 | |||
| 0.1 | |||
| 1.0 |
| d | KGD(Ind,GS) | Gap (mean ± std) | Ratio |
|---|---|---|---|
| 8 | 0.0815 | ||
| 16 | 0.0470 | ||
| 32 | 0.0257 | ||
| 64 | 0.0137 |
8.3. Attention Output Discrepancy
| m | (mean ± std) | (fitted) |
|---|---|---|
| 64 | ||
| 128 | ||
| 256 | ||
| 512 | ||
| 1024 |
8.4. Real-Data-Inspired Sequence Prediction Task
| Kernel | MSE (mean ± std) | Rank | Predicted by KGD? |
|---|---|---|---|
| Independent RF | 2 (worse) | Yes | |
| GS-ORF | 1 (better) | Yes | |
| Gap (Ind − GS) | – | Consistent |
8.5. Summary of Experimental Validation
| Theorem | Prediction | Experiment | Result |
|---|---|---|---|
| Thm 7.3 | KGD | Table 2 | Effective |
| Thm 6.1 | Gap | Table 3 | Confirmed (ratio ) |
| Thm 6.3 | Gap | Adv. target | Confirmed () |
| Thm 4.6 | Attn gap | Table 5 | Confirmed () |
| Cor 7.5 | KGD hierarchy | Table 2 | Confirmed |
| – | Real-task ranking | Table 6 | Confirmed |
9. Discussion and Limitations
10. Conclusion
Funding
Data Availability Statement
Conflicts of Interest
Appendix A. Proofs of Main Theorems
Appendix A.1. Detailed Proof of Theorem 4.5 (KRR Excess Risk Bound)
Appendix A.2. Detailed Proof of Theorem 7.3 (Dimension Scaling Law)
Appendix A.3. Proof of Theorem 6.3 (Lower Bound)
Appendix B. Explicit Funk-Hecke Eigenvalues for RF Kernels
Appendix C. Computational Complexity Analysis
Appendix D. Reproducibility: Python Implementation

References
- Choromanski, K. Rethinking attention with performers. International Conference on Learning Representations (ICLR), 2020. [Google Scholar]
- Katharopoulos, A.; Vyas, A.; Pappas, N.; Fleuret, F. Transformers are rnns: Fast autoregressive transformers with linear attention. In Proceedings of the 37th International Conference on Machine Learning (ICML), 2020; pp. pages 5156–5165. [Google Scholar]
- Choromanski, K.; Rowland, M.; Weller, A. The unreasonable effectiveness of structured random orthogonal embeddings. In Advances in Neural Information Processing Systems (NeurIPS); 2017; volume 30. [Google Scholar]
- Vershynin, R. High-Dimensional Probability: An Introduction with Applications in Data Science; Cambridge University Press, 2018. [Google Scholar]
- Stewart, G. W. The efficient generation of random orthogonal matrices with an application to condition estimators. SIAM J. Numer. Anal. 1980, 17(3), 403–409. [Google Scholar] [CrossRef]
- Eaton, M. L. Group Invariance Applications in Statistics . In Institute of Mathematical Statistics; 1989. [Google Scholar]
- Zhang, B.; Sennrich, R. Root mean square layer normalization. Adv. Neural Inf. Process. Syst. (NeurIPS) 2019, volume 32, pages 12360–12371. [Google Scholar]
- Ba, J. L.; Kiros, J. R.; Hinton, G. E. Layer normalization. arXiv 2016, arXiv:1607.06450. [Google Scholar] [CrossRef]
- Cucker, F.; Smale, S. On the mathematical foundations of learning. Bull. Am. Math. Soc. 2001, 39(1), 1–49. [Google Scholar] [CrossRef]
- Sriperumbudur, B. K.; Gretton, A.; Fukumizu, K.; Schölkopf, B.; Lanckriet, G. R. G. Hilbert space embeddings and metrics on probability measures. J. Mach. Learn. Res. 2010, 11, 1517–1561. [Google Scholar]
- Bach, F. On the equivalence between kernel quadrature rules and random feature expansions. J. Mach. Learn. Res. 2017, 18(21), 1–38. [Google Scholar]
- Gretton, A.; Bousquet, O.; Smola, A.; Schölkopf, B. Measuring statistical dependence with Hilbert-Schmidt norms. Algorithmic Learn. Theory (ALT) 2005, pages 63–77. [Google Scholar]
- Kornblith, S.; Norouzi, M.; Lee, H.; Hinton, G. Similarity of neural network representations revisited. In Proceedings of the 36th International Conference on Machine Learning (ICML), 2019; pp. pages 3519–3529. [Google Scholar]
- Rudi, A.; Rosasco, L. Generalization properties of learning with random features. Adv. Neural Inf. Process. Syst. (NeurIPS) 2017, volume 30, 3215–3225. [Google Scholar]
- Sriperumbudur, B. K.; Sterge, N. Optimal approximation of Gaussian kernels via random features. arXiv 2020, arXiv:2002.09187. [Google Scholar]
- Müller, C. Spherical Harmonics . In of Lecture Notes in Mathematics; Springer-Verlag: Berlin–New York, 1966; volume 17. [Google Scholar]
- Dai, F.; Xu, Y. Approximation Theory and Harmonic Analysis on Spheres and Balls; Springer, 2013. [Google Scholar]
- Atkinson, K.; Han, W. Spherical Harmonics and Approximations on the Unit Sphere: An Introduction . In of Lecture Notes in Mathematics; Springer, 2012; volume 2044. [Google Scholar]
- Rahimi, A.; Recht, B. Random features for large-scale kernel machines. In Advances in Neural Information Processing Systems (NeurIPS); 2007; volume 20. [Google Scholar]
- Cristianini, N.; Shawe-Taylor, J.; Elisseeff, A.; Kandola, J. On kernel-target alignment. In Advances in Neural Information Processing Systems (NeurIPS); 2001; volume 14. [Google Scholar]
- Nguyen, D.; et al. Spectraformer: A unified random feature framework for transformer. International Conference on Learning Representations (ICLR), 2024. [Google Scholar]
- Lu, W.; et al. Learning curves and benign overfitting of spectral algorithms in large dimensions. arXiv 2026, arXiv:2604.23212. [Google Scholar] [CrossRef]
- Luna, J. M.; Bouhsine, T.; Choromanski, K. SLAY: Geometry-aware spherical linearized attention with Yat-kernel. arXiv 2026, arXiv:2602.04915. [Google Scholar] [CrossRef]
- Szegö, G. Orthogonal Polynomials . In of American Mathematical Society Colloquium Publications; American Mathematical Society, 1939; volume 23. [Google Scholar]
- Fournier, N.; Guillin, A. On the rate of convergence in Wasserstein distance of the empirical measure. Probab. Theory Relat. Fields 2015, 162(3-4), 707–738. [Google Scholar] [CrossRef]
- Weed, J.; Bach, F. Sharp asymptotic and finite-sample rates of convergence of empirical measures in Wasserstein distance. Bernoulli 2019, 25(4A), 2620–2648. [Google Scholar] [CrossRef]
- Bartlett, P. L.; Bousquet, O.; Mendelson, S. Local Rademacher complexities. Ann. Stat. 2005, 33(4), 1497–1537. [Google Scholar] [CrossRef]
- Mendelson, S. Geometric parameters of kernel machines. Comput. Learn. Theory (COLT) 2002, pages 29–43. [Google Scholar]
- Tay, Y.; Dehghani, M.; Abnar, S.; Shen, Y.; Bahri, D.; Pham, P.; Rao, J.; Yang, L.; Ruder, S.; Metzler, D. Long range arena: A benchmark for efficient transformers. International Conference on Learning Representations (ICLR), 2021. [Google Scholar]


Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).