...
首页> 外文期刊>Monte Carlo Methods and Applications >Gaussian variant of Freivalds' algorithm for efficient and reliable matrix product verification
【24h】

Gaussian variant of Freivalds' algorithm for efficient and reliable matrix product verification

机译:Gaussian Veriants的归属算法高效可靠矩阵产品验证

获取原文
获取原文并翻译 | 示例
           

摘要

In this article, we consider the general problem of checking the correctness of matrix multiplication. Given three n x n matrices A, B and C, the goal is to verify that A x B = C without carrying out the computationally costly operations of matrix multiplication and comparing the product A x B with C, term by term. This is especially important when some or all of these matrices are very large, and when the computing environment is prone to soft errors. Here we extend Freivalds' algorithm to a Gaussian Variant of Freivalds' Algorithm (GVFA) by projecting the product A x B as well as C onto a Gaussian random vector and then comparing the resulting vectors. The computational complexity of GVFA is consistent with that of Freivalds' algorithm, which is O(n(2)). However, unlike Freivalds' algorithm, whose probability of a false positive is 2(-k), where k is the number of iterations, our theoretical analysis shows that, when A x B not equal C, GVFA produces a false positive on set of inputs of measure zero with exact arithmetic. When we introduce round-off error and floating-point arithmetic into our analysis, we can show that the larger this error, the higher the probability that GVFA avoids false positives. Moreover, by iterating GVFA k times, the probability of a false positive decreases as p(k), where p is a very small value depending on the nature of the fault on the result matrix and the arithmetic system's floating-point precision. Unlike deterministic algorithms, there do not exist any fault patterns that are completely undetectable with GVFA. Thus GVFA can be used to provide efficient fault tolerance in numerical linear algebra, and it can be efficiently implemented on modern computing architectures. In particular, GVFA can be very efficiently implemented on architectures with hardware support for fused multiply-add operations.
机译:在本文中,我们考虑检查矩阵乘法的正确性的一般问题。给定三个n×n矩阵a,b和c,目标是验证x b = c而不执行矩阵乘法的计算成本昂贵的操作并将产品A x b与c,术语单个术语进行比较。当这些矩阵中的一些或所有矩阵非常大时,这尤其重要,并且当计算环境容易出现软错误时。这里,我们通过将产品A X B以及C突出到高斯随机向量,然后比较所得到的向量,将Freivalds的算法(GVFA)扩展到归档算法(GVFA)的高斯算法(GVFA)。 GVFA的计算复杂性与Freivalds算法的计算复杂性是o(n(2))的算法。但是,与Frivalds的算法不同,误报的概率为2(-K),其中k是迭代的数量,我们的理论分析表明,当x b不等于c时,GVFA在一组上产生假阳性具有精确算术的测量零的输入。当我们介绍截止错误和浮点算术到我们的分析中时,我们可以表明这个错误越大,GVFA避免误报的概率越高。此外,通过迭代GVFA k次,假阳性呈P(k)的概率减小,其中P是一个非常小的值,这取决于结果矩阵的故障的性质和算术系统的浮点精度。与确定性算法不同,不存在与GVFA完全不可检测的任何故障模式。因此,GVFA可用于在数值线性代数中提供有效的容错,并且可以在现代计算架构上有效地实现。特别是,GVFA可以在具有硬件支持的架构上非常有效地实现融合乘法添加操作。

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号