arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.09964cs.DS
收藏

线性代数在当前矩阵乘法时间内的最优算法

Optimal Algorithms for Linear Algebra in the Current Matrix Multiplication Time

Yeshwanth Cherapanamjeri, Sandeep Silwal, David P. Woodruff, Samson Zhou

摘要:

我们研究线性代数中的基本问题,例如找到行或列的最大线性无关子集(基),求解线性回归或计算子空间嵌入。对于这些问题,我们考虑输入矩阵$\mathbf{A}\in\mathbb{R}^{n\times d}$与$n > d$。可以在$\text{nnz}(\mathbf{A})$时间内读取输入,该时间表示$\mathbf{A}$的非零条目数。在本文中,我们表明,除了读取输入矩阵所需的时间外,这些基本线性代数问题可以在$d^ω$时间内解决,即,其中,$ω\approx 2.37$是当前矩阵乘法指数。要做到这一点,我们引入了一个常数因子子空间嵌入的最佳$m=\mathcal{O}(d)$行数,并可以应用在时间$\mathcal{O}\left(\frac{\text{nnz}(\mathbf{A})}α\right) + d^{2 + α}\text{poly}(\log d)$的任何权衡参数$α>0$,收紧Chepurko等最近的结果。等人[SODA 2022]的方法,其在$\mathcal{O}\left(\frac{\text{nnz}(\mathbf{A})}α+d^{2+α+o(1)}\right)$时间内实现具有$m=d\cdot\text{poly}(\log\log d)$行的$\exp(\text{poly}(\log\log n))$失真。我们的子空间嵌入使用最近显示的堆叠子采样随机阿达玛变换(SRHT)的属性,该属性实际上增加了输入维度,以在大量坐标中“传播”输入向量的质量,然后进行随机采样。为了控制随机抽样的影响,我们使用快速半定规划来重新加权行。然后,我们使用我们的常数因子子空间嵌入来给出第一个最佳运行时算法,用于找到列的最大线性独立子集,回归和杠杆得分采样。要做到这一点,我们还介绍了一个新的子程序,迭代增长的一组独立的行,这可能是独立的利益。

英文摘要:

We study fundamental problems in linear algebra, such as finding a maximal linearly independent subset of rows or columns (a basis), solving linear regression, or computing a subspace embedding. For these problems, we consider input matrices $\mathbf{A}\in\mathbb{R}^{n\times d}$ with $n > d$. The input can be read in $\text{nnz}(\mathbf{A})$ time, which denotes the number of nonzero entries of $\mathbf{A}$. In this paper, we show that beyond the time required to read the input matrix, these fundamental linear algebra problems can be solved in $d^ω$ time, i.e., where $ω\approx 2.37$ is the current matrix-multiplication exponent. To do so, we introduce a constant-factor subspace embedding with the optimal $m=\mathcal{O}(d)$ number of rows, and which can be applied in time $\mathcal{O}\left(\frac{\text{nnz}(\mathbf{A})}α\right) + d^{2 + α}\text{poly}(\log d)$ for any trade-off parameter $α>0$, tightening a recent result by Chepurko et. al. [SODA 2022] that achieves an $\exp(\text{poly}(\log\log n))$ distortion with $m=d\cdot\text{poly}(\log\log d)$ rows in $\mathcal{O}\left(\frac{\text{nnz}(\mathbf{A})}α+d^{2+α+o(1)}\right)$ time. Our subspace embedding uses a recently shown property of stacked Subsampled Randomized Hadamard Transforms (SRHT), which actually increase the input dimension, to "spread" the mass of an input vector among a large number of coordinates, followed by random sampling. To control the effects of random sampling, we use fast semidefinite programming to reweight the rows. We then use our constant-factor subspace embedding to give the first optimal runtime algorithms for finding a maximal linearly independent subset of columns, regression, and leverage score sampling. To do so, we also introduce a novel subroutine that iteratively grows a set of independent rows, which may be of independent interest.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