Random Feature Maps for the Itemset Kernel

Kyohei Atarashi, Subhransu Maji, Satoshi Oyama

Abstract

Modeling complex feature interactions is a cornerstone of modern machine learning, yet practitioners often face a trade-off between the expressive power of kernel methods and the scalability of linear models. This paper introduces a novel random feature map for the "itemset kernel"—a generalization of ANOVA and all-subsets kernels. By mapping high-dimensional feature combinations into a lower-dimensional space, the proposed Random Kernel (RK) and its computationally optimized variant, the Signed Circulant Random Kernel (SCRK), enable the use of efficient, convex linear solvers. Our results demonstrate that these maps achieve predictive performance comparable to non-linear kernels and Factorization Machines while offering significant speedups in both training and evaluation.

Introduction

Modeling feature combinations (e.g., $x_1 x_2$ or $x_1 x_2 x_3$) is crucial for capturing non-linear relationships in data. Traditional approaches like polynomial or ANOVA kernels handle these combinations implicitly but suffer from $O(n^2)$ training complexity. Factorization Machines (FMs) offer a more scalable $O(n)$ alternative but are difficult to optimize due to their non-convex nature. This work introduces a randomized approach to approximate the itemset kernel, enabling the use of fast, convex linear models to approximate rich, complex feature spaces.

Random Feature Mapping

The authors propose the Random Kernel (RK) feature map. By drawing random vectors from a Rademacher distribution ({-1, 1}), the algorithm maps input vectors to a $D$-dimensional space where the dot product approximates the itemset kernel. Theoretically, the Rademacher distribution is shown to be minimax optimal for minimizing approximation variance.

To handle high-dimensional data, the Signed Circulant Random Kernel (SCRK) map is introduced. By leveraging Fast Fourier Transforms (FFT) and circulant matrices, SCRK reduces the computational complexity from $O(mDd)$ to $O(mD \log d)$ and memory requirements from $O(Dd)$ to $O(D)$.

Figure 1: Computational efficiency of SCRK vs. RK as the number of original features d increases.

Performance and Convergence

Empirical results on datasets like Movielens 100K and synthetic benchmarks validate the effectiveness of the proposed maps. Linear SVMs using RK/SCRK features achieve predictive accuracy on par with exact ANOVA kernels and Factorization Machines. As the number of random features $D$ increases, the approximation accuracy converges to the performance of the full kernel model.

Figure 4: Test accuracy of RK and SCRK maps converging to the performance of exact ANOVA kernels and Factorization Machines as the number of random features D increases.

Conclusion

The RK and SCRK feature maps provide a robust framework for scaling kernel methods to large datasets. By establishing a mathematical link between these maps and Factorization Machines, this work not only provides a practical tool for high-dimensional modeling but also opens new avenues for the theoretical analysis of FMs. Future work may extend these bounds to provide deeper insights into the generalization capabilities of Factorization Machines.

Summary updated

BibTeX
@inproceedings{atarashi2019random,
  author = {Kyohei Atarashi and Subhransu Maji and Satoshi Oyama},
  title = {{Random Feature Maps for the Itemset Kernel}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013199},
}
Figure