Skip to main content
QUICK REVIEW

[Paper Review] Out-of-core singular value decomposition

Vadim Demchik, Miroslav Bačák|arXiv (Cornell University)|Jul 15, 2019
Matrix Theory and AlgorithmsComputer Science15 references5 citations
TL;DR

This paper presents the ExB SVD Library, a fully out-of-core, scalable, and parallelizable randomized singular value decomposition (SVD) solution that enables efficient SVD factorization of arbitrarily large dense and sparse matrices on systems with minimal main memory. By leveraging block cyclic data distribution and persistent external storage, it supports memory-efficient processing, automatic load balancing, precision flexibility, and resumable computation, enabling large-scale SVD on commodity hardware without requiring high-end supercomputers.

ABSTRACT

Singular value decomposition (SVD) is a standard matrix factorization technique that produces optimal low-rank approximations of matrices. It has diverse applications, including machine learning, data science and signal processing. However, many common problems involve very large matrices that cannot fit in the main memory of commodity computers, making it impractical to use standard SVD algorithms that assume fast random access or large amounts of space for intermediate calculations. To address this issue, we have implemented an out-of-core (external memory) randomized SVD solution that is fully scalable and efficiently parallelizable. This solution factors both dense and sparse matrices of arbitrarily large size within arbitrarily small memory limits, efficiently using out-of-core storage as needed. It uses an innovative technique for partitioning matrices that lends itself to out-of-core and parallel processing, as well as memory and I/O use planning, automatic load balancing, performance tuning, and makes possible a number of other practical enhancements to the current state-of-the-art. Furthermore, by using persistent external storage (generally HDDs or SSDs), users can resume interrupted operations without having to recalculate previously performed steps, solving a major practical problem in factoring very large matrices.

Motivation & Objective

  • To address the growing challenge of performing SVD on very large matrices that exceed main memory capacity on commodity hardware.
  • To design a scalable, parallelizable, and fault-tolerant out-of-core SVD algorithm that operates efficiently under extreme memory constraints.
  • To enable practical SVD computation on systems with as little as 1 KB of main memory per matrix, using persistent storage (HDD/SSD) for intermediate data.
  • To support variable precision (single, double, half-precision) and hybrid sparse/dense matrix operations without data conversion.
  • To provide recoverability by persisting partial results, allowing interrupted computations to resume without recomputation.

Proposed method

  • The method uses block cyclic data distribution to partition large matrices into small sub-matrices, enabling all operations to be performed on a small, manageable portion of data in main memory at any time.
  • It employs a randomized SVD approximation algorithm based on Halko, Martinsson, and Tropp, adapted for out-of-core execution with minimal core memory usage.
  • The library performs pre-computation memory usage estimation and task scheduling to prevent memory exhaustion and enable permissive task prioritization.
  • It supports direct cross-precision operations (single, double, half-precision) and 32/64-bit indices for sparse matrices, minimizing data conversion overhead.
  • The system uses persistent external storage (HDD/SSD) to store intermediate results, enabling recovery after interruptions.
  • It includes automatic load balancing and supports efficient multi-threaded data format conversion for input/output operations.

Experimental results

Research questions

  • RQ1Can a randomized SVD algorithm be made fully out-of-core to handle matrices far exceeding main memory capacity?
  • RQ2How can memory usage be predicted and managed in real-time during SVD computation on systems with minimal RAM?
  • RQ3To what extent does reduced precision (half, single) affect the accuracy and stability of randomized SVD in out-of-core settings?
  • RQ4Can out-of-core SVD be made fault-tolerant by persisting intermediate results to disk and enabling resumption after interruption?
  • RQ5How efficiently can block cyclic data distribution be adapted for out-of-core SVD compared to traditional in-core or I/O-inefficient approaches?

Key findings

  • The ExB SVD Library successfully performs rank-50 SVD approximations on the Lenna image using only 1 KB of main memory per matrix, demonstrating feasibility under extreme memory constraints.
  • Image reconstructions using half, single, and double precision show negligible visual differences, indicating that reduced precision does not significantly degrade result quality.
  • The library achieves stable and accurate SVD approximations even with half-precision floating-point arithmetic, suggesting strong robustness to numerical noise and potential for GPU acceleration.
  • The system supports resumable computation: interrupted operations can be resumed from partial results without recomputing completed steps, significantly improving fault tolerance.
  • Memory prediction and task decomposition mechanisms prevent memory exhaustion and allow efficient scheduling, enabling operation in constrained environments like Docker containers.
  • The library’s support for hybrid sparse/dense operations and direct cross-precision arithmetic reduces data movement and improves I/O efficiency.

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.