Approximate Multiplication of Sparse Matrices with Limited Space

Authors

  • Yuanyu Wan Nanjing University
  • Lijun Zhang Nanjing University

DOI:

https://doi.org/10.1609/aaai.v35i11.17207

Keywords:

Dimensionality Reduction/Feature Selection, Matrix & Tensor Methods, Time-Series/Data Streams

Abstract

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)l) for two input matrices X∈ℝ^{m_x ╳ n} and Y∈ℝ^{m_y ╳ n} where l is the sketch size, its time complexity is O(n(m_x+m_y+l)l), 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 Õ((nnz(X)+nnz(Y))l+nl^2) in expectation while keeps the same space complexity as O((m_x+m_y)l), where nnz(X) denotes the number of non-zero entries in X and the Õ 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.

Downloads

Published

2021-05-18

How to Cite

Wan, Y., & Zhang, L. (2021). Approximate Multiplication of Sparse Matrices with Limited Space. Proceedings of the AAAI Conference on Artificial Intelligence, 35(11), 10058-10066. https://doi.org/10.1609/aaai.v35i11.17207

Issue

Section

AAAI Technical Track on Machine Learning IV