ZICQ
中 Log in / Sign up
Newsroom Research & Papers #3×3 Matrix Multiplication #Bilinear Complexity #Rank 23 #Algorithm Discovery #GPU Kernels

62,029 Rank-23 Schemes Expand the Search Space for 3×3 Matrix Multiplication

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:This paper introduces a public dataset of 62,029 rank-23 schemes for 3×3 matrix multiplication. Each scheme has a distinct rank pattern—an invariant derived from the ranks of its factor matrices—so the collection is pairwise inequivalent. The schemes were produced using gradient descent combined with alternating least squares, together with flip-graph search, and span ternary, integer, and rational coefficient classes. The result is a structural atlas rather than a new multiplication-count reco


Core Result

The contribution is not another reduction in the rank of 3×3 matrix multiplication. It is a systematic account of the structural diversity available at the best-known rank of 23. The paper releases 62,029 rank-23 schemes, each with a distinct rank pattern derived from its factor matrices, making the collection pairwise inequivalent. Under the coefficient and decomposition conventions used in the paper, rank 23 is optimal for integer-coefficient schemes. The search problem therefore shifts from finding fewer multiplications to finding equivalent structures with fewer additions, smaller coefficients, and better compiler and hardware behavior.

What Rank 23 Means Algebraically

The multiplication of 3×3 matrices can be represented as a bilinear decomposition of a third-order multiplication tensor:

M₃ = Σₖ uₖ ⊗ vₖ ⊗ wₖ

For a decomposition of rank r, an algorithm computes r products of linear forms in the inputs and reconstructs the nine output entries through fixed linear combinations. A direct algorithm requires 27 scalar multiplications, so rank 23 saves four multiplications, or about 14.8%, in the algebraic count alone. That count excludes the preparation of linear forms, output reconstruction, coefficient scaling, and additions.

The rank pattern used in the paper is an invariant formed from the ranks of the factor matrices. Two coefficient representations that differ but remain related by an admissible basis transformation do not constitute different structural classes when they preserve the same rank pattern. The new collection is therefore more informative than a simple list of coefficient variants.

| Collection | Schemes | Distinct rank patterns | |---|---:|---:| | Heule et al. | 17,376 | 387 | | Mårtensson et al. | 15,316 | 568 | | New dataset | 62,029 | 62,029 |

The new collection contains about 109 times as many rank patterns as the largest previous collection considered in isolation. The abstract does not report overlap between the new and old sets, so this ratio cannot be interpreted as the net increase after taking their union. Nor does the result establish that every mathematically possible rank-23 scheme has been exhausted.

How the Schemes Were Generated

The paper combines two complementary search routes:

  • Gradient descent with alternating least squares: Alternating least squares fixes selected factors and solves for the others, reducing a highly nonconvex decomposition problem into a sequence of simpler subproblems. Gradient descent supplies continuous updates based on the overall objective. The abstract does not disclose the loss function, constraints, convergence thresholds, numerical-to-rational conversion procedure, or final formal-verification protocol, all of which affect reproducibility.
  • Flip-graph search: Candidate schemes and local algebraic transformations are organized as a graph, allowing the search to explore connected components systematically. This is better suited to enumerating structured families that random restarts may repeatedly miss, although the reachable space still depends on the flip rules and initial graph construction.
  • Multiple coefficient classes: The collection includes ternary, integer, and rational coefficients. Ternary entries can often turn constant multiplications into additions, subtractions, or shifts. Integer coefficients support exact verification but can increase intermediate bit width. Rational coefficients require common denominators or scaling and introduce cancellation and conditioning concerns in floating-point implementations.

Engineering Trade-offs: Lower Rank Does Not Guarantee Lower Latency

Rank counts bilinear multiplications, not the complete operation graph. A rank-23 scheme may require enough additions and linear combinations to outweigh its four-multiply advantage. Coefficient choice creates another constraint. Ternary coefficients map cleanly to cheap arithmetic, integer schemes require proven bounds on intermediate values, and rational schemes can impose scaling overhead or precision loss on GPUs.

Hardware mapping is equally important. Expressing multiplication as 23 rank-one outer products does not naturally use Tensor Core paths optimized for larger matrix blocks. A fixed-size cuBLAS, CUTLASS, or vendor-specific 3×3 kernel may achieve better throughput and lower launch overhead despite using more arithmetic. On CPUs, branch elimination, vectorization, register pressure, and instruction count often matter more than tensor rank alone. The relevant optimization target is a Pareto frontier across multiplications, additions, nonzero density, coefficient width, and generated machine code.

The connection to AI computing is indirect but potentially useful. Computer vision, graphics, mobile workloads, and some fixed-size operators may repeatedly execute 3×3 multiplication. By contrast, large-model inference is dominated by dense GEMMs with dimensions far above 3×3. The dataset may therefore be more useful for compiler research, operator synthesis, or exploratory Strassen-style blocking than for immediate Transformer inference acceleration.

Benchmarking Evidence and Its Limits

The abstract reports combinatorial scale and algebraic invariants, not runtime performance. The number 62,029 is a dataset size, not a speedup factor. It provides no wall-clock latency, GFLOPS, total additions, coefficient-size distribution, compiled-code size, or target hardware results. A credible evaluation should include:

  1. Exact verification of every identity through symbolic proofs, modular testing, or high-precision randomized tests, preventing approximate numerical fits from being mistaken for exact decompositions.
  2. Separate counts for scalar multiplications, additions, nonzero coefficient operations, input preparation, and output reconstruction.
  3. Intermediate-value bounds for integer implementations and numerical error or conditioning measurements for floating-point execution.
  4. Compiled measurements on CPUs, CUDA, and ROCm across realistic batch sizes, including latency distributions, instruction counts, cache behavior, and launch overhead.
  5. Comparison against direct 27-multiplication code, existing rank-23 schemes, and higher-rank but simpler schemes that may execute faster.

Deployment Guidance

Treat the dataset as a structured candidate pool rather than a ready-to-use kernel collection. First filter by coefficient class and maximum bit width, then run exact verification and complete operation counts. Generate specialized code for AVX2, AVX-512, ARM NEON, or a specific GPU backend, and benchmark end-to-end behavior at production batch sizes. For AI workloads, verify that the 3×3 operation is actually on a critical path. If most time is spent in large GEMMs or attention kernels, the immediate value is likely limited to compiler research and future fixed-size operator generation.

The main significance is that rank 23 is no longer treated as a single isolated optimum. The dataset turns it into a searchable and classifiable space of algebraic structures. It offers a foundation for more efficient fixed-size multiplication kernels, but general acceleration still depends on rigorous addition counts, formal verification, and cross-hardware measurements.


Source: Hugging Face Daily Papers (2026-11-23)

— END —

Tags: #3×3 Matrix Multiplication #Bilinear Complexity #Rank 23 #Algorithm Discovery #GPU Kernels

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
🚀 Explore & Submit Works

Community Comments

Loading live comments and annotations…