English

A Tight I/O Lower Bound for Matrix Multiplication

Computational Complexity 2019-02-07 v2

Abstract

A tight lower bound for required I/O when computing an ordinary matrix-matrix multiplication on a processor with two layers of memory is established. Prior work obtained weaker lower bounds by reasoning about the number of segments needed to perform C:=ABC:=AB, for distinct matrices AA, BB, and CC, where each segment is a series of operations involving MM reads and writes to and from fast memory, and MM is the size of fast memory. A lower bound on the number of segments was then determined by obtaining an upper bound on the number of elementary multiplications performed per segment. This paper follows the same high level approach, but improves the lower bound by (1) transforming algorithms for MMM so that they perform all computation via fused multiply-add instructions (FMAs) and using this to reason about only the cost associated with reading the matrices, and (2) decoupling the per-segment I/O cost from the size of fast memory. For n×nn \times n matrices, the lower bound's leading-order term is 2n3/M2n^3/\sqrt{M}. A theoretical algorithm whose leading terms attains this is introduced. To what extent the state-of-the-art Goto's Algorithm attains the lower bound is discussed.

Keywords

Cite

@article{arxiv.1702.02017,
  title  = {A Tight I/O Lower Bound for Matrix Multiplication},
  author = {Tyler Michael Smith and Bradley Lowery and Julien Langou and Robert A. van de Geijn},
  journal= {arXiv preprint arXiv:1702.02017},
  year   = {2019}
}
R2 v1 2026-06-22T18:11:35.722Z