TL;DR
This paper bridges a long-standing gap in kernel theory by extending Mercer’s expansion—originally restricted to symmetric positive definite kernels—to the indefinite and asymmetric kernels frequently used in modern machine learning, such as Transformers. The authors prove that kernels with "uniform bounded variation" possess expansions that converge almost everywhere and provide an efficient algorithm for their computation.
Introduction
In kernel methods, Mercer’s Theorem serves as the foundational pillar, establishing that continuous, symmetric, positive definite (SPD) kernels can be decomposed into a sum of eigenfunctions and eigenvalues. This decomposition is critical for the theoretical and practical application of Support Vector Machines (SVMs), Gaussian Processes, and other kernel-based models.
However, modern machine learning architectures frequently employ kernels that violate these classical assumptions. For instance, the sigmoid (tanh) kernel used in Transformers is neither symmetric nor positive definite. While practitioners have long utilized Mercer-like expansions for such kernels, a rigorous mathematical framework to guarantee their convergence, speed, and numerical stability has been largely absent. This paper addresses this gap by extending Mercer’s expansion to indefinite and asymmetric kernels.
Theoretical Framework: Singular Value Expansion
The authors transition from standard eigenexpansion to the Singular Value Expansion (SVE), the continuous analogue of the Singular Value Decomposition (SVD). The primary challenge in this extension is identifying the necessary smoothness conditions to ensure convergence.
The paper introduces the concept of uniform bounded variation as the key technical requirement. A kernel satisfies this condition if it does not exhibit infinite oscillations with non-negligible amplitude. The authors prove that for kernels of uniform bounded variation, the SVE converges "unconditionally almost everywhere" and "almost uniformly," providing the long-sought theoretical safety net for non-SPD kernels.
Numerical Methods: Low-Rank Approximation
To compute these expansions efficiently, the authors propose a two-step algorithmic approach:
- Pseudo-skeleton Approximation: Utilizing Gaussian Elimination with Complete Pivoting (GECP) to identify a low-rank "sketch" of the kernel.
- Low-rank SVD: Compressing the sketch into a final singular value expansion.
This method avoids the computational burden of sampling the kernel on an exhaustive grid, instead leveraging a small number of "pivot" lines to achieve high-precision approximations.
Key Results and Experimental Validation
The paper successfully generalizes Mercer's results, proving that SVE is a valid tool for a broad class of asymmetric and indefinite kernels. A significant finding is that continuity alone is insufficient for the convergence of indefinite kernels, highlighting the necessity of the bounded variation condition.
Furthermore, the authors provide tight bounds on the decay rate of singular values ($\sigma_n$). For an $r$-times differentiable kernel, the singular values decay at a rate of $O(n^{-(r+1)})$. This predictability allows for reliable truncation of the series in low-rank models.
As shown in Figure 1, the theoretical decay bounds align perfectly with experimental observations across various synthetic kernels, including indefinite kernels and those with discontinuous derivatives.
The efficiency of the GECP-based algorithm is demonstrated in Figure 2. For complex kernels like the tanh kernel, the method achieves near-optimal low-rank approximations with minimal computational overhead, matching the theoretical predictions and demonstrating high numerical stability.
Conclusion
This work bridges the gap between kernel theory and modern machine learning practice. By establishing the convergence of SVE for kernels of uniform bounded variation and providing an efficient computation algorithm, the authors provide a rigorous foundation for the use of asymmetric and indefinite kernels. Future work remains to prove pointwise convergence for all kernels of uniform bounded variation and to extend these results to higher-dimensional domains.
Summary updated