arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1110.5765cs.MScs.CE
收藏

通用矩阵乘法的运算失真计算:数字信号处理系统的计算通道

Throughput-Distortion Computation Of Generic Matrix Multiplication: Toward A Computation Channel For Digital Signal Processing Systems

Davide Anastasia, Yiannis Andreopoulos

摘要:

通用矩阵乘法(GEMM)函数是高性能线性代数库的核心元素,用于许多计算要求苛刻的数字信号处理(DSP)系统。我们提出了一种基于动态调整计算不精确度(失真)的GEMM加速技术。我们的技术采用自适应标量压扩和四舍五入输入矩阵块,其次是两种形式的包装在浮点,允许并发计算的多个结果。由于自适应压扩过程控制并发性的增加(经由打包),因此处理吞吐量的增加(以及失真的相应增加)取决于输入数据统计。为了证明这一点,我们推导出最佳的吞吐量失真控制框架GEMM广泛的零均值,独立同分布,输入源。我们的方法将可编程处理器中的矩阵乘法转换为计算通道:当增加处理吞吐量时,由于(i)较粗的量化和(ii)超过机器精度限制引起的计算误差,输出噪声(误差)增加。我们表明,在GEMM计算中的一定失真下,所提出的框架可以显着超过给定处理器的峰值性能的100%。我们的建议的实际好处是显示在人脸识别系统和一个多层感知器系统训练元数据学习从一个大型的音乐特征数据库。

英文摘要:

The generic matrix multiply (GEMM) function is the core element of high-performance linear algebra libraries used in many computationally-demanding digital signal processing (DSP) systems. We propose an acceleration technique for GEMM based on dynamically adjusting the imprecision (distortion) of computation. Our technique employs adaptive scalar companding and rounding to input matrix blocks followed by two forms of packing in floating-point that allow for concurrent calculation of multiple results. Since the adaptive companding process controls the increase of concurrency (via packing), the increase in processing throughput (and the corresponding increase in distortion) depends on the input data statistics. To demonstrate this, we derive the optimal throughput-distortion control framework for GEMM for the broad class of zero-mean, independent identically distributed, input sources. Our approach converts matrix multiplication in programmable processors into a computation channel: when increasing the processing throughput, the output noise (error) increases due to (i) coarser quantization and (ii) computational errors caused by exceeding the machine-precision limitations. We show that, under certain distortion in the GEMM computation, the proposed framework can significantly surpass 100% of the peak performance of a given processor. The practical benefits of our proposal are shown in a face recognition system and a multi-layer perceptron system trained for metadata learning from a large music feature database.

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

↑