Complex-to-Real Sketches for Tensor Products with Applications to the Polynomial Kernel

Jonas Wacker, Ruben Ohana, Maurizio Filippone
2/4/2022
stat.MLcs.LGstat.CO

Official code: joneswack/dp-rfs (22 stars, Jupyter Notebook, Apache-2.0, last commit 2024-07-13).

Abstract

Randomized sketches of a tensor product of $p$ vectors follow a tradeoff between statistical efficiency and computational acceleration. Commonly used approaches avoid computing the high-dimensional tensor product explicitly, resulting in a suboptimal dependence of $\mathcal{O}(3^p)$ in the embedding dimension.

Show full abstract

We propose a simple Complex-to-Real (CtR) modification of well-known sketches that replaces real random projections by complex ones, incurring a lower $\mathcal{O}(2^p)$ factor in the embedding dimension. The output of our sketches is real-valued, which renders their downstream use straightforward. In particular, we apply our sketches to $p$-fold self-tensored inputs corresponding to the feature maps of the polynomial kernel. We show that our method achieves state-of-the-art performance in terms of accuracy and speed compared to other randomized approximations from the literature.

View on arXivView PDF

Code Implementations(1)

joneswack/dp-rfsOfficial100%
Apache-2.0

This repository contains PyTorch implementations of various random feature maps for dot product kernels.

223Jupyter Notebook, PythonMay 7, 20212 years agoApache-2.0

Similar Papers

Cite this paper

@article{wacker2022complextoreal,
  title  = {Complex-to-Real Sketches for Tensor Products with Applications to the Polynomial Kernel},
  author = {Jonas Wacker and Ruben Ohana and Maurizio Filippone},
  year   = {2022},
  eprint = {2202.02031},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.02031}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.02031.svg)](https://codeofpaper.com/paper/2202.02031)

Discussion