arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.21240cs.DScs.CCcs.CGcs.LG
收藏

矩阵向量乘法的结构复杂性

The Structural Complexity of Matrix-Vector Multiplication

Georgia Institute of Technology(佐治亚理工学院)

Emile Anand, Jan van den Brand, Rose McCarty

AI总结:

研究通过结构化矩阵的VC维分析,提出矩阵向量乘法的高效预处理和查询方法,解决了理论与实践间的效率差距。

摘要:

我们考虑对一个n×n矩阵M进行预处理,以支持查询,对于任何向量v,返回矩阵向量乘积Mv。这个问题在理论和实践中都得到了广泛研究:一方面,实践者开发了在实践中非常高效的算法;另一方面,理论家证明了该问题在最坏情况下无法比朴素乘法更快解决。这个下界甚至适用于平均情况,这意味着现有的平均情况分析无法解释理论与实践之间的差距。因此,我们研究结构化的矩阵。我们证明,对于n×n的布尔矩阵,其VC维为d时,矩阵向量乘法问题可以用~O(n²)的预处理时间和~O(n^{2-1/d})的查询时间解决。鉴于大多数现实数据中观察到的低常数VC维,我们的结果为为什么在实践中该问题可以如此快速解决提供了解释。此外,我们展示了如何将这一结果扩展到非布尔设置,通过Pollard伪维数。我们的结果为许多应用提供了首个非平凡的上界。在之前的文献中,使用在线矩阵向量(OMv)假设(猜测每个查询需要二次时间,即使在布尔半环上)来证明许多条件下界,显示了在节点插入和删除下,无法在亚二次时间内计算和维护高精度的有效电阻、拉普拉斯求解器、最短路径和三角检测。然而,通过将结果减少到我们的矩阵向量乘法结果,我们证明如果输入是结构化的,可以高效维护这些问题,为高精度领域提供了首个亚二次上界。

英文摘要:

We consider the problem of preprocessing an $n\times n$ matrix $\mathbf{M}$, and supporting queries that, for any vector $v$, returns the matrix-vector product $\mathbf{M} v$. This problem has been extensively studied in both theory and practice: on one side, practitioners have developed algorithms that are highly efficient in practice, whereas on the other side, theoreticians have proven that the problem cannot be solved faster than naive multiplication in the worst-case. This lower bound holds even in the average-case, implying that existing average-case analyses cannot explain this gap between theory and practice. Hence, we study the problem for \emph{structured} matrices. We show that for $n\times n$ Boolean matrices of VC-dimension $d$, the matrix-vector multiplication problem can be solved with $\widetilde{O}(n^2)$ preprocessing and $\widetilde{O}(n^{2-1/d})$ query time. Given the low constant VC-dimensions observed in most real-world data, our results posit an explanation for why the problem can be solved so much faster in practice. Furthermore, we show how to extend this result to the non-Boolean setting with the Pollard pseudodimension. Our results yield the first non-trivial upper bounds for many applications. In previous works, the online matrix-vector (OMv) hypothesis (conjecturing that quadratic time is needed per query, even over the boolean semi-ring) was used to prove many conditional lower bounds, showing that it is impossible to compute and maintain high-accuracy estimates for effective resistance, Laplacian solvers, shortest paths, and triangle detection in graphs subject to node insertions and deletions in subquadratic time. Yet, via a reduction to our matrix-vector multiplication result, we show we can maintain these problems efficiently if the input is structured, providing the first subquadratic upper bounds in the high-accuracy regime.

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

↑