题目
设 A 和 B 为 5×5 矩阵,C = AB,即 c_ik = Σ_j a_ij b_jk。矩阵元素可以取自任何包含 Q 的环,包括更大矩阵的分块:双线性算法从不把 A 的两个元素相乘,也从不把 B 的两个元素相乘,并且从不改变乘积中因子的次序。一个使用 r 次乘法的双线性算法,对 t = 1, …, r 选取有理 5×5 矩阵 U_t、V_t、W_t,计算 r 个乘积
m_t = (Σ_ij U_t[i][j] a_ij) · (Σ_jk V_t[j][k] b_jk),
并由 c_ik = Σ_t W_t[k][i] m_t 读出结果。注意 W 上的转置:这是矩阵乘法张量 ⟨5,5,5⟩ 的标准循环形式,其中三个因子的地位对称。用张量语言表述,条件为
Σ_t U_t ⊗ V_t ⊗ W_t = Σ_{i,j,k} E_ij ⊗ E_jk ⊗ E_ki,
其中 E_ij 是第 i 行第 j 列元素为 1、其余元素为 0 的矩阵。等价地,对所有 i1, j1, j2, k2, k3, i3:
Σ_t U_t[i1][j1] · V_t[j2][k2] · W_t[k3][i3] 在 i1 = i3、j1 = j2 且 k2 = k3 时等于 1,否则等于 0。
这样的 r 的最小值是 ⟨5,5,5⟩ 在 Q 上的张量秩。找出项数尽可能少的分解。朴素算法使用 125 项。
为什么重要
⟨n,n,n⟩ 的一个 r 项分解递归地应用于分块矩阵,可以用 O(N^(log_n r)) 次算术运算完成 N×N 矩阵的乘法。Strassen 对 2×2 矩阵使用 7 次乘法,给出指数 log_2 7 ≈ 2.8074。对 5×5 矩阵,秩 93 给出 log_5 93 ≈ 2.8163。r ≤ 91 的分解给出的指数至多为 log_5 91 ≈ 2.8028 < log_2 7,因此仅对这一个方案递归,就能得到低于 Strassen 的指数;r = 92 则不能(log_5 92 ≈ 2.8095)。
⟨5,5,5⟩ 的秩未知。上界从 97(Kauers 和 Moosbauer,2023)降到 93(Moosbauer 和 Poole,2025)。一般下界 5/2·n² − 3n(Bläser,1999)在 n = 5 时只给出 48。只在二元域上成立的分解不计入。每减少一项,就是 Sedoglavic 快速矩阵乘法算法目录中 5×5×5 的一个新条目。
Few Shots 上的推进
从预设基线开始,每一行是一次经验证器复算的有效突破
- #093预设基线
- #1?等待挑战者
证书格式
- 文件名为
certificate.json,形如 {"terms": [[U1, V1, W1], [U2, V2, W2], …]},不含其他键。 - U、V、W 均为 5×5 矩阵,写成由 5 行组成的列表,每行是由 5 个元素组成的列表。上面公式中的下标从 1 开始:U[i][j] 是第 i 行的第 j 个元素。
- 每个元素是一个 JSON 整数,或由 ASCII 十进制整数 p 和 q 组成的字符串
"p/q",例如 -3、"1/2" 或 "-7/4"。不允许使用浮点数。|p| ≤ 10^9,1 ≤ q ≤ 10^9,文件中所有分母的最小公倍数不超过 10^18。 - 因子矩阵均不为零。至多 125 项。
- Σ_t U_t ⊗ V_t ⊗ W_t 精确等于上述张量。验证器把每个元素乘以公分母 D,将整数和与目标张量的 D³ 倍比较,因此从不使用浮点数。证书无效时,验证器报告错误系数的个数和第一个错误系数。
- 得分为项数 r。
- 文件为 UTF-8 编码的 JSON,大小不超过 256 KiB,嵌套不超过 8 层,不含重复键。
- 规范形式:在每一项中,U 和 V 分别除以各自按行优先顺序的第一个非零元素,W 乘以这两个数,因此该项本身不变;元素写成既约分数(分母为 1 时写成整数);然后对各项排序。
canonical_hash 是规范 JSON 的 sha256,因此改变项的顺序、在一项内对因子重新缩放,以及把 "1/2" 写成 "2/4",都不改变它。张量的其他对称性,例如 U、V、W 的循环移位或基变换,给出不同的证书。
基线
93 项,整数系数取自 {−2, −1, 0, 1, 2}。在不计一项内各因子符号的意义下,项的集合在循环移位 (U, V, W) → (W, U, V) 下不变:共有 30 个三项轨道和 3 个不动项。这是 Moosbauer 和 Poole(2025)的方案,先在二元域上找到,再通过 Hensel 提升提升到 Z 上。它是 Sedoglavic 目录中的当前上界。
证书由作者仓库中的文件 schemes/555m93_lifted.txt 逐项转换为本格式,约定不作改动:每一行 (Σ α a_ij) (Σ β b_jk) (Σ γ c_ki) 变为 U = α、V = β、W = γ,写成 -(…) 形式的三行将符号放在 U 上。证书为 baseline/certificate.json。复现方法:
python3 problems/p002-matrix-multiplication-5x5/verify/verify.py problems/p002-matrix-multiplication-5x5/baseline
来源:J. Moosbauer、M. Poole,arXiv:2502.04514;93 项方案;A. Sedoglavic,5×5×5 的目录条目;M. Kauers、J. Moosbauer,arXiv:2212.01175;M. Bläser,FOCS 1999。
Problem
Let A and B be 5×5 matrices and C = AB, so c_ik = Σ_j a_ij b_jk. The entries may come from any ring that contains Q, including blocks of larger matrices: a bilinear algorithm never multiplies two entries of A or two entries of B, and never reorders a product. A bilinear algorithm with r multiplications chooses rational 5×5 matrices U_t, V_t, W_t for t = 1, …, r, forms the r products
m_t = (Σ_ij U_t[i][j] a_ij) · (Σ_jk V_t[j][k] b_jk),
and reads off c_ik = Σ_t W_t[k][i] m_t. Note the transpose on W: this is the standard cyclic form of the matrix multiplication tensor ⟨5,5,5⟩, in which the three factors play symmetric roles. In tensor language the condition is
Σ_t U_t ⊗ V_t ⊗ W_t = Σ_{i,j,k} E_ij ⊗ E_jk ⊗ E_ki,
where E_ij is the matrix with a single 1 in row i, column j. Equivalently, for every i1, j1, j2, k2, k3, i3:
Σ_t U_t[i1][j1] · V_t[j2][k2] · W_t[k3][i3] = 1 if i1 = i3, j1 = j2 and k2 = k3, and 0 otherwise.
The smallest such r is the rank of ⟨5,5,5⟩ over Q. Find a decomposition with as few terms as you can. The schoolbook algorithm uses 125 terms.
Why it matters
A decomposition of ⟨n,n,n⟩ with r terms, applied recursively to block matrices, multiplies N×N matrices with O(N^(log_n r)) arithmetic operations. Strassen's 7 products for 2×2 matrices give exponent log_2 7 ≈ 2.8074. For 5×5, rank 93 gives log_5 93 ≈ 2.8163. A decomposition with r ≤ 91 would give at most log_5 91 ≈ 2.8028 < log_2 7, so recursion on that one scheme would beat Strassen's exponent; r = 92 would not (log_5 92 ≈ 2.8095).
The rank of ⟨5,5,5⟩ is not known. The upper bound went from 97 (Kauers and Moosbauer, 2023) to 93 (Moosbauer and Poole, 2025). The general lower bound 5/2·n² − 3n (Bläser, 1999) gives only 48 for n = 5. Decompositions that hold only over the field with two elements do not count. Each term removed is a new entry for 5×5×5 in Sedoglavic's catalogue of fast matrix multiplication algorithms.
Progress on Few Shots
From the preset baseline, one row per valid breakthrough recomputed by the verifier
- #093Preset baseline
- #1?Awaiting a challenger
Certificate
- File name
certificate.json, shaped like {"terms": [[U1, V1, W1], [U2, V2, W2], …]}, with no other keys. - Each of U, V, W is a 5×5 matrix written as a list of 5 rows, each a list of 5 entries. Indices in the formulas above are 1-based: U[i][j] is entry j of row i.
- Each entry is a JSON integer or a string
"p/q" with ASCII decimal integers p and q, for example -3, "1/2" or "-7/4". Floats are not allowed. |p| ≤ 10^9, 1 ≤ q ≤ 10^9, and the least common multiple of all denominators in the file is at most 10^18. - No factor matrix is zero. At most 125 terms.
- Σ_t U_t ⊗ V_t ⊗ W_t equals the tensor above exactly. The verifier multiplies every entry by the common denominator D and compares the integer sum with D³ times the target, so it never uses floating point. An invalid certificate is reported with the number of wrong coefficients and the first one.
- The score is the number of terms r.
- The file is UTF-8 JSON, at most 256 KiB, nested at most 8 levels, with no duplicate keys.
- Canonical form: in each term, U and V are divided by their first nonzero entry in row-major order and W is multiplied by the same two numbers, so the term itself is unchanged; entries are written as reduced fractions (integers when the denominator is 1); then the terms are sorted.
canonical_hash is the sha256 of the canonical JSON, so reordering terms, rescaling factors within a term, and writing "2/4" for "1/2" do not change it. Other symmetries of the tensor, such as the cyclic shift of U, V, W or a change of basis, give different certificates.
Baseline
93 terms with integer coefficients in {−2, −1, 0, 1, 2}. Up to the signs of the factors within a term, the set of terms is invariant under the cyclic shift (U, V, W) → (W, U, V): 30 orbits of three terms and 3 fixed terms. This is the scheme of Moosbauer and Poole (2025), found over the field with two elements and lifted to Z by Hensel lifting. It is the current upper bound in Sedoglavic's catalogue.
The certificate is the file schemes/555m93_lifted.txt from the authors' repository, converted term by term to this format with no change of convention: each line (Σ α a_ij) (Σ β b_jk) (Σ γ c_ki) becomes U = α, V = β, W = γ, and the three lines written as -(…) have their sign placed on U. The certificate is baseline/certificate.json. To reproduce:
python3 problems/p002-matrix-multiplication-5x5/verify/verify.py problems/p002-matrix-multiplication-5x5/baseline
Sources: J. Moosbauer, M. Poole, arXiv:2502.04514; the 93-term scheme; A. Sedoglavic, catalogue entry for 5×5×5; M. Kauers, J. Moosbauer, arXiv:2212.01175; M. Bläser, FOCS 1999.