arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.14309cs.LGcs.NAmath.NA
收藏

Sketch 'n Solve:使用随机数值线性代数求解大规模最小二乘问题的高效 Python 包

Sketch 'n Solve: An Efficient Python Package for Large-Scale Least Squares Using Randomized Numerical Linear Algebra

Boston University(波士顿大学)

Alex Lavaee

AI总结:

本文提出开源Python包Sketch 'n Solve,基于NumPy和SciPy实现随机数值线性代数技术,通过提供密集与稀疏sketching算子解决大规模最小二乘问题,比传统LSQR加速达50倍且保持高精度。

摘要:

我们提出了 Sketch 'n Solve,一个开源 Python 包,它实现了高效的随机数值线性代数(RandNLA)技术,用于求解大规模最小二乘问题。尽管 sketch-and-solve 算法已展现出理论前景,但由于缺乏稳健且用户友好的实现,其实际应用一直受限。我们的包通过提供一个基于 NumPy 和 SciPy 构建的优化实现来填补这一空白,该实现具有密集和稀疏 sketching 算子以及简洁的 API。通过广泛的基准测试,我们证明我们的实现比传统的 LSQR 实现了高达 50 倍的加速,同时保持了高精度,即使对于病态矩阵也是如此。该包在机器学习优化、信号处理和科学计算应用中展现出特别的前景。

英文摘要:

We present Sketch 'n Solve, an open-source Python package that implements efficient randomized numerical linear algebra (RandNLA) techniques for solving large-scale least squares problems. While sketch-and-solve algorithms have demonstrated theoretical promise, their practical adoption has been limited by the lack of robust, user-friendly implementations. Our package addresses this gap by providing an optimized implementation built on NumPy and SciPy, featuring both dense and sparse sketching operators with a clean API. Through extensive benchmarking, we demonstrate that our implementation achieves up to 50x speedup over traditional LSQR while maintaining high accuracy, even for ill-conditioned matrices. The package shows particular promise for applications in machine learning optimization, signal processing, and scientific computing.

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

↑