paper

Improving TensorSketch Using Complex Random Variables

arXiv:2608.10523

Abstract

\texttt{TensorSketch} by~\cite{pham2013fast,kar2012random} provides efficient sketching algorithms for high-dimensional polynomial kernels . \cite{kar2012random} uses dense Johnson-Lindenstrauss (JL)-type projections with computational cost , where denotes the sketch dimension, whereas~\cite{pham2013fast} extends the sparse \texttt{CountSketch}~\citep{count_sketch} algorithm, yielding a faster algorithm for high-dimensional sparse inputs with running time $O\big(p(\nnz{\vec{x}} + D \log D)\big)$. However, the variance of both estimators grows exponentially with the polynomial degree , scaling as . Recent work by~\cite{pmlr-v206-wacker23a} showed that using complex-valued distribution reduces this dependence to for the approach of~\cite{kar2012random}. However, their method relies on dense JL-type projections with computational cost and does not extend to the algorithm of~\cite{pham2013fast}. In this work, we introduce a simple variant of \texttt{TensorSketch}~\citep{pham2013fast} that achieves the same variance bound as~\cite{pmlr-v206-wacker23a}, while retaining its advantage of the input-sparsity running time. We validate our results with supporting experiments on synthetic and real-world datasets.

Improving TensorSketch Using Complex Random Variables · wovepaper