arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.13065cs.CRcs.DS
收藏

利用密码学提升算法效率

Improving Algorithmic Efficiency using Cryptography

Vinod Vaikuntanathan, Or Zamir

AI总结:

本文利用密码学构造带陷门的随机矩阵,在标准假设下实现矩阵乘法、求逆等问题的平均情况加速,并提升分类推理速度。

摘要:

密码学原语已被用于各种非密码学目标,例如消除或减少随机性和交互。我们展示了如何利用密码学来改善解决计算问题的时间复杂度。具体而言,我们表明,在标准密码学假设下,我们可以设计出比现有算法渐近更快且保持正确性的算法。作为具体演示,我们构造了一个带陷门的矩阵分布,具有以下性质:(a) 在计算有界敌手无法区分随机矩阵与该分布中抽取的矩阵(在计算困难性假设下);(b) 给定陷门,我们可以将这样的 n×n 矩阵与任何向量在近线性(关于 n)时间内相乘。我们提供了在有限域和实数上的构造。这实现了一种广泛的加速技术:任何依赖随机矩阵的算法——例如使用各种降维概念的算法——都可以用我们分布中的矩阵替换,从而在保持正确性的同时获得计算加速。利用这些带陷门的矩阵,我们提出了第一个从最坏情况到近似和平均情况矩阵乘法的统一归约,并具有最优参数(改进了 Hirahara–Shimizu STOC 2025,尽管在计算假设下),以及第一个从最坏情况到平均情况的矩阵求逆、求解线性方程组和计算行列式的归约,以及分类模型推理时间的加速。

英文摘要:

Cryptographic primitives have been used for various non-cryptographic objectives, such as eliminating or reducing randomness and interaction. We show how to use cryptography to improve the time complexity of solving computational problems. Specifically, we show that under standard cryptographic assumptions, we can design algorithms that are asymptotically faster than existing ones while maintaining correctness. As a concrete demonstration, we construct a distribution of trapdoored matrices with the following properties: (a) computationally bounded adversaries cannot distinguish a random matrix from one drawn from this distribution (under computational hardness assumptions), and (b) given a trapdoor, we can multiply such an $n \times n$ matrix with any vector in near-linear (in $n$) time. We provide constructions both over finite fields and over the reals. This enables a broad speedup technique: any algorithm relying on a random matrix -- such as those that use various notions of dimensionality reduction -- can replace it with a matrix from our distribution, achieving computational speedups while preserving correctness. Using these trapdoored matrices, we present the first uniform reduction from worst-case to approximate and average-case matrix multiplication with optimal parameters (improving on Hirahara--Shimizu STOC 2025, albeit under computational assumptions), the first worst-case to average-case reductions for matrix inversion, solving a linear system, and computing a determinant, as well as a speedup of inference time in classification models.

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

↑