105
99

The Fast Cauchy Transform: with Applications to Basis Construction, Regression, and Subspace Approximation in L1

Abstract

We give fast algorithms for p\ell_p regression and related problems: for an n×dn\times d input matrix AA and vector bRnb\in\R^n, in O(ndlogn)O(nd\log n) time we reduce the problem minxRd\normAxbp\min_{x\in\R^d} \norm{Ax-b}_p to the same problem with input matrix A~\tilde A of dimension S×dS \times d and corresponding b~\tilde b of dimension S×1S\times 1; A~\tilde A and b~\tilde b are a \emph{coreset} for the problem, consisting of sampled and rescaled rows of AA and bb. Here SS is independent of nn, and polynomial in dd. Our results improve on the best previous algorithms when ndn\gg d, for all p[1,)p\in [1,\infty) except p=2p=2, in particular the O(nd1.376+)O(nd^{1.376+}) running time of Sohler and Woodruff (STOC, 2011) for p=1p=1, that uses asymptotically fast matrix multiplication, and the O(nd5logn)O(nd^5\log n) time of Dasgupta \emph{et al.} (SODA, 2008) for general pp. We also give a detailed empirical evaluation of implementations of our algorithms for p=1p=1, comparing them with several related algorithms. Among other things, our results clearly show that the practice follows the theory closely, in the asymptotic regime. In addition, we show near-optimal results for 1\ell_1 regression problems that are too large for any prior solution methods. Our algorithms use our faster constructions of well-conditioned bases for p\ell_p spaces, and for p=1p=1, a fast subspace embedding: a matrix Π:RnRO(dlogd)\Pi: \R^n\mapsto \R^{O(d\log d)}, found obliviously to AA, that approximately preserves the 1\ell_1 norms of all vectors in {AxxRd}\{Ax\mid x\in\R^d\}; that is, \normAx1\normΠAx1\norm{Ax}_1 \approx \norm{\Pi Ax}_1, for all xx, with distortion O~(d2)\tilde O(d^2). Moreover, ΠA\Pi A can be computed in O(ndlogd)O(nd\log d) time. Our techniques include fast Johnson-Lindenstrauss transforms, low coherence matrices, and rescaling by Cauchy random variables.

View on arXiv
Comments on this paper