Manuscript Offprint
arXiv:2610.10494Rectangular matrix multiplication from shared-leg entropy
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In this note, we extend the matrix-multiplication analysis in [6] to rectangular products and prove
In particular, and the dual exponent satisfies . We use the shared-leg entropy inequality and polynomial-multiplication degenerations from [6], retaining two-leg symmetry and the orientation of each sector. Logarithmic averaging produces homogeneous auxiliary profiles. Their powered versions have a common asymptotic slope, and bounding their intercepts gives the spectral constraint . This yields the rectangular curve by tensor-spectrum duality. As an application, Zwick's algorithm [10] for all-pairs shortest paths in directed unweighted graphs runs in time. Combining the rectangular bound with the -product improvement of Alman and Vassilevska Williams [1] further gives running time.
1 Introduction
The motivation for this note is to gather, in one place, useful bounds and algorithmic consequences of the groundbreaking matrix-multiplication result in [6], with a focus on rectangular products.
Complexity convention. Throughout this note, all complexity bounds suppress a term in the exponent: denotes . All shape parameters are fixed.
Rectangular matrix multiplication is a basic ingredient in algorithms for all-pairs problems, including shortest paths, lowest common ancestors, and Hamming distance. Its exponents depend on the shape of the product; an improvement for square matrices need not give a comparable improvement for every rectangular shape. The analysis in [6] establishes the square bound using a shared-leg entropy inequality and degenerations of polynomial-multiplication tensors. We extend that analysis to rectangular products by retaining the orientation information lost under full leg symmetrization.
For fixed nonnegative real , let be the infimum of the exponents for which multiplying an matrix by a matrix uses arithmetic operations over , with the convention above. Write and .
This note, its proofs, analysis and writeup were obtained fully through OpenAI Codex (GPT-6.1). The author has read and analyzed this note in full and takes full responsibility for its contents.

