公平且正方形:在进行矩阵乘法和卷积时,用一个平方和一个复数乘法用三个平方来代替实数乘法
Fair and Square: Replacing One Real Multiplication with a Single Square and One Complex Multiplication with Three Squares When Performing Matrix Multiplication and Convolutions
AI总结:
本文提出通过平方操作替代实数乘法和复数乘法,以减少硬件资源消耗,适用于矩阵乘法、卷积及更多计算场景。
摘要:
本文表明,在进行矩阵乘法和卷积时,可以渐进地将每个实数乘法替换为一个平方操作。同样,一个复数乘法可以被三个平方操作所替代。鉴于一个n位平方电路大约只需要n x n乘法器一半的门数,这会导致显著的资源减少。在某些条件下,相同的技术可以应用于点积、变换等。描述了多种实现这些想法的硬件架构,包括基于平方的流体力学数组和张量核心。
英文摘要:
This paper shows that, for matrix multiplications and convolutions, it is possible to asymptotically replace each real multiplication with a single squaring operation. Similarly, a single complex multiplication can be replaced with 3 squaring operations. Given that an n bits squaring circuit requires about half the gate count of an nxn multiplier, this results in large resource reductions. With some caveats, the same techniques can apply to dot products, transformations and more. A varietiy of architectures implementing these ideas in hardware are described, including square based systolic arrays and tensor cores.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。