Limits on the Universal Method for Matrix Multiplication
Josh Alman
Introduction
One of the biggest open questions in computer science asks how quickly one can multiply two matrices. Progress on this problems is measured by giving bounds on , the exponent of matrix multiplication, defined as the smallest real number such that two matrices over a field can be multiplied using field operations. Since Strassen’s breakthrough algorithm [Str69] showing that , there has been a long line of work, resulting in the current best bound of [Wil12, LG14], and it is popularly conjectured that .
The key to Strassen’s algorithm is an algebraic identity showing how matrix multiplication can be computed surprisingly efficiently (in particular, Strassen showed that the matrix multiplication tensor has rank at most ; see Section 3 for precise definitions). Arguing about the ranks of larger matrix multiplication tensors has proven to be quite difficult – in fact, even the rank of the matrix multiplication tensor isn’t currently known. Progress on bounding since Strassen’s algorithm has thus taken the following approach: Pick a tensor (trilinear form) , typically not a matrix multiplication tensor, such that
Powers of can be efficiently computed (i.e. has low asymptotic rank), and
is useful for performing matrix multiplication, since large matrix multiplication tensors can be ‘embedded’ within powers of .
Combined, these give an upper bound on the rank of matrix multiplication itself, and hence .
The most general type of embedding which is known to preserve the ranks of tensors as required for the above approach is a degeneration. In [AW18b], the author and Vassilevska Williams called this method of taking a tensor and finding the best possible degeneration of powers into matrix multiplication tensors the Universal Method applied to , and the best bound on which can be proved in this way is written . They also defined two weaker methods: the Galactic Method applied to , in which the ‘embedding’ must be a more restrictive monomial degeneration, resulting in the bound on , and the Solar Method applied to , in which the ‘embedding’ must be an even more restrictive zeroing out, resulting in the bound on . Since monomial degenerations and zeroing outs are successively more restrictive types of degenerations, we have that for all tensors ,
These methods are very general; there are no known methods for computing , , or for a given tensor , and these quantities are even unknown for very well-studied tensors . The two main approaches to designing matrix multiplication algorithms are the Laser Method of Strassen [Str87] and the Group-Theoretic Method of Cohn and Umans [CU03]. Both of these approaches show how to give upper bounds on for particular structured tensors (and hence upper bound itself). In other words, they both give ways to find zeroing outs of tensors into matrix multiplication tensors, but not necessarily the best zeroing outs. In fact, it is known that the Laser Method does not always give the best zeroing out for a particular tensor , since the improvements from [CW90] to later works [DS13, Wil12, LG14] can be seen as giving slight improvements to the Laser Method to find better and better zeroing outs These works apply the Laser Method to higher powers of the tensor , a technique which is still captured by the Solar Method.. The Group-Theoretic Method, like the Solar Method, is very general, and it is not clear how to optimally apply it to a particular group or family of groups.
How much can we improve our bound on using a more clever analysis of the Coppersmith-Winograd tensor?
The author and Vassilevska Williams [AW18b] addressed this question by showing that there is a constant so that for all , . In other words, the Galactic Method (monomial degenerations) cannot be used with to prove . However, this leaves open a number of important questions: How close to can we get using monomial degenerations; could it be that ? Perhaps more importantly, what if we are allowed to use arbitrary degenerations; could it be that , or even ?
The second main question of this paper concerns the Laser Method. The Laser Method upper bounds for any tensor with certain structure (which we describe in detail in Section 6), and has led to every improvement on since its introduction by Strassen [Str87].
When the Laser Method applies to a tensor , how close does it come to optimally analyzing ?
As discussed, we know the Laser Method does not always give a tight bound on . For instance, Coppersmith-Winograd [CW90] applied the Laser Method to to prove , and then later work [DS13, Wil12, LG14] analyzed higher and higher powers of to show . Ambainis, Filmus and Le Gall [AFLG15] showed that analyzing higher and higher powers of itself with the Laser Method cannot yield an upper bound better than . What about for other tensors? Could there be a tensor such that applying the Laser Method to yields for some , but applying the Laser Method to high powers of yields ? Could applying an entirely different method to such a , using arbitrary degenerations and not just zeroing outs, show that ?
We give strong resolutions to both Question 1.1 and Question 1.2.
To resolve Question 1.1, we prove a new lower bound for the Coppersmith-Winograd tensor:
for all .
In other words, no analysis of , using any techniques within the Universal Method, can prove a bound on better than . This generalizes the main result of [AW18b] from the Galactic method to the Universal method, and gives a more concrete lower bound, increasing the bound from ‘a constant greater than ’ to . We also give stronger lower bounds for particular tensors in the family. For instance, for the specific tensor which yields the current best bound on , we show .
We also show how our slice rank lower bounds can be used to study other properties of tensors. Coppersmith and Winograd [CW90] introduced the notion of the value of a tensor , which is useful when applying the Laser Method to a larger tensor which contains as a subtensor. We show how our slice rank lower bounding tools yield a tight upper bound on the value of , the notorious subtensor of which arises when applying the Laser Method to powers of . Although the value appears in every analysis of since [CW90], including [DS13, Wil12, LG14, LG12, GU18], the best lower bound on it has not improved since [CW90], and our new upper bound here helps explain why. See Sections 3.5 and 5.4 for more details.
We briefly note that our lower bound of in Theorem 1.3 may be significant when compared to the recent algorithm of Cohen, Lee and Song [CLS18] which solves -variable linear programs in time about .
The Laser Method is “Complete”
The tensors we prove this for are what we call laser-ready tensors – tensors to which the Laser Method (as used by [CW90] on ) applies; see Definition 6.1 for the precise definition. Tensors need certain structure to be laser-ready, but tensors with this structure are essentially the only ones for which successful techniques for upper bounding are known. In fact, every record-holding tensor in the history of matrix multiplication algorithm design has been laser-ready.
If is a laser-ready tensor, and the Laser Method applied to yields the bound for some , then .
To reiterate: If is any tensor to which the Laser Method applies (as in Definition 6.1), and the Laser Method does not yield when applied to , then in fact , and even the substantially more general Universal method applied to cannot yield . Hence, the Laser Method, which was originally used as an algorithmic tool, can also be seen as a lower bounding tool. Conversely, Theorem 1.4 shows that the Laser Method is “complete”, in the sense that it cannot yield a bound on worse than when applied to a tensor which is able to prove .
Theorem 1.4 explains and generalizes a number of phenomena:
The fact that Coppersmith-Winograd [CW90] applied the Laser method to the tensor and achieved an upper bound greater than on implies that , and no arbitrary degeneration of powers of can yield .
As mentioned above, it is known that applying the Laser method to higher and higher powers of a tensor can successively improve the resulting upper bound on . Theorem 1.4 shows that if the Laser method applied to the first power of any tensor did not yield , then this sequence of Laser method applications (which is a special case of the Universal method) must converge to a value greater than as well. This generalizes the result of Ambainis, Filmus and Le Gall [AFLG15], who proved this about applying the Laser Method to higher and higher powers of the specific tensor .
Since, as discussed above, almost all of the most-studied tensors are laser-ready, this might help explain why we have been unable to separate the two notions.
2 Other Related Work
Cohn and Umans [CU13] introduced the notion of the support rank of tensors, and showed that upper bounds on the support rank of matrix multiplication tensors can be used to design faster Boolean matrix multiplication algorithms. Recently, Karppa and Kaski [KK19] used ‘probabilistic tensors’ as another way to design Boolean matrix multiplication algorithms.
In fact, our tools for proving asymptotic slice rank upper bounds can be used to prove lower bounds on these approaches as well. For instance, our results imply that finding a ‘weighted’ matrix multiplication tensor as a degeneration of a power of (in order to prove a support rank upper bound) cannot result in a better exponent for Boolean matrix multiplication than .
Concurrent Work
3 Outline
In Section 2 we give an overview of the proofs of our main results. In Section 3 we introduce all the concepts and notation related to tensors which will be used throughout the paper. In particular, in Subsection 3.6 we introduce the relevant notions and basic properties related to slice rank. In Section 4 we present the proofs of our new lower bounding tools for asymptotic slice rank. In Section 5 we apply these tools to a number of tensors of interest including . Finally, in Section 6, we define and discuss the “completeness” of the Laser method.
Proof Overview
We give a brief overview of the techniques we use to prove our main results, Theorems 1.3 and 1.4. All the technical terms we refer to here will be precisely defined in Section 3.
Matrix multiplication tensors have high asymptotic slice rank.
Section 4: Tools for Upper Bounding Asymptotic Slice Rank
Section 5: Universal Method Lower Bounds
Section 6: “Completeness” of the Laser Method
Preliminaries
We begin by introducing the relevant notions and notation related to tensors and matrix multiplication. We will use the same notation introduced in [AW18b, Section 3], and readers familiar with that paper may skip to Subsection 3.5.
For sets , , and of formal variables, a tensor over is a trilinear form
If is a tensor over , and is a tensor over , then the tensor product is a tensor over such that, for any , , and , the coefficient of in is the product of the coefficient of in , and the coefficient of in . For any tensor and positive integer , the tensor power is the tensor over resulting from taking the tensor product of copies of .
If is a tensor over , and is a tensor over , then the direct sum is a tensor over , , which results from forcing the variable sets to be disjoint (as in a normal disjoint union) and then summing the two tensors. For a nonnegative integer and tensor we write for the disjoint sum of copies of .
2 Tensor Rank
3 Matrix Multiplication Tensors
For positive integers , the matrix multiplication tensor is a tensor over , , given by
It is not hard to verify that for positive integers , we have . The exponent of matrix multiplication, denoted , is defined as
Because of the tensor product property above, we can alternatively define in a number of ways:
For instance, Strassen [Str69] showed that , which implies that .
4 Degenerations and the Universal Method
If such a transformation is possible, we say is a degeneration of . There are also two more restrictive types of degenerations:
is a monomial degeneration of if such a transformation is possible where the polynomials in the ranges of have at most one monomial, and furthermore, for each there is at most one such that , and similarly for and . Some definitions of monomial degenerations do not have this second condition, or equivalently, consider a monomial degeneration to be a ‘restriction’ composed with what we defined here. The distinction is not important for this paper, but we give this definition since it captures Strassen’s monomial degeneration from matrix multiplication tensors to independent tensors [Str86] (see also Proposition 3.5 below), and it is the notion that the prior work [AW18b] proved lower bounds against.
is a zeroing out of if, in addition to the restrictions of a monomial degeneration, the ranges of must be .
Degenerations are useful in the context of matrix multiplication algorithms because degenerations cannot increase the rank of a tensor. In other words, if is a degeneration of , then [Bin80]. It is often hard to bound the rank of matrix multiplication tensors directly, so all known approaches proceed by bounding the rank of a different tensor and then showing that powers of degenerate into matrix multiplication tensors.
In [AW18b], two weaker versions of the Universal Method are also defined: the Galactic Method, in which the degeneration must be a monomial degeneration, resulting in a bound , and the Solar Method, in which the degeneration must be a zeroing out, resulting in a bound . To be clear, all three of these methods are very general, and we don’t know the values of , , or for almost any nontrivial tensors . In fact, all the known approaches to bounding proceed by giving upper bounds on for some carefully chosen tensors ; the most successful has been the Coppersmith-Winograd family of tensors , which has yielded all the best known bounds on since the 80’s [CW82, DS13, Wil12, LG14]. Indeed, the two most successful approaches, the Laser Method [Str87] and the Group-Theoretic Approach [CU03] ultimately use zeroing outs of tensors. We refer the reader to [AW18b, Sections 3.3 and 3.4] for more details on these approaches and how they relate to the notions used here.
5 Tensor Value
Coppersmith and Winograd [CW90] defined the value of a tensor in their analysis of the tensor. For a tensor , and any , the -value of , denoted , is defined as follows: Consider all positive integers , and all ways to degenerate into a direct sum of matrix multiplication tensors. Then, is given by
6 Asymptotic Slice Rank
The main new notions we will need in this paper relate to the slice rank of tensors. We say a tensor over has x-rank if it is of the form
for some choices of the and coefficients over the base field. More generally, the x-rank of , denoted , is the minimum number of tensors of x-rank 1 whose sum is . We can similarly define the y-rank, , and the z-rank, . Then, the slice rank of , denoted , is the minimum such that there are tensors , and with and .
We note a few simple properties of slice rank which will be helpful in our proofs:
,
,
, and ,
, and
If is a tensor over , then and hence .
(1) and (2) are straightforward. (3) follows since the sum of the slice rank (resp. x-rank) expressions for and for gives a slice rank (resp. x-rank) expression for . To prove (4), let , and note that if such that , then
Finally, (5) follows since, for instance, any tensor with one only x-variable has x-rank 1. ∎
Asymptotic slice rank is interesting in the context of matrix multiplication algorithms because of the following facts.
For a positive integer , the independent tensor of size , denoted , is the tensor with terms that do not share any variables.
For any positive integers , the matrix multiplication tensor has a (monomial) degeneration to an independent tensor of size at least .
To summarize: we know that degenerations cannot increase asymptotic slice rank, and that matrix multiplication tensors have a high asymptotic slice rank. Hence, if is a tensor such that is ‘small’, meaning a power of has a degeneration to a disjoint sum of many large matrix multiplication tensors, then itself must have ‘large’ asymptotic slice rank. This can be formalized identically to [AW18b, Theorem 4.1 and Corollary 4.3] to show:
7 Partition Notation
In a number of our results, we will be partitioning the terms of tensors into blocks defined by partitions of the three variable sets. Here we introduce some notation for some properties of such partitions; these definitions all depend on the particular partition of the variables being used, which will be clear from context.
Suppose is a tensor minimal over , and let , , be partitions of the three variable sets. For , let be restricted to (i.e. with , , and zeroed out), and let . is called a block of . For let , and define similarly and .
and and similarly. This expression, which arises naturally in the Laser Method, will play an important role in our upper bounds and lower bounds.
8 Tensor Rotations and Variable-Symmetric Tensors
If is a tensor over , then the rotation of , denoted , is the tensor over such that for any , the coefficient of in is equal to the coefficient of in . Tensor is variable-symmetric if .
If is a variable-symmetric tensor minimal over , then partitions , , of the variable sets are called -symmetric if (using the notation of the previous subsection) , for all , and the block for all . For the resulting from such a -symmetric partition, a probability distribution is called -symmetric if it satisfies for all , and we write for the set of such -symmetric distributions. Notice in particular that any satisfies .
Combinatorial Tools for Asymptotic Slice Rank Upper Bounds
If are minimal for , then the measure of , denoted , is given by . We state two simple facts about :
if is minimal over , then .
2 Generalization of [AW18b, Theorem 5.2]
For any tensor and partition of its variable sets,
For any positive integer , we can write
This is upper bounded by , where is the quantity defined in Section 3.7. It follows that . We can similarly argue about and . Hence,
Hence, , and the desired result follows. ∎
We make a remark about applying Theorem 4.4 to variable-symmetric tensors. This remark has implicitly been used in past work on applying the Laser method, such as [CW90], but we prove it here for completeness. Recall the notation in Section 3.8 about such tensors.
Suppose is a variable-symmetric tensor over , and , , are -symmetric partitions. Then,
Consider any , and define the distribution by for each . In order to show that , we will show that :
where the second-to-last step follows from the fact that for any real numbers , setting , we have . ∎
3 Generalization of [AW18b, Theorem 5.1]
The final remaining tool from [AW18b], their Theorem 5.1, turns out to be unnecessary for proving our tight lower bounds in the next section. Nonetheless, we sketch here how to extend it to give asymptotic slice rank upper bounds as well.
For a tensor , let . Recall from Lemma 3.1 that for any two tensors we have .
Suppose are tensors such that . Then,
We begin by, for any integers , giving bounds on . First, since is submultiplicative, we have
Second, from the definition of , we have
It follows that for any positive integer we have
Computing the Slice Ranks for Tensors of Interest
In this section, we give slice rank upper bounds for a number of tensors of interest. It will follow from Section 6 that all of the bounds we prove in this Section are tight.
We begin with the generalized CW tensors defined in [AW18b], which for a positive integer and a permutation are given by
That said, we will now use Theorem 4.4 to prove that . (In fact, essentially the same argument as we present now shows that [AW18b, Theorem 5.2] was already sufficient to show the weaker claim that ).
We begin by partitioning the variable sets of , using the notation of Theorem 4.4. Let , , and , so that is a partition of the -variables of . The sets of partitions were 1-indexed before, but we 0-index here for notational consistency with past work. Similarly, let , , , , , and . We can see this is a -symmetric partition with .
Consider any probability distribution . By symmetry, we know that and for some value . Applying Theorem 4.4, and in particular Proposition 4.7, yields:
It is not hard to see that the resulting lower bound on is increasing with and is always at least (see Appendix A below for a proof), and hence that for any and any we have as desired.
2 Generalized Simple Coppersmith-Winograd Tensors
Similar to , we can define for a positive integer and a permutation the simple Coppersmith-Winograd tensor given by:
The first few values are as follows; note that we cannot get a bound better than when because of Coppersmith and Winograd’s remark.
3 Cyclic Group Tensors
We next look at two tensors which were studied in [CU03], [AW18a], and [AW18b, Section 7.3]. For each positive integer , define the tensor (the structural tensor of the cyclic group ) as:
Define also the lower triangular version of , called , as:
4 The Value of the Subtensor t112t_{112} of CWq⊗2CW_{q}^{\otimes 2}
A key tensor which arises in applying the Laser method to increasing powers of , including [CW90, Wil12, LG14, LG12, GU18], is the tensor which (for a given positive integer ) is given by
Coppersmith-Winograd [CW90] and future work studied the value of this tensor. In [CW90] it is shown that for every ,
This bound has been used in all the subsequent work using , without improvement. Here we show it is tight and cannot be improved in the case :
Consider the variable-symmetric tensor . As in [CW90], by definition of , for every there is a positive integer such that has a degeneration to for values such that . In particular, by Corollary 3.6 this yields the bound
The only upper bound we are able to prove on for is the straightforward , which is slightly worse than the best known lower bound . It is an interesting open problem to prove tight upper bounds on for any nontrivial tensor and value . may be a good candidate since the Laser method seems unable to improve for any , even when applied to any small tensor power .
Slice Rank Lower Bounds via the Laser Method
Consider any tensor which is minimal over , and let , , be partitions of the three variable sets. Define , , and for a probability distribution on , as in the top of Subsection 3.7. Recall in particular that is restricted to the variable sets , , and .
We say that , along with partitions of , is a laser-ready tensor partition if the following three conditions are satisfied:
For every , either , or else has a degeneration to a tensor with , , and (i.e. a matrix multiplication tensor which is as big as possible given , , and ).
is variable-symmetric, and the partitions are -symmetric.
These conditions are exactly those for which the original Laser Method used by Coppersmith and Winograd [CW90] applies to . We note that condition (3) is a simplifying assumption rather than a real condition on : for any tensor and partitions satisfying conditions (1) and (2), the tensor along with the corresponding product partitions, satisfies all three conditions, gives at least as good a bound on using the Laser Method as and the original partitions, and more generally has .
Suppose , along with the partitions of , is a laser-ready tensor partition. Then, for any distribution , and any positive integer , the tensor has a degeneration into
Typically, as described in [Wil12, Section 3], there is an additional loss in the size of the degeneration if there are multiple different distributions with the same marginals (meaning , , and for all ) but different values of for any . However, because of condition (1) in the definition of a laser-ready tensor partition, the quantity is equal to
and in particular satisfies for any two distributions with the same marginals. Thus, we do not incur this loss, and we get the desired degeneration. ∎
Our key new result about such tensor partitions is as follows:
Suppose tensor , along with the partitions of , is a laser-ready tensor partition. Then,
For the lower bound, we know from Theorem 6.2 that for all , and all positive integers , the tensor has a degeneration into
By Proposition 3.5, this means has a degeneration to an independent tensor of size
, , and , partitioned as they were in the previous section, are laser-ready tensor partitions. The tight bound for follows from the degeneration to described in the previous section. ∎
If is a tensor with a laser-ready tensor partition, and applying the Laser method to with this partition yields an upper bound on of for some , then .
When the Laser method shows, as in Theorem 6.2, that has a degeneration into
the resulting upper bound on is that
Acknowledgements
I would like to thank Matthias Christandl, Joshua Grochow, Ryan Williams, Virginia Vassilevska Williams, and Jeroen Zuiddam for helpful discussions and suggestions.
References
Appendix A Proof that ωu(CWq,σ)≥2.16805\omega_{u}(CW_{q,\sigma})\geq 2.16805 for all qq
The value of this optimization problem is computed for in a table in Section 5.1, where we see that for all .
Let denote the argmin for the optimization problem. In particular, for , the argmin is . From the term in the optimization problem, we see that for all , and in particular, for all . It follows that for all . Thus, for all we have:
This expression equals at , and is easily seen to be increasing with for , which implies as desired that for all and hence all .