Communication costs of Strassen's matrix multiplication

  • Authors:
  • Grey Ballard;James Demmel;Olga Holtz;Oded Schwartz

  • Affiliations:
  • University of California, Berkeley, CA;University of California, Berkeley, CA;Technische Universitat Berlin, Germany;University of California, Berkeley, CA

  • Venue:
  • Communications of the ACM
  • Year:
  • 2014

Quantified Score

Hi-index 48.22

Visualization

Abstract

Algorithms have historically been evaluated in terms of the number of arithmetic operations they performed. This analysis is no longer sufficient for predicting running times on today's machines. Moving data through memory hierarchies and among processors requires much more time (and energy) than performing computations. Hardware trends suggest that the relative costs of this communication will only increase. Proving lower bounds on the communication of algorithms and finding algorithms that attain these bounds are therefore fundamental goals. We show that the communication cost of an algorithm is closely related to the graph expansion properties of its corresponding computation graph. Matrix multiplication is one of the most fundamental problems in scientific computing and in parallel computing. Applying expansion analysis to Strassen's and other fast matrix multiplication algorithms, we obtain the first lower bounds on their communication costs. These bounds show that the current sequential algorithms are optimal but that previous parallel algorithms communicate more than necessary. Our new parallelization of Strassen's algorithm is communication-optimal and outperforms all previous matrix multiplication algorithms.