arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.03527cs.LGstat.ML
收藏

空间受限下的稀疏矩阵近似乘法

Approximate Multiplication of Sparse Matrices with Limited Space

National Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术全国重点实验室)

Yuanyu Wan, Lijun Zhang

AI总结:

针对空间受限下大规模矩阵近似乘法时间复杂度高的问题,提出利用输入矩阵稀疏性的稀疏共现方向算法,通过近似SVD减少QR分解次数,在保持同等空间复杂度与近似误差的同时显著降低时间复杂度,并通过实验验证了其效率与有效性。

摘要:

随着大规模应用的涌现,空间受限的近似矩阵乘法问题受到了越来越多的关注。近年来,基于流行的矩阵概要算法——frequent directions(频繁方向),已有研究提出了co-occuring directions(COD,共现方向)方法来降低该问题的近似误差。对于两个输入矩阵$X\in\mathbb{R}^{m_x\times n}$和$Y\in\mathbb{R}^{m_y\times n}$(其中$\ell$为概要规模),该方法的空间复杂度为$O((m_x+m_y)\ell)$,但其时间复杂度为$O\left(n(m_x+m_y+\ell)\ell\right)$,对于大型输入矩阵而言仍然很高。本文提出通过利用输入矩阵的稀疏性来降低时间复杂度,核心思路是采用一种可利用稀疏性的近似奇异值分解(SVD)方法,减少COD所需的QR分解次数。基于此,我们提出了sparse co-occuring directions(稀疏共现方向)算法,其期望时间复杂度降至$\widetilde{O}\left((\nnz(X)+\nnz(Y))\ell+n\ell^2\right)$,同时保持了$O((m_x+m_y)\ell)$的空间复杂度,其中$\nnz(X)$表示$X$中的非零元素个数,$\widetilde{O}$符号省略了常数因子和多对数因子。理论分析表明,该算法的近似误差与COD几乎一致。此外,我们通过实验验证了算法的效率与有效性。

英文摘要:

Approximate matrix multiplication with limited space has received ever-increasing attention due to the emergence of large-scale applications. Recently, based on a popular matrix sketching algorithm -- frequent directions, previous work has introduced co-occuring directions (COD) to reduce the approximation error for this problem. Although it enjoys the space complexity of $O((m_x+m_y)\ell)$ for two input matrices $X\in\mathbb{R}^{m_x\times n}$ and $Y\in\mathbb{R}^{m_y\times n}$ where $\ell$ is the sketch size, its time complexity is $O\left(n(m_x+m_y+\ell)\ell\right)$, which is still very high for large input matrices. In this paper, we propose to reduce the time complexity by exploiting the sparsity of the input matrices. The key idea is to employ an approximate singular value decomposition (SVD) method which can utilize the sparsity, to reduce the number of QR decompositions required by COD. In this way, we develop sparse co-occuring directions, which reduces the time complexity to $\widetilde{O}\left((\nnz(X)+\nnz(Y))\ell+n\ell^2\right)$ in expectation while keeps the same space complexity as $O((m_x+m_y)\ell)$, where $\nnz(X)$ denotes the number of non-zero entries in $X$ and the $\widetilde{O}$ notation hides constant factors as well as polylogarithmic factors. Theoretical analysis reveals that the approximation error of our algorithm is almost the same as that of COD. Furthermore, we empirically verify the efficiency and effectiveness of our algorithm.

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

↑