跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 数学软件

arXiv:2611.38484 (cs)
[提交于 2026年11月28日]

标题:Fast matrix multiplication: mixing fast, accurate schemes over a vendor GEMM, chosen by a calibrated planner

作者:Greg Sidebottom
查看论文《Fast matrix multiplication: mixing fast, accurate schemes over a vendor GEMM, chosen by a calibrated planner》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Fast matrix multiplication is in practice a few levels of a Strassen-like scheme over a vendor's General Matrix Multiplication (GEMM) routine. We treat each scheme as an operator that takes a problem one level down, and let every level of a plan use a different one. On Apple's M4 Pro, over Accelerate's GEMM, a calibrated planner chooses among accurate forms of the $\langle 2\times2\times2:7\rangle$, $\langle 4\times4\times4:48\rangle$ and $\langle 3\times3\times6:40\rangle$ schemes. A level runs as three fused passes over memory, so its cost is the blocks it moves, not its arithmetic. At $n=13824$ the plans run $1.71\times$ (f32) and $1.88\times$ (f64) faster than Accelerate's GEMM with 0.38 and 0.50 of its error on well-scaled inputs. At 6912 and 13824 they are 5-16% faster than the best plans built from the $\langle 4\times4\times4:48\rangle$ scheme alone, with 0.57-0.75 of their error. The planner's error model predicts a plan's error from where its levels sit (a level's own rounding is multiplied by the levels above it), and the planner uses it to choose between plans of equal speed. A conventional implementation of Strassen-Winograd (one block operation at a time), the algorithm of IBM ESSL's _GEMMS, over the same GEMM is 1.21-1.54 times slower than the plans and has 1.9-9.7 times their error; fused $2\times2$ levels, which the library also has, are level with the $4\times4$ scheme at half the depth. On badly scaled inputs the plans need exact power-of-two prescaling, at up to 4% of the time, and inputs whose magnitudes cross between blocks defeat them. In f32, sharing a level's products with the GPU brings the speedup over Accelerate to $3.1\times$.
评论: 50 pages, 12 figures, 21 tables. Code and data: https://github.com/gsidebottom/logic (directory matmul/fastmm)
主题: 数学软件 (cs.MS); 性能 (cs.PF)
引用方式: arXiv:2611.38484 [cs.MS]
  (或者 arXiv:2611.38484v1 [cs.MS] 对于此版本)
  https://doi.org/10.48550/arXiv.2611.38484

提交历史

来自:Greg Sidebottom
[v1] 2026年11月28日 星期六 03:42:54 UTC (72 KB)
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.MS
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-12
切换浏览方式为:
cs
cs.PF

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站