arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1210.0461cs.DS
收藏

矩阵乘法的行列法简化

On Parallelizing Matrix Multiplication by the Column-Row Method

Andrea Campagna, Konstantin Kutzkov, Rasmus Pagh

摘要:

我们考虑的问题稀疏矩阵乘法的列行方法在分布式设置的矩阵产品不一定是稀疏的。我们提出了一个令人惊讶的简单的方法“一致的”并行处理稀疏外产品(列-行向量产品)在几个处理器,在通信避免设置,每个处理器有一个副本的输入。该方法是一致的,在这个意义上,一个给定的输出条目总是被分配给同一个处理器,独立于外积的具体结构。我们保证每个处理器所做的工作,并实现线性加速下降到成本占主导地位的点读取输入。我们的方法给出了一种方法分布(或并行化)矩阵乘积计算的设置中的主要瓶颈是存储结果矩阵,和处理器间的通信。出于对真实数据的观察,往往是产品中的条目的绝对值遵守幂律,我们将我们的方法与频繁项挖掘算法相结合,并展示了如何获得产品矩阵中最重条目的权重的紧密近似。作为一个案例研究,我们提出了我们的方法,频繁对挖掘在事务数据流中的应用,一个问题,可以措辞的稀疏${0,1}$ -整数矩阵乘法的列-行方法。实验评估所提出的方法对现实生活中的数据支持的理论研究结果。

英文摘要:

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.

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

↑