Algorithms as tensor decomposition

As matrix multiplication (A, B) ↦ AB is bilinear (that is, linear in both arguments), it can be fully represented by a 3D tensor: see Fig. 1a for how to represent the 2 × 2 matrix multiplication operation as a 3D tensor of size 4 × 4 × 4, and refs. 3,5,7 for more details. We write Tn for the tensor describing n × n matrix multiplication. The tensor Tn is fixed (that is, it is independent of the matrices to be multiplied), has entries in {0, 1}, and is of size n2 × n2 × n2. More generally, we use Tn,m,p to describe the rectangular matrix multiplication operation of size n × m with m × p (note that Tn=Tn,n,n). By a decomposition of Tn into R rank-one terms, we mean

Tn=∑r=1R⁡u(r)⊗v(r)⊗w(r),
(1)