Skip to content

data: rank records over Q for 13x14x14, 13x15x15, 14x14x15, 14x15x15 and 15x16x16 - #40

Merged
jgdumas merged 1 commit into
jgdumas:mainfrom
gsidebottom:data-rank-records-q
Nov 13, 2026
Merged

jgdumas merged 1 commit into
jgdumas:mainfrom
gsidebottom:data-rank-records-q

Conversation

@gsidebottom

Copy link
Copy Markdown
Contributor

This adds five matrix-multiplication schemes over Q, as data/<shape>_<rank>_rational_{L,R,P}.{sms,slp} (30 files, 15 MB).
Their ranks are below the ones listed in Andrew Perminov's catalog
(github.com/dronperminov/FastMatrixMultiplication, head 6f8ef61) and in the fmm.univ-lille.fr
table of 2026-11-09 (fmm_sota.json):

shape rank catalog (Q) fmm.univ-lille.fr
13x14x14 1564 1582 1579
13x15x15 1763 1776 1776
14x14x15 1715 1790 1789
14x15x15 1842 1848 1848
15x16x16 2202 2223 2220

How they were obtained. Each one starts from a square scheme of Khoruzhii, Serafin, Gelß and
Pokutta, "Local Improvements to Trilinear Aggregation" (github.com/khoruzhii/lita), as included in
Perminov's catalog: <14x14x14:1594>, <15x15x15:1977> or <16x16x16:2237>. Deleting one row of A
(two indices for 13x15x15 and 14x14x15) gives a rectangular scheme in which the Kronecker products of
two of the factors are linearly dependent, so the scheme is 2-reducible in LITA's sense. Choosing
the removed products jointly removes more than one product per dependency: for example, the 14
dependencies of the projected 13x14x14 scheme remove 30 products. The method is
LITA's, and the choice of products is our only addition.

Coefficients. The schemes are over Q and not dyadic. The denominators have the prime factors
2 and 5 (13x14x14, up to 200), 2, 5 and 17 (13x15x15, 14x14x15 and 14x15x15, up to 1088) and 2, 3
and 5 (15x16x16, up to 720). Rescaling each product so that its rows of L and R are primitive
integer vectors moves every denominator into P. Each entry of C then needs one division by a
constant: 182, 195, 210, 210 and 240 divisions, by two or three distinct constants per scheme.

Checks. The schemes were verified exactly over Q from the Brent equations, and independently by
running them on random integer matrices with exact rationals. The L, R and P files were then
checked again by reading them back. MMchecker -b 64 reports SUCCESS three times for each
triplet, and a copy with one changed entry fails. The schemes are non-commutative: run on matrices
whose entries are random 2x2 integer matrices, each gives A B exactly, while taking every product's
two factors in the wrong order fails on every entry of C.

Programs. Each matrix comes with a straight-line program from optimizer -O 1 -s 1, a single
randomized loop because one loop takes up to half an hour on these sizes; more loops should lower the
counts. make check FILE=<prefix> passes for all five (SLPchecker against each matrix, then
MMchecker). Operation counts of the three programs together, from OpCount.sh:

scheme additions scalings of which divisions
13x14x14_1564_rational 32,015 12,945 11,422
13x15x15_1763_rational 16,335 3,666 2,495
14x14x15_1715_rational 16,825 3,890 2,680
14x15x15_1842_rational 17,598 3,933 2,741
15x16x16_2202_rational 43,925 15,699 13,636

🤖 Generated with Claude Code

…>, <14x15x15:1842>, <15x16x16:2202>

Five rectangular schemes over Q (not dyadic), each below the ranks listed in Perminov's catalog
(1582, 1776, 1790, 1848, 2223) and in the fmm.univ-lille.fr table of 2026-11-09 (1579, 1776, 1789,
1848, 2220): data/<shape>_<rank>_rational_{L,R,P}.{sms,slp}.  Each is a projection of one of LITA's
square schemes (Khoruzhii, Serafin, Gelss, Pokutta; <14x14x14:1594>, <15x15x15:1977>,
<16x16x16:2237>) followed by LITA's 2-reduction, with a search over which products to remove.
Verified exactly over Q (Brent equations, and runs on random integer and 2x2-matrix entries);
make check passes for all five (SLPchecker on each program, MMchecker on each triplet).  The
programs come from one randomized optimizer loop (-O 1 -s 1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
gsidebottom added a commit to gsidebottom/logic that referenced this pull request Nov 12, 2026
@jgdumas jgdumas mentioned this pull request Nov 13, 2026
@jgdumas
jgdumas merged commit 04db52b into jgdumas:main Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants