Arithmetic circuits for matrix multiplication #
Let matMulPolynomial K n be the n² outputs C i k = ∑ j, A i j B j k of the product of two
n × n matrices, as polynomials in the 2 n² inputs with coefficients in a field K
(MatMul.Arithmetic.Defs). Consider circuits whose gates are polynomials with coefficients in
K, of any degree and arity, that formally compute matrix multiplication
(Taylor.FormallyComputes): every output wire carries the polynomial C i k. The size bounds
are for circuits of fan-in at most two. The size counts gates; inputs and output designations
are free, and gate polynomials carry their coefficients, so only explicit nullary gate
occurrences are counted beyond the operations. For circuits of additions, multiplications and
constants (Arithmetic.signature) the cost counts the additions and multiplications, and
constants are free.
The cut bounds (charges_le_of_matMul_formal). Let a split S of the wires be crossed by
w forward and backward signals, and place the terminals as in MatMul.Tripartite, with
heavy vertices H_I, H_J, H_K. By the Taylor cut lemma (MultiOutput.Taylor):
- the Hessian of
∑ Λ i k C i kis block diagonal over the inner indexj; for a totally regularΛits cross block has rank at leastR_J = ∑ j, min (d j, 2 n - d j), soR_J ≤ w; - the Jacobian of the product at
(A₀, B₀)sends(δA, δB)toδA B₀ + A₀ δB. Its forward block (outputs outsideS, inputs inS) and backward block (outputs inS, inputs outsideS) have ranks summing to at mostw. With totally regularA₀ = B₀, group the forward block by the heavy rowsi(against the inputsA i j) and then by the columnsk(against the inputsB j k, with the light rows); the outputs of a light row do not depend on theAentries of another row, so the groups are triangular and the rank is at least∑_{i ∈ H_I} min (#{k : C i k ∉ S}, #{j : A i j ∈ S}) + ∑_k min (#{i ∉ H_I : C i k ∉ S}, #{j : B j k ∈ S}). The backward block, grouped by the light rows, gives the complementary sum; together they form the row Jacobian chargeL_I = jacobianChargeI, andL_I ≤ w. Grouping by columns givesL_K ≤ w.
Over every field K, the Hankel matrix (t ^ ((i + j)²)) over K(t) is totally regular
(totallyRegular_genericHankel), and the Taylor cut lemma holds over K(t).
The charging inequality (Tripartite.fifteen_mul_sq_le_eight_mul_charge). Charge every
terminal with one heavy and one light endpoint as in MatMul.Tripartite. Then R_J pays for the
A and B terminals charged to J; L_I pays for every light–heavy C terminal and for the
B terminals charged to K, up to the overshoot h_K (n - h_I - h_J)⁺ + (n - h_K) (h_I + h_J - n)⁺; L_K symmetrically. With h_p = n/2 + U_p and δ = ∑ U_p, the total is at least
(15/8) n² - n δ/2 - δ²/2, so at the threshold prefix, where 0 ≤ 2 δ ≤ 3,
15 n² ≤ 8 (R_J + L_I + L_K) + 6 n + 9.
The finite bound (fifteen_mul_sq_sub_le_of_matMul_formal). All terminals lie in one
component, so under the graph-ordering hypothesis a fan-in-two circuit of size s has
(15 n² - 6 n - 9)/24 ≤ (A + η) (s - 2 n²)⁺ + 3 log₂ (2 n² + 3 s) + C.
The asymptotic bounds (eventually_lt_size_of_matMul_formal). With the edge-score ordering
coefficient A = 2 κ_E, where κ_E = Gaussian.frontierCoefficient ≈ 0.14035, for every
ε > 0 and all large n, every such circuit over every field has more than
(2 + 5/(16 κ_E) - ε) n² ≈ (4.2266 - ε) n² gates; as 2 κ_E ≤ 9/32, also more than
(38/9 - ε) n² gates (eventually_lt_size_of_matMul_formal_thirtyEight_div_nine). The
threshold depends only on ε. The bound holds
- for formal computation with polynomial gates over every field
(
eventually_lt_size_of_matMul_formal), - for computation of the product as a function with polynomial gates over every infinite field
(
eventually_lt_size_of_matMul_of_infinite_jacobian), and - for the number of additions and multiplications of arithmetic circuits, with arbitrary
constants free, computing the product over every infinite field
(
eventually_lt_arithmeticCost_of_matMul_jacobian) or formally computing the polynomials over every field (eventually_lt_arithmeticCost_of_matMul_formal_jacobian,eventually_lt_arithmeticCost_of_matMul_formal_thirtyEight_div_nine).
Prior art. Bläser (A 5/2 n²-lower bound for the multiplicative complexity of
n × n-matrix multiplication, STACS 2001) proves that 5/2 n² - 3 n multiplications are needed
over every field; counting about n² further gates for the outputs, this is about 3.5 n²
operations in total. Shpilka (Lower bounds for matrix product, SICOMP 2003) proves
3 n² - o(n²) product gates over GF(2) for quadratic circuits, about 4 n² operations with
the outputs. The bound here counts all gates of circuits with arbitrary fan-in-two polynomial
gates, and the additions and multiplications of arithmetic circuits.
The polynomials #
The polynomials of matrix multiplication evaluate to the product, over every commutative algebra.
The polynomials of matrix multiplication evaluate to the product.
The charging inequality #
The charging inequality with the Jacobian charges. If the heavy vertices number h with
3 n ≤ 2 h ≤ 3 n + 3, then 15 n² ≤ 8 (R_J + L_I + L_K) + 6 n + 9.
The cut bounds #
The cut bounds. If a circuit with polynomial gates over a field K formally computes
matrix multiplication, then for every set S of its wires each of the Hessian charge R_J and
the Jacobian charges L_I and L_K of the placed terminals is at most the number of forward
and backward signals of S.
All terminals lie in one component. If a circuit with polynomial gates formally computes
matrix multiplication and n ≥ 1, the component of its output C 0 0 contains every input and
every output.
The finite bound. If a fan-in-two circuit with polynomial gates over a field formally
computes matrix multiplication, then under the graph-ordering hypothesis
(15 n² - 6 n - 9)/24 ≤ (A + η) (s - 2 n²)⁺ + 3 log₂ (2 n² + 3 s) + C for its size s.
Asymptotic bounds #
The asymptotic bound with a general ordering coefficient. If the graph-ordering
hypothesis holds with coefficient A > 0 for every positive slack, then for every ε > 0 and
all large n, every fan-in-two circuit with polynomial gates over any field formally computing
the product of two n × n matrices has more than (2 + 5/(8 A) - ε) n² gates.
Matrix multiplication needs (2 + 5/(16 κ_E) - ε) n² polynomial gates over every field.
For every ε > 0 and all large n, every circuit with polynomial gates of fan-in at most two
over any field, of any degree and with any coefficients, formally computing the product of two
n × n matrices has more than (2 + 5/(16 κ_E) - ε) n² gates, where
κ_E = Gaussian.frontierCoefficient; the coefficient is
2 + 5 π/(24 arccos((1 + 2√2)/4)) ≈ 4.2266.
38/9 ≤ 2 + 5/(16 κ_E), since 2 κ_E ≤ 9/32.
Matrix multiplication needs (38/9 - ε) n² polynomial gates over every field.
Matrix multiplication over an infinite field. For every ε > 0 and all large n, over
every infinite field, every circuit whose operations are polynomial functions of at most two
arguments and which computes the product of two n × n matrices as a function has more than
(2 + 5/(16 κ_E) - ε) n² gates.
Arithmetic circuits with free constants. For every ε > 0 and all large n, over every
infinite field, every circuit of additions, multiplications and constants computing the product
of two n × n matrices performs more than (2 + 5/(16 κ_E) - ε) n² additions and
multiplications; constants are free.
Arithmetic circuits with free constants over every field. For every ε > 0 and all
large n, over every field K, every circuit of additions, multiplications and constants of
K formally computing the product of two n × n matrices performs more than
(2 + 5/(16 κ_E) - ε) n² additions and multiplications; constants are free. The circuit run
over the infinite field K(t) computes the product there.
Arithmetic circuits for matrix multiplication need (38/9 - ε) n² operations over every
field, constants free.