Skip to main content
QUICK REVIEW

[Paper Review] Strong Scaling of Matrix Multiplication Algorithms and Memory-Independent Communication Lower Bounds

Grey Ballard, James Demmel|arXiv (Cornell University)|Feb 14, 2012
Stochastic Gradient Optimization TechniquesComputer Science7 references16 citations
TL;DR

This paper establishes memory-independent communication lower bounds for classical and Strassen-based matrix multiplication algorithms in distributed-memory systems, proving that perfect strong scaling—linear speedup in communication cost with processor count—cannot exceed thresholds determined by problem size and local memory. The bounds show that beyond these thresholds, communication costs scale sublinearly, limiting strong scaling even for optimal algorithms.

ABSTRACT

A parallel algorithm has perfect strong scaling if its running time on P processors is linear in 1/P, including all communication costs. Distributed-memory parallel algorithms for matrix multiplication with perfect strong scaling have only recently been found. One is based on classical matrix multiplication (Solomonik and Demmel, 2011), and one is based on Strassen's fast matrix multiplication (Ballard, Demmel, Holtz, Lipshitz, and Schwartz, 2012). Both algorithms scale perfectly, but only up to some number of processors where the inter-processor communication no longer scales. We obtain a memory-independent communication cost lower bound on classical and Strassen-based distributed-memory matrix multiplication algorithms. These bounds imply that no classical or Strassen-based parallel matrix multiplication algorithm can strongly scale perfectly beyond the ranges already attained by the two parallel algorithms mentioned above. The memory-independent bounds and the strong scaling bounds generalize to other algorithms.

Motivation & Objective

  • To close the gap between known communication upper bounds and theoretical lower bounds for matrix multiplication algorithms.
  • To analyze the limits of perfect strong scaling in distributed-memory matrix multiplication, particularly for classical and Strassen-based algorithms.
  • To derive memory-independent communication lower bounds that generalize to other algorithms beyond matrix multiplication.
  • To identify the fundamental trade-offs between communication cost, problem size, and local memory that constrain strong scaling performance.

Proposed method

  • Derives memory-independent communication lower bounds using graph-theoretic techniques based on edge expansion in computation DAGs.
  • Applies the model of distributed-memory computation where bandwidth cost is proportional to words communicated and latency to messages sent.
  • Uses Strassen’s algorithm’s recursive structure and the exponent ω₀ = log₂7 ≈ 2.81 to derive bounds for fast matrix multiplication.
  • Proves that for sufficiently large P, any communication-optimal algorithm must move at least Ω(n² / P²/ω₀) words in Strassen-based algorithms.
  • Extends the analysis to classical matrix multiplication, showing a lower bound of Ω(n² / P²/³) under similar assumptions.
  • Generalizes the bounds to other algorithms of the form f_ij(g_ijk(Mem(a), Mem(b))), including LU, Cholesky, and sparse matrix operations.

Experimental results

Research questions

  • RQ1What is the theoretical limit of communication cost for Strassen-based matrix multiplication in a distributed-memory setting?
  • RQ2Can perfect strong scaling be achieved beyond a certain number of processors, and if not, why?
  • RQ3How do memory-independent communication bounds compare to memory-dependent bounds in determining the strong scaling ceiling?
  • RQ4To what extent can these communication lower bounds be generalized to other dense and sparse linear algebra algorithms?
  • RQ5What is the relationship between problem size, local memory, and the maximum number of processors for which perfect strong scaling is possible?

Key findings

  • The paper establishes a memory-independent communication lower bound of Ω(n² / P²/ω₀) for Strassen-based matrix multiplication, where ω₀ = log₂7 ≈ 2.81.
  • For classical matrix multiplication, the memory-independent lower bound is Ω(n² / P²/³), which dominates beyond a certain processor count.
  • Perfect strong scaling—linear reduction in running time with increasing processors—can only be achieved up to P_max = Θ(P_min^{ω₀/2}) for Strassen and P_max = Θ(P_min^{3/2}) for classical multiplication.
  • The strong scaling range ends precisely when the memory-dependent latency bound becomes constant, indicating a hard limit due to bandwidth scaling.
  • Beyond the threshold P_max, communication cost scales as 1/P²/ω₀ (Strassen) or 1/P²/³ (classical), not 1/P, thus breaking perfect strong scaling.
  • The derived bounds generalize to other algorithms, including LU/Cholesky decomposition, sparse matrix-matrix multiplication, and all-pairs shortest paths, under the same computational model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.