Skip to main content
QUICK REVIEW

[Paper Review] Communication-optimal parallel and sequential QR and LU factorizations

James Demmel, Laura Grigori|arXiv (Cornell University)|Aug 19, 2008
Interconnection Networks and SystemsComputer Science33 references34 citations
TL;DR

This paper presents communication-optimal parallel and sequential QR and LU factorization algorithms—TSQR and CAQR—that minimize data movement (latency and bandwidth) in both distributed and hierarchical memory systems. By extending communication lower bounds from matrix multiplication to QR and LU decompositions, the authors prove that their algorithms achieve optimal communication complexity (up to polylogarithmic factors), significantly reducing message counts and data transfers compared to LAPACK and ScaLAPACK, while maintaining numerical stability equivalent to Householder QR.

ABSTRACT

We present parallel and sequential dense QR factorization algorithms that are both optimal (up to polylogarithmic factors) in the amount of communication they perform, and just as stable as Householder QR. We prove optimality by extending known lower bounds on communication bandwidth for sequential and parallel matrix multiplication to provide latency lower bounds, and show these bounds apply to the LU and QR decompositions. We not only show that our QR algorithms attain these lower bounds (up to polylogarithmic factors), but that existing LAPACK and ScaLAPACK algorithms perform asymptotically more communication. We also point out recent LU algorithms in the literature that attain at least some of these lower bounds.

Motivation & Objective

  • Address the growing performance gap between floating-point operations and communication costs in high-performance computing.
  • Identify and close the communication gap in standard dense QR and LU factorizations used in scientific computing.
  • Develop algorithms that are both numerically stable and communication-avoiding, matching theoretical lower bounds on data movement.
  • Prove that communication lower bounds for matrix multiplication extend to QR and LU factorizations, enabling optimality analysis.
  • Demonstrate that existing LAPACK and ScaLAPACK implementations perform asymptotically more communication than necessary.

Proposed method

  • Extend known communication lower bounds for matrix multiplication (Hong & Kung, Irony et al.) to include latency bounds applicable to QR and LU factorizations.
  • Design TSQR (Tall Skinny QR) for matrices with many more rows than columns, using a tree-based reduction to minimize messages.
  • Develop CAQR (Communication-Avoiding QR) for general rectangular matrices using a recursive, block-based approach that reduces data movement.
  • Use Jacobian-based analysis to prove that communication cannot be reduced below certain bounds without losing information, establishing theoretical optimality.
  • Optimize algorithm layouts (block sizes, processor grids) to minimize communication in both sequential and parallel settings.
  • Model performance using a unified computation model: time = flops×time_per_flop + words_moved×(1/bandwidth) + messages×latency, excluding overlap of communication and computation.

Experimental results

Research questions

  • RQ1Can communication-avoiding algorithms for QR and LU factorizations achieve the theoretical lower bounds on data movement?
  • RQ2Do existing LAPACK and ScaLAPACK implementations perform asymptotically more communication than necessary?
  • RQ3Can communication lower bounds derived for matrix multiplication be extended to QR and LU factorizations?
  • RQ4What is the minimal number of messages and words moved in both sequential and parallel QR and LU factorizations?
  • RQ5Can communication-avoiding algorithms maintain numerical stability comparable to Householder QR?

Key findings

  • TSQR reduces the number of messages in parallel QR factorization to log P, which is optimal and a factor of 2n fewer than ScaLAPACK’s PDGEQRF.
  • CAQR reduces message count to Θ(√(nP/m)) in parallel, which is optimal and a factor of Θ(√(mn/P)) fewer than ScaLAPACK.
  • In sequential mode, TSQR transfers only 2mn words between fast and slow memory, which is optimal and a factor of mn/(4W) fewer than blocked Householder QR.
  • CAQR reduces sequential data movement to Θ(mn²/√W), which is optimal and a factor of Θ(m/√W) fewer than blocked Householder QR.
  • CAQR requires only 12mn²/W³ᐟ² messages in sequential mode, which is optimal and significantly fewer than Householder QR.
  • The paper proves that communication lower bounds for matrix multiplication apply to QR and LU factorizations, enabling formal optimality proofs for the proposed algorithms.

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.