偏斜矩阵乘积的确定性算法
Deterministic algorithms for skewed matrix products
AI总结:
针对偏斜矩阵乘积问题,提出确定性算法,通过一次扫描输入矩阵,在时间和空间高效的情况下近似计算矩阵乘积的条目权重及逐项p-范数,并在非负矩阵情形下优于已知随机算法。
摘要:
最近,Pagh 提出了一种基于数据流中最频繁项检测工作的实值矩阵乘法随机近似算法。我们继续这一研究方向,提出了新的{\em 确定性}矩阵乘法算法。受数据挖掘应用的启发,我们首先考虑实值非负 $n\times n$ 输入矩阵 $A$ 和 $B$ 的情况,并展示了如何获得乘积 $AB$ 的单个条目权重以及逐项 $p$-范数的确定性近似。该算法简单、节省空间,并在一次扫描输入矩阵中运行。对于用户定义的 $b \in (0, n^2)$,算法运行时间为 $O(nb + n\cdot\text{Sort}(n))$,空间为 $O(n + b)$,并返回 $AB$ 条目的近似值,其加法误差为 $\|AB\|_{E1}/b$,其中 $\|C\|_{E1} = \sum_{i, j} |C_{ij}|$ 是矩阵 $C$ 的逐项 1-范数,$\text{Sort}(n)$ 是在线性空间中对 $n$ 个实数进行排序所需的时间。基于 Berinde 等人的结果,我们证明对于偏斜矩阵乘积(许多实际应用中的常见情况),该算法比先前已知的随机算法更高效,并达到更好的近似保证。当输入矩阵不限于非负条目时,我们提出了一种新的确定性组测试算法,用于检测矩阵乘积中绝对值较大的非零条目。该算法明显不如随机矩阵乘法算法,但作为副产品,我们首次得到了对于具有 $O(\sqrt{n})$ 个非零条目的矩阵乘积的 $O(n^{2 + \varepsilon})$ 时间确定性算法。
英文摘要:
Recently, Pagh presented a randomized approximation algorithm for the multiplication of real-valued matrices building upon work for detecting the most frequent items in data streams. We continue this line of research and present new {\em deterministic} matrix multiplication algorithms. Motivated by applications in data mining, we first consider the case of real-valued, nonnegative $n$-by-$n$ input matrices $A$ and $B$, and show how to obtain a deterministic approximation of the weights of individual entries, as well as the entrywise $p$-norm, of the product $AB$. The algorithm is simple, space efficient and runs in one pass over the input matrices. For a user defined $b \in (0, n^2)$ the algorithm runs in time $O(nb + n\cdot\text{Sort}(n))$ and space $O(n + b)$ and returns an approximation of the entries of $AB$ within an additive factor of $\|AB\|_{E1}/b$, where $\|C\|_{E1} = \sum_{i, j} |C_{ij}|$ is the entrywise 1-norm of a matrix $C$ and $\text{Sort}(n)$ is the time required to sort $n$ real numbers in linear space. Building upon a result by Berinde et al. we show that for skewed matrix products (a common situation in many real-life applications) the algorithm is more efficient and achieves better approximation guarantees than previously known randomized algorithms. When the input matrices are not restricted to nonnegative entries, we present a new deterministic group testing algorithm detecting nonzero entries in the matrix product with large absolute value. The algorithm is clearly outperformed by randomized matrix multiplication algorithms, but as a byproduct we obtain the first $O(n^{2 + \varepsilon})$-time deterministic algorithm for matrix products with $O(\sqrt{n})$ nonzero entries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。