Lune

ICML2021Top-tier venue

In-Database Regression in Input Sparsity Time

Rajesh Jayaram, Alireza Samadian, David P. Woodruff, Peng Ye

Abstract

Sketching is a powerful dimensionality reduction technique for accelerating algorithms for data analysis. A crucial step in sketching methods is to compute a subspace embedding (SE) for a large matrix A∈RN×d\mathbf{A} \in \mathbb{R}^{N \times d}. SE's are the primary tool for obtaining extremely efficient solutions for many linear-algebraic tasks, such as least squares regression and low rank approximation. Computing an SE often requires an explicit representation of A\mathbf{A} and running time proportional to the size of A\mathbf{A}. However, if A=T1⋈T2⋈⋯⋈Tm\mathbf{A}= \mathbf{T}_1 \Join \mathbf{T}_2 \Join \dots \Join \mathbf{T}_m is the result of a database join query on several smaller tables Ti∈Rni×di\mathbf{T}_i \in \mathbb{R}^{n_i \times d_i}, then this running time can be prohibitive, as A\mathbf{A} itself can have as many as O(n1n2⋯nm)O(n_1 n_2 \cdots n_m) rows. In this work, we design subspace embeddings for database joins which can be computed significantly faster than computing the join. For the case of a two table join A=T1⋈T2\mathbf{A} = \mathbf{T}_1 \Join \mathbf{T}_2 we give input-sparsity algorithms for computing subspace embeddings, with running time bounded by the number of non-zero entries in T1,T2\mathbf{T}_1,\mathbf{T}_2. This results in input-sparsity time algorithms for high accuracy regression, significantly improving upon the running time of prior FAQ-based methods for regression. We extend our results to arbitrary joins for the ridge regression problem, also considerably improving the running time of prior methods. Empirically, we apply our method to real datasets and show that it is significantly faster than existing algorithms.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Near Input Sparsity Time Kernel Embeddings via Adaptive Sampling cites Oblivious Sketching of High-Degree Polynomial Kernels
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on6

  1. DiffTaichi: Differentiable Programming for Physical SimulationYuanming Hu, Luke Anderson, Tzu-Mao Li, Qi Sun et al.ICLR 2020 · 479 citations
  2. Oblivious Sketching of High-Degree Polynomial KernelsThomas D. Ahle, Michael Kapralov, Jakob Bæk Tejs Knudsen, Rasmus Pagh et al.SODA 2020 · 42 citations
  3. Near Input Sparsity Time Kernel Embeddings via Adaptive SamplingDavid P. Woodruff, Amir ZandiehICML 2020 · 20 citations
  4. Towards Factorized SVM with Gaussian Kernels over Normalized DataKeyu Yang, Yunjun Gao, Lei Liang, Bin Yao et al.ICDE 2020 · 13 citations
  5. Robust and Sample Optimal Algorithms for PSD Low Rank ApproximationAinesh Bakshi, Nadiia Chepurko, David P. WoodruffFOCS 2020 · 4 citations

Related papers

  1. Sketching Algorithms and Lower Bounds for Ridge RegressionPraneeth Kacham, David P. WoodruffICML 2022 · 6 citations
  2. Optimal Embedding Dimension for Sparse Subspace EmbeddingsShabarish Chenakkod, Michal Derezinski, Xiaoyu Dong, Mark RudelsonSTOC 2024 · 5 citations
  3. Optimal Algorithms for Linear Algebra in the Current Matrix Multiplication TimeYeshwanth Cherapanamjeri, Sandeep Silwal, David P. Woodruff, Samson ZhouSODA 2023 · 3 citations
  4. Tight Bounds for the Subspace Sketch Problem with ApplicationsYi Li, Ruosong Wang, David P. WoodruffSODA 2020 · 5 citations
  5. Approximate Multiplication of Sparse Matrices with Limited SpaceYuanyu Wan, Lijun ZhangAAAI 2021 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines