[Paper Review] Bidiagonalization with Parallel Tiled Algorithms
This paper presents tiled bidiagonalization algorithms—BiDiag and R-BiDiag—using hierarchical reduction trees (FlatTS, FlatTT, Greedy, and Auto) to accelerate SVD computation on multicore and distributed systems. It demonstrates that R-BiDiag with Greedy trees achieves superior critical path length and performance, especially for tall and skinny matrices, with the Auto-adaptive tree enabling self-tuning for optimal scalability across diverse architectures and workloads.
We consider algorithms for going from a "full" matrix to a condensed "band bidiagonal" form using orthogonal transformations. We use the framework of "algorithms by tiles". Within this framework, we study: (i) the tiled bidiagonalization algorithm BiDiag, which is a tiled version of the standard scalar bidiagonalization algorithm; and (ii) the R-bidiagonalization algorithm R-BiDiag, which is a tiled version of the algorithm which consists in first performing the QR factorization of the initial matrix, then performing the band-bidiagonalization of the R-factor. For both bidiagonalization algorithms BiDiag and R-BiDiag, we use four main types of reduction trees, namely FlatTS, FlatTT, Greedy, and a newly introduced auto-adaptive tree, Auto. We provide a study of critical path lengths for these tiled algorithms, which shows that (i) R-BiDiag has a shorter critical path length than BiDiag for tall and skinny matrices, and (ii) Greedy based schemes are much better than earlier proposed variants with unbounded resources. We provide experiments on a single multicore node, and on a few multicore nodes of a parallel distributed shared-memory system, to show the superiority of the new algorithms on a variety of matrix sizes, matrix shapes and core counts.
Motivation & Objective
- Address the performance bottleneck in large-scale SVD computation by optimizing the bidiagonalization phase using tiled algorithms.
- Overcome limitations of prior shared-memory-only tiled bidiagonalization by enabling parallel distributed execution on multicore clusters.
- Improve critical path length and scalability by introducing new reduction tree strategies, including Greedy and Auto-adaptive trees.
- Evaluate and compare BiDiag and R-BiDiag in terms of algorithmic efficiency, communication overhead, and load balancing across matrix shapes and core counts.
- Develop a self-tuning Auto reduction tree that adapts to hardware characteristics and workload properties to maximize performance in practice.
Proposed method
- Design two tiled bidiagonalization algorithms: BiDiag (direct) and R-BiDiag (via QR factorization of input matrix followed by band-bidiagonalization of R).
- Implement four reduction tree types—FlatTS, FlatTT, Greedy, and Auto—within the DPLASMA framework using the PaRSEC runtime for task-based parallelism.
- Use Hierarchical QR (HQR) factorization to structure reduction trees that optimize data locality and reduce communication in shared and distributed memory systems.
- Introduce the Auto-adaptive tree that dynamically selects between TS (tile-to-scalar) and TT (tile-to-tile) kernels based on performance heuristics, minimizing communication and balancing load.
- Apply task-based scheduling with dynamic load balancing to handle irregular workloads and varying kernel speeds (e.g., faster TS vs. slower TT kernels).
- Implement and evaluate the algorithms on both single-node and multi-node shared-memory systems using real-world matrix sizes and shapes.
Experimental results
Research questions
- RQ1How do different reduction tree structures (FlatTS, FlatTT, Greedy, Auto) affect the critical path length and performance of tiled bidiagonalization?
- RQ2What is the relative performance advantage of R-BiDiag over BiDiag in terms of critical path length and scalability, especially for tall and skinny matrices?
- RQ3Can a self-adaptive reduction tree (Auto) outperform fixed-tree strategies across diverse matrix shapes and hardware configurations?
- RQ4How does the proposed tiled bidiagonalization with Greedy trees compare to previous methods (e.g., FlatTS) in terms of theoretical critical path complexity?
- RQ5To what extent does the new implementation scale on distributed multicore systems compared to existing SVD libraries like ScaLAPACK and Elemental?
Key findings
- R-BiDiag with Greedy trees achieves a critical path length of Θ(q log₂p) for p×q tile matrices with p ≥ q, significantly improving upon the Θ(pq) complexity of FlatTS and FlatTT.
- For tall and skinny matrices (p = Ω(q¹⁺ᵅ), 0 ≤ α < 1), R-BiDiagGreedy asymptotically outperforms BiDiagGreedy by a factor of 1/(1 + α/2), with the ratio approaching 1 as α → 0.
- The Auto-adaptive tree outperforms all fixed-tree variants in practice, sustaining strong scaling up to 25 nodes (600 cores), while FlatTS saturates after 10 nodes due to limited parallelism.
- On weak scaling tests with matrices of size (80,000×2,000) and (100,000×10,000), Auto achieves up to 10 TFlop/s, reaching 400–475 GFlop/s per node, outperforming ScaLAPACK and Elemental.
- The DPLASMA-based implementation with R-BiDiag and Auto trees achieves better scalability than ScaLAPACK and Elemental, especially due to efficient HQR-based QR and reduced communication in the BiDiag phase.
- The study confirms that R-BiDiag is not only more efficient in critical path length for tall matrices but also enables better overall performance in distributed environments, particularly when combined with adaptive task scheduling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.