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 . 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 and running time proportional to the size of . However, if is the result of a database join query on several smaller tables , then this running time can be prohibitive, as itself can have as many as 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 we give input-sparsity algorithms for computing subspace embeddings, with running time bounded by the number of non-zero entries in . 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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext c74341db-d8cf-4e65-beaf-9207528a46acBuilds on6
- DiffTaichi: Differentiable Programming for Physical SimulationYuanming Hu, Luke Anderson, Tzu-Mao Li, Qi Sun et al.ICLR 2020 · 479 citations
- Oblivious Sketching of High-Degree Polynomial KernelsThomas D. Ahle, Michael Kapralov, Jakob Bæk Tejs Knudsen, Rasmus Pagh et al.SODA 2020 · 42 citations
- Near Input Sparsity Time Kernel Embeddings via Adaptive SamplingDavid P. Woodruff, Amir ZandiehICML 2020 · 20 citations
- Towards Factorized SVM with Gaussian Kernels over Normalized DataKeyu Yang, Yunjun Gao, Lei Liang, Bin Yao et al.ICDE 2020 · 13 citations
- Robust and Sample Optimal Algorithms for PSD Low Rank ApproximationAinesh Bakshi, Nadiia Chepurko, David P. WoodruffFOCS 2020 · 4 citations
Related papers
- Sketching Algorithms and Lower Bounds for Ridge RegressionPraneeth Kacham, David P. WoodruffICML 2022 · 6 citations
- Optimal Embedding Dimension for Sparse Subspace EmbeddingsShabarish Chenakkod, Michal Derezinski, Xiaoyu Dong, Mark RudelsonSTOC 2024 · 5 citations
- Optimal Algorithms for Linear Algebra in the Current Matrix Multiplication TimeYeshwanth Cherapanamjeri, Sandeep Silwal, David P. Woodruff, Samson ZhouSODA 2023 · 3 citations
- Tight Bounds for the Subspace Sketch Problem with ApplicationsYi Li, Ruosong Wang, David P. WoodruffSODA 2020 · 5 citations
- Approximate Multiplication of Sparse Matrices with Limited SpaceYuanyu Wan, Lijun ZhangAAAI 2021 · 4 citations
