Strassen's Algorithm for Tensor Contraction
Strassen's Algorithm for Tensor Contraction
复制标题
DOI:
10.1137/17m1135578
复制
发表时间:
2017-04
期刊:
影响因子:
--
通讯作者:
Jianyu Huang;D. Matthews;R. Geijn
中科院分区:
文献类型:
--
作者:
Jianyu Huang;D. Matthews;R. Geijn
Tensor contraction (TC) is an important computational kernel widely used in numerous applications. It is a multidimensional generalization of matrix multiplication (GEMM). While Strassen's algorithm for GEMM is well studied in theory and practice, extending it to accelerate TC has not been previously pursued. Thus, we believe this to be the first paper to demonstrate how one can in practice speed up TC with Strassen's algorithm. By adopting a block-scatter-matrix format, a novel matrix-centric tensor layout, we can conceptually view TC as GEMM for a general stride storage, with an implicit tensor-to-matrix transformation. This insight enables us to tailor a recent state-of-the-art implementation of Strassen's algorithm to a recent state-of-the-art TC, avoiding explicit transpositions (permutations) and extra workspace, and reducing the overhead of memory movement that is incurred. Performance benefits are demonstrated with a performance model as well as in practice on modern single core, multicore, and di...