arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.00115math.NAcs.MScs.NA
收藏

QDOT:用于近似高性能计算的量化点积核

QDOT: Quantized Dot Product Kernel for Approximate High-Performance Computing

James Diffenderfer, Daniel Osei-Kuffuor, Harshitha Menon

摘要:

近似计算技术已经成功地在几个领域中减少了计算和功率成本。然而,高性能计算中的误差敏感应用无法从现有的近似计算策略中受益,这些近似计算策略没有被开发成具有保证的误差界。虽然近似计算技术可以由领域专家为个别高性能计算应用程序开发,但这通常需要额外的理论分析和潜在的广泛软件修改。因此,低级别的误差有界的近似计算策略,可以引入到任何高性能的计算应用程序,而不需要额外的分析或显着的软件改动的发展是可取的。在本文中,我们提供了一个贡献,在这个方向上提出了一个通用的框架,设计误差有界的近似计算策略,并将其应用到点积内核开发qdot-一个误差有界的近似点积内核。在引入量子点之后,我们进行了理论分析,得出了量子点引入的相对近似误差的确定性界限。进行实证测试,以说明导出的误差界的紧密性,并证明在合成数据集上的qdot的有效性,以及两个科学基准-共轭梯度(CG)和功率方法。特别地,将qdot用于CG中的点积可以导致大多数分量被穿孔或量化到半精度,而不增加收敛到与使用双精度点积的CG相同的解所需的迭代计数。

英文摘要:

Approximate computing techniques have been successful in reducing computation and power costs in several domains. However, error sensitive applications in high-performance computing are unable to benefit from existing approximate computing strategies that are not developed with guaranteed error bounds. While approximate computing techniques can be developed for individual high-performance computing applications by domain specialists, this often requires additional theoretical analysis and potentially extensive software modification. Hence, the development of low-level error-bounded approximate computing strategies that can be introduced into any high-performance computing application without requiring additional analysis or significant software alterations is desirable. In this paper, we provide a contribution in this direction by proposing a general framework for designing error-bounded approximate computing strategies and apply it to the dot product kernel to develop qdot -- an error-bounded approximate dot product kernel. Following the introduction of qdot, we perform a theoretical analysis that yields a deterministic bound on the relative approximation error introduced by qdot. Empirical tests are performed to illustrate the tightness of the derived error bound and to demonstrate the effectiveness of qdot on a synthetic dataset, as well as two scientific benchmarks -- Conjugate Gradient (CG) and the Power method. In particular, using qdot for the dot products in CG can result in a majority of components being perforated or quantized to half precision without increasing the iteration count required for convergence to the same solution as CG using a double precision dot product.

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

↑