Figure 1: The upper bound on from Theorem 1.1 for , together with the size lower bound . The bounds coincide for .
Theorem 1.1. For every fixed real ,
Consequently for , , and .
Theorem 1.1 gives exponent two for inner dimension up to , and an upper bound within of the input-size lower bound for .
Our proof bounds the dot-product parameters of every tensor character. After averaging over the interchange of two legs, these parameters have the form , and the rectangular objective is . We prove the parabolic constraint .
Relation to the preceding analysis. The tensor constructions and shared-leg entropy inequality are taken directly from [6]. Lemma 2.1 restates its Corollary 3.2 and the constructions in the proofs of its Lemmas 4.1 and 4.2, with oriented notation. The partial symmetrization in Section 2 adapts its six-permutation geometric averaging to two permutations. The powered concavity and coupled tripling inequalities in Lemma 2.2 are direct consequences of those same constructions, retaining the two distinct orientations.
The additional analytic arguments relative to that paper are the simultaneous logarithmic homogenization of the two profiles (Lemma 3.1) and their common-slope and intercept analysis (Lemma 4.1), which yields the parabolic parameter bound (Proposition 4.2). The underlying tools, including geometric averaging, compactness, and concavity, are standard. These arguments extend the original use of concavity and tripling to constrain two parameters. Once this constraint is established, Section 5 obtains the curve by elementary optimization and standard tensor-spectrum duality; Section 6 optimizes the permuted constraints for three unequal dimensions; Section 7 substitutes it into known algorithmic tradeoffs. Thus the contribution is the rectangular bound and the coupled-profile analysis leading to it; the tensor constructions and the application algorithms are inherited.
A tensor character assigns each tensor T a nonnegative real number , with
Here uses disjoint variable groups and is the Kronecker product. A character is also monotone: if restricts or degenerates to , then . The collection of these characters is the tensor spectrum. For the oriented dot-product tensors
and its leg permutations , write
The rank of a tensor is the minimum number of products of three linear forms, one in each leg, whose sum equals that tensor. Characters are positive on nonzero tensors and bounded above by rank. The matrix-multiplication tensor has character value
by its factorization into three oriented dot products. Define the asymptotic rank by . We use the standard duality
as stated, for example, in [2, Section 4.1, p. 18].
For distinct tensor legs i, j, put the polynomial-multiplication tensor
on input legs i, j and the remaining output leg k. Its rank is over C: interpolation at distinct points gives the upper bound, and the output flattening gives the lower bound. A smaller pair of input lengths gives a restriction.
The following results restate Corollary 3.2 and the constructions in the proofs of Lemmas 4.1 and 4.2 of [6, pp. 5–8].
Lemma 2.1 ([6]). The following statements hold for every leg permutation.
- If a tensor has matched sectors sharing leg i, with the sectors disjoint on the other two legs, then for every probability vector q,
The same inequality applies to a degeneration onto such sectors.
-
The determinant filtration of , for , yields two matched sectors and sharing leg i.
-
For , degenerates to three matched sectors sharing leg i: two copies of and one copy of , where k is the remaining leg.
2.1 Partial symmetrization
We adapt the geometric averaging in [6, Section 4], retaining only the interchange of X, Y. The use of a common probability vector before geometric averaging is also taken from that argument.
Fix a character . Let exchange X, Y, and define
The function is positive, multiplicative, invariant under , monotone under restriction and degeneration, and bounded above by rank. Its dot-product parameters are . It need not be additive and is not treated as a character.
Apply (5) to both factors in M with the same probability vector and take their geometric mean. For sectors with common leg i, this gives the same entropy inequality for M, using the averaged parameter . For , the entropy variational identity gives
The probability vector is optimized after averaging the two character inequalities.
2.2 Discrete profiles
A profile here is a function of the two input lengths. Set
The first profile is symmetric in , ; symmetry identifies and . Both profiles are nondecreasing in each coordinate and satisfy
Lemma 2.2 (Powered concavity and tripling). If , is concave separately in , , and is concave in . If , is concave in . A zero parameter makes the corresponding profile constant in that coordinate. For positive denominators, the tripling inequalities are
Proof. The determinant filtration and (7) give
Exchanging the inputs gives the powered concavity in the other length. If , choosing a probability vector supported on the larger-length sector in (5) gives . Restriction monotonicity gives the reverse inequality, proving constancy without division by zero.
The three-sector input and (7) give (10)–(11). For (12), view as . Its middle sector is , which has the same M value by X/Y symmetry. All three sectors therefore have the same value in this orientation.
If , is constant in both coordinates and equals one. However, restricts to by retaining output coefficient , so and . The desired parameter bound is immediate in this case. Assume below.
Lemma 2.3 (Coordinate comparisons and bounded orientation ratio). If is a positive nondecreasing concave sequence, then for ,
For ,
Proof. The secant inequality gives , proving (13). Apply it to the powered profiles with , , in (10). The upper factor is ; subtracting the two outer-sector values gives the upper bound in (14). Use (11) for the reciprocal bound.
3 Homogeneous auxiliary profiles
The proof of [6, Lemma 5.1] uses a discrete recurrence along the diagonal of one fully symmetrized profile. We construct homogeneous auxiliary profiles from the discrete values in (8), preserving powered concavity and the tripling inequalities.
Lemma 3.1 (Logarithmic homogenization). There exist positive locally Lipschitz profiles on and a number
such that both profiles are homogeneous of degree , , V is symmetric, and both are nondecreasing. They inherit all powered concavities in Lemma 2.2 and its tripling inequalities with and in place of the integer shifts.
Proof. Define, for real t,
and average using one common normalization:
Applying (13) after the relevant power bounds a coordinate change in a log profile by its parameter times the corresponding log-length change, with rounding errors on a fixed compact positive rectangle. A coordinate with zero parameter is constant. Together with (14), these comparisons bound the two integrands in (16)–(17) on each compact rectangle, uniformly in . They also bound an averaged difference between two nearby points by a constant times their log-coordinate distance plus . Interpolating integer log profiles changes the averages by and gives uniformly Lipschitz approximations. Applying Arzelà–Ascoli on expanding compact rectangles and taking a diagonal subsequence gives locally uniform limits along a common sequence . Passing to a further subsequence, the bounded scalars also satisfy
All comparison constants here may depend on the fixed character.
The rank bound (9) gives . The tensor restricts to : retain the first-input constant coefficient, the second-input constant coefficient, or output coefficient , respectively. Thus , proving (15). In particular .
Fix and put . Replacing by shifts the first term of either integral by in its argument. The difference is the sum of two endpoint integrals. On the upper interval, for bounded ,
uniformly; the same holds for by (14). The lower endpoint contributes . Dividing by T gives
This also handles , since are defined for all real . Consequently have degree and .
It remains to justify the inequalities in the limit. The geometric-mean functional is concave and homogeneous on positive functions. In particular
For a direct proof, use the entropy variational identity for with a single probability vector, integrate, and optimize that vector after integration. The same argument with two weighted terms shows that geometric averaging preserves concavity. An integrand-dependent positive multiplier common to all profiles does not affect these statements.
Integer powered profiles have concave piecewise linear interpolations in each applicable coordinate. Rounding a length changes a log profile by on compact positive rectangles by (13). Thus their concavity inequalities, after averaging, have multiplicative errors . Likewise, and differ by a bounded integer; changing between them changes the log value by . Apply (18) to (10)–(12) with the common normalization in (16)–(17). The errors vanish as , giving the exact continuum tripling inequalities. Symmetry and monotonicity also pass to the limit.
Replace these profiles by their powers , and set
We reuse the names V, U for the resulting degree-one profiles. They have , , and . Powered concavity and tripling are unchanged, since , and similarly for the other powers.
On each rectangle , the interpolated profiles are uniformly bounded and have a common Lipschitz bound, so Arzelà–Ascoli gives a subsequence on which both converge uniformly. Choose nested subsequences for , then take the -th term of the -th subsequence. The resulting sequence converges uniformly on every compact subset of ; the interpolation error gives the same limits for the original profiles.
4 Common slopes and bounded intercepts
Put
Both profiles are homogeneous of degree and concave and nondecreasing in . The profile is symmetric and concave in . Positive separate concavity gives , so and . Here one extends each positive nondecreasing concave one-variable profile to its nonnegative limit at zero before applying the midpoint inequality.
Lemma 4.1 (Common slope and intercepts). For , write and . There is a common slope such that
The limits
exist, are nonnegative and finite, and satisfy
Proof. Positive nondecreasing concavity gives finite nonnegative limits , . Divide the two coupled tripling inequalities
by s and pass to infinity. They give and , so the slopes agree.
Their sum satisfies . Iterate at and use to get
Since , this proves .
The derivatives of a concave profile decrease to its asymptotic slope. Hence and are nondecreasing. Each is nonnegative by comparison with its nonnegative limit at zero. Equation (22) bounds their sum by , so their finite limits exist and . As , , and therefore .
Symmetry and homogeneity give . Taking one-sided derivatives at yields . Concavity implies . The limiting slope is at most , proving . No differentiability at is needed.
Proposition 4.2 (Parabolic parameter cap). The normalized parameters satisfy .
Proof. At differentiability points, and . Thus
The denominators are positive: and . The last inequality uses . By degree-one homogeneity,
For , the continuum self-tripling inequality and concavity in of give
Indeed, the forward secant from to is at most the right derivative at , while the increment is at least . If , monotonicity gives (25) with zero right-hand side without taking a power.
Euler's identity for degree-one U now gives, almost everywhere,
The right-hand side is continuous in , so the inequality holds at every positive ratio. Put and ; rearranging yields
For , choose , which gives . At , let to get . At , (26) gives directly.
5 The rectangular exponent curve
Corollary 5.1 (Character constraint). Every character satisfies
Proof. For , Proposition 4.2 and (19) give
since . If , we already proved .
Proof of Theorem 1.1. For , (3) gives the character exponent . Corollary 5.1 therefore bounds this exponent by
For the maximum is 2, attained at . For the optimizer is
and the value is . The optimization is over the parameter region defined by Corollary 5.1; it does not require a character attaining (29).
For rational , choose arbitrarily large integers with integral. The preceding bound on every character and (4) give the same upper bound on . Tensor-power rank decompositions yield algorithms with this exponent bound: choose a tensor power with rank within an arbitrary exponent slack and recurse with that fixed rectangular decomposition. Additions are covered by its rank and flattening dimensions. Padding from these base sizes to arbitrary costs only a constant factor for each fixed algorithm.
For real , approximate from above by rational inner exponents and pad. Equivalently, inner-dimension blocking gives for . Continuity of the right-hand side of (1) and the exponent convention complete the extension to all real . The output flattening has rank , giving and proving equality when and the claim about .
Some values of the bound in Theorem 1.1 are:
The exponent convention gives an -time algorithm at .
6 Three unequal dimensions
Permuting the parabolic character constraint gives a bound for general by a further elementary optimization.
Corollary 6.1. For every fixed ,
When , equality holds by the size lower bound.
Proof. Corollary 5.1, applied after each leg permutation, gives for distinct . Reorder the parameters so that the character objective is , and put . If , this objective is at most , since . Otherwise the constraints give . Writing , they imply
Consequently,
For , the quadratic is maximized on at . For , its maximum is at ; here and the denominator is positive. These two maxima give (30) by tensor-spectrum duality, with the same rounding and exponent convention as in Theorem 1.1.
7 Applications
Theorem 1.1 and Corollary 6.1 give the following bounds through standard rectangular-multiplication balances. All bounds use arithmetic operations, with graph operations and symbol comparisons also charged.
-
One lowest common ancestor per pair in a DAG. Grandoni et al. [4, Theorem 4.2 of the published version] obtain exponent from the balance . Theorem 1.1 permits , giving time for finding one lowest common ancestor for every pair in an -vertex DAG. The exponent is .
-
Exact all-pairs Hamming distance. For vectors of length over an unrestricted alphabet, the reduction to dominance products [5] and Yuster's tradeoff [8, Proposition 2.1] give the balance . Theorem 1.1 gives and running time for computing every exact Hamming distance.
-
The standard unweighted APSP balance. Zwick's deterministic algorithm for directed unweighted APSP [10, Section 6] has exponent , where . Here , so it gives running time. Combining the full curve with the deterministic (min, +)-product algorithm and APSP reduction of Alman and Vassilevska Williams [1, Theorems 22 and 33–34] further gives running time.
-
Minimum and maximum witnesses. For two Boolean matrices, a minimum (maximum) witness for entry is the least (greatest) index with . The standard blocking algorithm [3, Section 2.1] takes time. Taking gives time for all witnesses.
-
Sparse matrix multiplication. For two matrices with at most nonzero entries each, the sparse-dense decomposition of Yuster and Zwick [9, Section 3] gives time for . Thus permits time.
-
Dynamic matrix inverse and reachability. Substituting Corollary 6.1 into van den Brand–Nanongkai–Saranurak’s tradeoff [7, Theorem 4.2] and minimizing over gives worst-case time per entry update and query for maintaining the inverse of a nonsingular matrix, after preprocessing. The associated Monte Carlo reduction gives the same bounds for directed reachability under edge updates, with query time for a fixed pair [7, Corollary C.12 and Theorem C.16].
References
[1] Josh Alman and Virginia Vassilevska Williams. Truly subquadratic 3SUM and truly subcubic APSP via triangles in sparse lopsided graphs, 2026.
[2] Matthias Christandl, Peter Vrana, and Jeroen Zuiddam. Barriers for fast matrix multiplication from irreversibility. Theory of Computing, 17(2):1–32, 2021.
[3] Keren Cohen and Raphael Yuster. On minimum witnesses for Boolean matrix multiplication. Algorithmica, 69(2):431–442, 2014.
[4] Fabrizio Grandoni, Giuseppe F. Italiano, Aleksander Łukasiewicz, Nikos Parotsidis, and Przemysław Uznański. All-pairs LCA in DAGs: Breaking through the barrier. Proceedings of SODA 2021; arXiv:2007.08914, 2021.
[5] Karim Labib, Przemysław Uznański, and Daniel Wolleb-Graf. Hamming distance completeness. In 30th Annual Symposium on Combinatorial Pattern Matching (CPM 2019), volume 128 of Leibniz International Proceedings in Informatics, pages 14:1–14:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019.
[6] OpenAI. An upper bound of 9/4 for the matrix multiplication exponent. OpenAI Math Release preprint, 2026. October 2, 2026.
[7] Jan van den Brand, Danupon Nanongkai, and Thatchaphol Saranurak. Dynamic matrix inverse: Improved algorithms and matching conditional lower bounds. Proceedings of FOCS 2019; arXiv:1905.05067, 2019.
[8] Raphael Yuster. Efficient algorithms on sets of permutations, dominance, and real-weighted APSP. In Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2009), pages 950–957. SIAM, 2009.
[9] Raphael Yuster and Uri Zwick. Fast sparse matrix multiplication. ACM Transactions on Algorithms, 1(1):2–13, 2005.
[10] Uri Zwick. All pairs shortest paths using bridging sets and rectangular matrix multiplication. Journal of the ACM, 49(3):289–317, 2002.