Abstract
Positive-definite kernel functions are fundamental elements of kernel methods and Gaussian processes. A well-known construction of such functions comes from Bochner's characterization, which connects a positive-definite function with a probability distribution. Another construction, which appears to have attracted less attention, is Polya's criterion that characterizes a subset of these functions. In this paper, we study the latter characterization and derive a number of novel kernels little known previously. In the context of large-scale kernel machines, Rahimi and Recht (2007) proposed a random feature map (random Fourier) that approximates a kernel function, through independent sampling of the probability distribution in Bochner's characterization. The authors also suggested another feature map (random binning), which, although not explicitly stated, comes from Polya's characterization. We show that with the same number of random samples, the random binning map results in an Euclidean inner product closer to the kernel than does the random Fourier map. The superiority of the random binning map is confirmed empirically through regressions and classifications in the reproducing kernel Hilbert space.
Introduction
Kernel methods, such as Support Vector Machines (SVMs) and Gaussian Processes, have long been a cornerstone of machine learning due to their ability to model complex, non-linear relationships. However, these methods face a significant scalability hurdle: they typically require the computation and storage of an $n \times n$ kernel matrix, where $n$ is the number of data points. As datasets grow into the millions, the $O(n^2)$ memory and $O(n^3)$ computation costs become prohibitive.
To address this, researchers utilize Random Feature Maps to approximate the kernel function $k(x, y) \approx \phi(x)^\top \phi(y)$. By mapping data into a lower-dimensional randomized feature space, the problem can be solved using efficient linear solvers. The most prominent of these techniques is Random Fourier Features (RFF), which is theoretically grounded in Bochner’s Theorem. This paper explores an alternative theoretical foundation—Polya’s Criterion—to derive new kernels and demonstrates that the associated "Random Binning" (RB) feature maps often outperform the standard RFF approach.
Theoretical Foundations: Bochner vs. Polya
Bochner’s Theorem and Random Fourier Features
Bochner’s Theorem states that a continuous, shift-invariant function is positive-definite if and only if it is the Fourier transform of a non-negative measure (a probability distribution). This provides the mathematical justification for RFF: by sampling from the distribution associated with a kernel (e.g., the Gaussian distribution for an RBF kernel), we can construct a randomized feature map whose inner product converges to the true kernel value.
Polya’s Criterion and Random Binning
Polya’s criterion offers a different path. It specifies that a real-valued, even, and continuous function that is convex on $(0, \infty)$ and vanishes at infinity is positive-definite. While less frequently cited in machine learning literature, this paper formalizes the connection between Polya’s work and the "Random Binning" heuristic. The authors show that any probability distribution supported on the positive real line can define a valid kernel through an integral of "triangular" functions. This realization allows for the systematic derivation of a new family of kernels.
Deriving Novel Kernels
By leveraging Polya’s framework, the authors derive explicit closed-form expressions for several novel kernels based on standard probability distributions:
- Poisson Kernel
- Gamma Kernel
- Nakagami Kernel
- Weibull Kernel
Unlike the standard Gaussian kernel, which is defined primarily by a scale parameter, these new kernels often include a "shape" parameter (e.g., the $s$ in Gamma or $m$ in Nakagami). This additional hyperparameter provides greater flexibility, allowing the kernel to better adapt to the underlying geometry of the data.
Variance Analysis: Why Random Binning Wins
A critical contribution of this work is the mathematical proof of why Random Binning (RB) is more efficient than Random Fourier (RF). The authors analyze the variance of the inner product approximations for both methods:
- RF Variance: $1 - k(r)^2$
- RB Variance: $k(r) - k(r)^2$
Since the kernel value $k(r)$ typically ranges between 0 and 1, it follows that $k(r) - k(r)^2 \le 1 - k(r)^2$. This theoretical gap implies that for a fixed number of random samples $D$, the RB map will yield an approximation with lower error than the RF map. In practical terms, RB requires fewer samples to reach the same level of accuracy, saving both memory and time.
Empirical Evaluation
The authors tested these kernels and feature maps across eight benchmark datasets from the LIBSVM repository, including mnist, cadata, ijcnn1, and covtype.
Matrix Approximation Accuracy
Empirical tests confirmed the variance analysis. On datasets like acoustic and cadata, the relative Frobenius norm error for the RB approximation was significantly lower than that of RF. In some instances, RB achieved an order of magnitude better precision for the same computational budget.
Predictive Performance
In regression and classification tasks, the kernels derived from Polya’s criterion (particularly the Gamma and Poisson kernels) consistently outperformed the standard Laplace and Gaussian kernels. Furthermore, models using RB reached peak accuracy with far fewer random features than those using RFF, confirming the practical utility of the Polya-based approach for large-scale applications.
Conclusion and Limitations
This research breathes new life into Polya’s criterion, establishing it as a powerful tool for kernel design and approximation. While Random Binning demonstrates clear superiority in variance and empirical performance, it is currently limited by a "tensor-product" constraint. Unlike RFF, which can easily approximate rotationally invariant kernels in high dimensions, RB is most naturally suited for kernels that operate on dimensions independently. Future work remains to generalize Polya’s criterion to non-axis-aligned grids and to further explore the theoretical bounds of why these approximate features sometimes exceed the performance of the exact kernels they approximate.
Summary updated