Compressed matrix multiplication

Author:

Pagh Rasmus1

Affiliation:

1. IT University of Copenhagen, København S, Denmark

Abstract

We present a simple algorithm that approximates the product of n -by- n real matrices A and B . Let ‖AB‖ F denote the Frobenius norm of AB , and b be a parameter determining the time/accuracy trade-off. Given 2-wise independent hash functions h 1 , h 2 : [ n ]→ [ b ], and s 1 , s 2 : [ n ]→ {−1,+1} the algorithm works by first “compressing” the matrix product into the polynomial p ( x ) = ∑ k =1 n \left(∑ i =1 n A ik s 1 ( i ) x h 1 ( i ) \right) \left(∑ j =1 n B kj s 2 ( j ) x h 2 ( j ) \right). Using the fast Fourier transform to compute polynomial multiplication, we can compute c 0 ,…, c b −1 such that ∑ i c i x i = ( p ( x ) mod x b ) + ( p ( x ) div x b ) in time Õ( n 2 + nb ). An unbiased estimator of ( AB ) ij with variance at most ‖ AB F 2 / b can then be computed as: C ij = s 1 ( i ) s 2 ( j ) c ( h 1 ( i )+ h 2 ( j )) mod b . Our approach also leads to an algorithm for computing AB exactly, with high probability, in time Õ( N + nb ) in the case where A and B have at most N nonzero entries, and AB has at most b nonzero entries.

Funder

Danish National Research Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Computational Theory and Mathematics,Theoretical Computer Science

Reference32 articles.

1. Tracking Join and Self-Join Sizes in Limited Storage

2. The Space Complexity of Approximating the Frequency Moments

3. AMS without 4-wise independence on product domains. In Proceedings of the 27th International Symposium on Theoretical Aspects of Computer Science (STACS);Braverman V.;Leibniz International Proceedings in Informatics (LIPIcs) Series,2010

4. Universal classes of hash functions

5. Finding frequent items in data streams

Cited by 57 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Improving compressed matrix multiplication using control variate method;Information Processing Letters;2025-01

2. The Coefficient Estimation of Tensor Autoregression Based on TR Decomposition;Communications on Applied Mathematics and Computation;2024-09-12

3. Correcting matrix products over the ring of integers;Information Processing Letters;2024-08

4. Sparsifying Count Sketch;Information Processing Letters;2024-08

5. Convolution and Cross-Correlation of Count Sketches Enables Fast Cardinality Estimation of Multi-Join Queries;Proceedings of the ACM on Management of Data;2024-05-29

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3