Abstract: Singular Value Decomposition (SVD) is a cornerstone of modern data analysis, yet its $O(mn \min(n, m))$ computational complexity poses a significant challenge for large-scale datasets. This paper introduces a hierarchical "merge-and-truncate" (MAT) algorithm tailored for low-rank matrices. Unlike traditional distributed SVD methods that assume specific matrix geometries, the MAT approach is shape-agnostic, utilizing both row-wise and column-wise partitioning. By merging local SVD results through a binary tree and applying strategic truncation, the algorithm achieves up to a 4x speedup on single-core processors with minimal loss in accuracy. Experimental results on CFD and facial recognition datasets demonstrate the algorithm's efficiency and scalability.
Introduction
Singular Value Decomposition (SVD) is essential for tasks ranging from dimensionality reduction to fluid dynamics. However, as datasets enter the "Big Data" regime, the super-linear growth of SVD's computational cost becomes a primary bottleneck. While many large-scale matrices are dense, they often exhibit a "low-rank" structure where most information is concentrated in a few principal components. Existing distributed SVD algorithms frequently rely on the matrix being either "tall and skinny" or "short and fat." This research addresses the need for a flexible, shape-independent algorithm capable of processing massive, nearly square matrices by decomposing them into manageable hierarchical blocks.
Methods
The proposed Hierarchical Block-Based SVD utilizes a Merge-and-Truncate (MAT) strategy. The process begins by partitioning the matrix into blocks along both dimensions. Each block undergoes an initial local SVD. These local results are then merged pairwise following a binary tree structure.
To maintain efficiency and prevent data volume explosion, the algorithm applies "Smart Truncation" at every merge step, discarding singular values and vectors below a predefined threshold ($\gamma$). A "QR Trick"—combining QR decomposition with SVD on smaller intermediate matrices—is employed to avoid the high cost of full SVDs during merging. Finally, an optional power-iteration refinement step can be used to polish the accuracy of the resulting singular values.
Key Results
The MAT algorithm was evaluated using CFD simulation data (velocity and density) and the ORL facial image database. A key finding is that partitioning allows the algorithm to break the super-linear cost barrier; performing multiple small SVDs and merging them is faster than a single large SVD.
On velocity datasets, the MAT algorithm demonstrated a roughly 4x speedup over standard SVD implementations. Accuracy remained high, with approximation errors typically under 3%. The results indicate that speedup is heavily dependent on truncation; without it, the overhead of merging would exceed the gains from partitioning. Furthermore, the algorithm's performance is sensitive to block size, with the number of columns in a block serving as a critical tuning parameter for maximizing throughput.
Conclusion
The hierarchical MAT algorithm provides a robust framework for accelerating SVD on low-rank matrices without sacrificing significant accuracy. Its shape-agnostic nature makes it a versatile tool for diverse datasets. Future research will focus on developing automated methods for determining optimal block sizes, establishing rigorous mathematical error bounds, and integrating randomized SVD techniques to further enhance performance.
Summary updated