小格式下的快速矩阵乘法:使用开源翻转图框架发现新方案
Fast Matrix Multiplication in Small Formats: Discovering New Schemes with an Open-Source Flip Graph Framework
AI总结:
本文提出了一种开源框架,通过翻转图方法发现新的快速矩阵乘法方案,提升了多个方案的乘法复杂度,并公开了所有发现的方案。
摘要:
本文介绍了一个开源的C++框架,用于利用翻转图方法发现快速矩阵乘法方案。该框架支持多种系数环——二进制(Z₂)、模三进制(Z₃)和整数三进制(Z_T = {-1,0,1})——并实现了固定维度和元维度的搜索操作符。通过高效的位级编码系数向量和OpenMP并行性,工具能够在商用硬件上进行大规模探索。研究涵盖了从(2×2×2)到(16×16×16)的680种方案,其中276种方案使用Z_T系数,117种使用整数系数。借助该框架,79种矩阵乘法方案的乘法复杂度(秩)得到了提升。值得注意的是,发现了一种新的4×4×10方案,仅需115次乘法,实现了ω≈2.80478,超越了Strassen的指数。此外,93种方案在三进制系数下被重新发现,此前仅在有理数或整数上已知,68种方案在整数系数下被重新发现,此前需要分数。所有工具和发现的方案均已公开,以促进可重复的研究。
英文摘要:
An open-source C++ framework for discovering fast matrix multiplication schemes using the flip graph approach is presented. The framework supports multiple coefficient rings -- binary ($\mathbb{Z}_2$), modular ternary ($\mathbb{Z}_3$) and integer ternary ($\mathbb{Z}_T = \{-1,0,1\}$) -- and implements both fixed-dimension and meta-dimensional search operators. Using efficient bit-level encoding of coefficient vectors and OpenMP parallelism, the tools enable large-scale exploration on commodity hardware. The study covers 680 schemes ranging from $(2 \times 2 \times 2)$ to $(16 \times 16 \times 16)$, with 276 schemes now in $\mathbb{Z}_T$ coefficients and 117 in integer coefficients. With this framework, the multiplicative complexity (rank) is improved for 79 matrix multiplication schemes. Notably, a new $4 \times 4 \times 10$ scheme requiring only 115 multiplications is discovered, achieving $ω\approx 2.80478$ and beating Strassen's exponent for this specific size. Additionally, 93 schemes are rediscovered in ternary coefficients that were previously known only over rationals or integers, and 68 schemes in integer coefficients that previously required fractions. All tools and discovered schemes are made publicly available to enable reproducible research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。