Overview
Researchers have developed a new method called QMC Slicing to drastically speed up the computation of large kernel sums. By combining one-dimensional projections (slicing) with "smart" sampling patterns (Quasi-Monte Carlo) and Fast Fourier Transforms, this approach achieves significantly higher accuracy and faster convergence than standard random features, even for kernels that are not positive definite.
The Bottleneck in Kernel Methods
Many machine learning and statistics methods—from Kernel Density Estimation and Support Vector Machines to Maximum Mean Discrepancy (MMD) for generative models—rely on computing "kernel sums." If you have $N$ data points and $M$ evaluation points, calculating these sums exactly takes $O(MN)$ time. When $N$ and $M$ scale into the hundreds of thousands, this becomes a massive computational bottleneck.
Existing solutions come with significant trade-offs:
- Fast Fourier Summation: Extremely fast, but only viable in very low dimensions (usually $d \le 4$) because the number of required Fourier coefficients explodes exponentially with dimension.
- Random Fourier Features (RFF): The industry standard for high dimensions. It scales well but converges slowly (with an $O(1/\sqrt{D})$ error rate) and is strictly limited to positive definite kernels.
The authors aim to bridge this gap by creating a method that scales to higher dimensions, converges faster than RFF, and works for a wider variety of kernels.
The Proposed Method: QMC Slicing
The authors propose QMC Slicing, which tackles the problem in three main steps:
- Slicing (The Radon Transform Trick): They represent a $d$-dimensional radial kernel (like a Gaussian) as an average of one-dimensional kernels. This is achieved by projecting the data onto various directions (lines) in space.
- Quasi-Monte Carlo (QMC) Sampling: Instead of picking these directions at random—which leads to "clumping" and slow convergence—they use spherical quadrature rules. Specifically, they employ "distance QMC designs," which are point sets on a sphere spread out as evenly as possible to minimize integration error.
- 1D Fast Fourier Summation: Once the data is projected onto a 1D line, the problem becomes low-dimensional. They use the Non-equispaced Fast Fourier Transform (NFFT) to compute the 1D sums in near-linear time.
While "slicing" has been used before, this paper provides the first rigorous error bounds for various kernels (Gauss, Laplace, Matern, Riesz, and thin plate spline) and proves that using QMC sequences on the sphere leads to much faster error decay than standard random sampling.
Key Insights
- Smoothness is Key: The authors prove that for many common kernels, the "sliced" 1D version of the function is very smooth. In the world of QMC, higher smoothness translates directly into much faster convergence rates.
- Beyond Positive Definite: Unlike RFF, which relies on Bochner’s theorem and only works for positive definite kernels, slicing is based on the Radon transform. This allows the method to handle kernels like the negative distance kernel ($-\|x-y\|$) and thin plate splines, which are crucial for certain statistical distances.
- Symmetry Matters: "Distance QMC" designs (which minimize a specific energy functional on the sphere) perform better than standard Sobol sequences because they better respect the spherical geometry of the problem.
Experimental Results
The authors evaluated their method on several standard machine learning benchmarks, including Letters ($d=16$), MNIST ($d=20$ via PCA, and full $d=784$), FashionMNIST, and CIFAR10.
- Superior Convergence: In dimensions up to $d=100$, QMC Slicing reached "machine precision" (extremely low error) with far fewer projections than RFF or standard slicing.
- Speed vs. Accuracy: On the MNIST and FashionMNIST datasets, QMC Slicing achieved a lower relative error in a fraction of the computation time compared to Orthogonal Fourier Features (ORF) and QMC-RFF.
- Application Success: They applied the method to MMD Gradient Flows (a technique for evolving a set of points to match a target distribution). QMC Slicing was the only method efficient enough to make this computationally tractable for large point sets while maintaining high accuracy.
Limitations and Future Work
- The Curse of Dimension: While QMC Slicing beats RFF in moderate dimensions, the advantage starts to diminish as $d$ gets very large (e.g., $d > 100$). This is a known limitation for most QMC methods.
- Precomputation Cost: Finding the optimal QMC points on a sphere can be computationally expensive. However, because these points only depend on the dimension $d$ and the number of projections $P$ (not the data itself), they can be precomputed once and reused.
- Theoretical Gap: The numerical results actually show better convergence than the authors were able to prove mathematically. Closing this gap between theory and practice remains an open area for future research.
Summary updated