Learning in high-dimensional feature spaces using ANOVA-based fast matrix-vector multiplication

Franziska Nestler, Martin Stoll, Theresa Wagner

TL;DR

This paper introduces a scalable approach to Kernel Ridge Regression (KRR) that breaks the $O(N^2)$ computational bottleneck. By combining ANOVA kernels (which decompose high-dimensional data into low-dimensional groups) with the Non-equispaced Fast Fourier Transform (NFFT), the authors achieve near-linear scaling, enabling kernel-based learning on datasets with hundreds of thousands of points that typically crash standard libraries.

What Problem Does This Paper Address?

Kernel methods are a staple of machine learning, prized for their ability to handle non-linear relationships by mapping data into high-dimensional feature spaces. However, they have a "big data" problem: at their core lies a kernel matrix $K$ of size $N \times N$ (where $N$ is the number of data points).

For large datasets, two things happen:

  1. Memory Exhaustion: Storing $K$ becomes impossible (e.g., 50,000 points require ~18.6 GiB of RAM).
  2. Computational Slowdown: Training often requires matrix-vector multiplications that scale quadratically ($O(N^2)$).

While fast transforms like the NFFT can speed up these multiplications to near-linear time, they suffer from the "curse of dimensionality"—their efficiency evaporates as the number of features ($d$) increases. The authors aim to bridge this gap: providing the power of kernel methods for high-dimensional, large-scale data without the quadratic cost.

Methods

The authors propose a three-part strategy:

  1. ANOVA Kernels: Instead of one massive kernel covering all $d$ dimensions, they use an ANOVA (Analysis of Variance) kernel. This decomposes the high-dimensional space into a sum of kernels acting on small subsets of features.
  2. The 3D "Sweet Spot": The authors specifically group features into sets of three. Why three? Because the NFFT algorithm is exceptionally efficient for dimensions $d \le 3$. This allows them to use the NFFT-based fast summation to compute matrix-vector products in $O(N)$ time.
  3. Mutual Information Grouping: To decide which features should be grouped together, they rank features using a Mutual Information Score (MIS). Features that provide the most information about the label are prioritized and grouped to capture the most relevant interactions.

By embedding this fast multiplication into a Conjugate Gradient (CG) solver, they can solve the KRR problem iteratively without ever explicitly forming the full $N \times N$ matrix.

Datasets

The approach was evaluated on five diverse benchmark datasets:

  • Telescope: 19,020 samples, 10 features (Gamma-ray vs. Hadron classification).
  • HIGGS: 11,000,000 samples, 28 features (High-energy physics).
  • SUSY: 5,000,000 samples, 18 features (Supersymmetric particles).
  • YearPredictionMSD: 515,345 samples, 90 features (Song release year prediction).
  • cod-rna: 488,565 samples, 8 features (Bioinformatics).

Key Insights and Ideas

  • Breaking the Curse via Decomposition: The "aha moment" is realizing that we don't need to solve the NFFT for $d=90$. By using the ANOVA structure, we can solve thirty 3D problems instead, which is computationally much cheaper than one 90D problem.
  • Memory as the Hard Ceiling: A major insight is that standard implementations (like sklearn) fail not just because they are slow, but because they are "greedy" with memory. The NFFT-based approach is "matrix-free," meaning it calculates what it needs on the fly, allowing it to process millions of points on a standard laptop.
  • Feature Interaction Trade-off: The ANOVA kernel assumes that the most important interactions happen within the chosen feature groups. While this is a simplification, the results suggest that for many real-world datasets, this "benign loss of information" is a small price to pay for massive gains in scalability.

Key Results

  • Superior Scalability: On the HIGGS dataset, standard sklearn KRR crashed at 50,000 samples due to memory limits. The NFFT-based approach handled 200,000 samples "trouble-free" on a standard laptop.
  • Massive Speedups: For the HIGGS dataset (25k samples), the proposed method was 15x faster in prediction than standard SVMs. On the YearPredictionMSD set (413k samples), it was 15.9x faster in training than the competition.
  • Competitive Accuracy: Despite the approximation, accuracy remained high. In many cases (like the Telescope and HIGGS sets), the NFFT-ANOVA method actually matched or slightly exceeded the accuracy of standard sklearn models while being significantly faster.

Limitations and Future Work

  • Intra-group Interactions Only: The current model only captures interactions between features within the same 3D group. It misses potential correlations between features in different groups.
  • Grouping Sensitivity: The performance depends on the feature grouping strategy. While Mutual Information works well, other strategies might be needed for different data structures.
  • Future Directions: The authors suggest extending this "fast multiplication" framework to other kernel-based models, such as Support Vector Machines (SVMs) or Graph Neural Networks, and exploring more complex ANOVA decompositions that allow for sensitivity analysis.

Summary updated

BibTeX
@inproceedings{nestler2022learning,
  author = {Franziska Nestler and Martin Stoll and Theresa Wagner},
  title = {{Learning in high-dimensional feature spaces using ANOVA-based fast matrix-vector multiplication}},
  booktitle = {Foundations},
  year = {2022},
  doi = {10.3934/fods.2022012},
}
Figure