We consider the problem of sparse matrix multiplication by the column row method in a distributed setting where the matrix product is not necessarily sparse. We present a surprisingly simple method for "consistent" parallel processing of sparse outer products (column-row vector products) over several processors, in a communication-avoiding setting where each processor has a copy of the input. The method is consistent in the sense that a given output entry is always assigned to the same processor independently of the specific structure of the outer product. We show guarantees on the work done by each processor, and achieve linear speedup down to the point where the cost is dominated by reading the input. Our method gives a way of distributing (or parallelizing) matrix product computations in settings where the main bottlenecks are storing the result matrix, and inter-processor communication. Motivated by observations on real data that often the absolute values of the entries in the product adhere to a power law, we combine our approach with frequent items mining algorithms and show how to obtain a tight approximation of the weight of the heaviest entries in the product matrix.
As a case study we present the application of our approach to frequent pair mining in transactional data streams, a problem that can be phrased in terms of sparse ${0,1}$-integer matrix multiplication by the column-row method. Experimental evaluation of the proposed method on real-life data supports the theoretical findings.
Matrix Multiplication and Binary Space Partitioning Trees : An Exploration
在这里,我们探讨了一个双树算法的矩阵乘法的$A\in \mathbb{R}^{M\times D}$和$B\in\mathbb{R}^{D\times N}$,非常狭窄的有效性,如果规范化的行的$A$和列的$B$,作为$\mathbb{R}^{D}$中的向量,落入集群的顺序成比例的$Ω(D^τ)$与半径小于$\arcsin(ε/\sqrt{2})$的表面上的单位$D$ -球。该算法利用必要的修剪规则,以保证$ε$精度与结果矩阵中的向量幅度乘积成比例。\textit{ Unfortunately, if the rows and columns are uniformly distributed on the surface of the unit $D$-ball, then the expected points per required cluster approaches zero exponentially fast in $D$; thus, the approach requires a great deal of work to pass muster.}
Diagonal Packing for Efficient Homomorphic Sparse Matrix-Vector Multiplication
Faculty of Engineering and Natural Sciences, Sabancı University(萨班哲大学工程与自然科学学院);VERIM, Center of Excellence in Data Analytics, Sabancı University(萨班哲大学VERIM数据分析卓越中心)
Graduate School of Informatics, Kyoto University(京都大学信息科学研究科);Institute of Informatics, University of Warsaw(华沙大学信息学研究所);Department of Computer Science, Lund University(隆德大学计算机科学系);Department of Computer Science and Media Technology, Malmö University(马尔默大学计算机科学与媒体技术系)