Skip to main content
QUICK REVIEW

[Paper Review] Faster and Cheaper: Parallelizing Large-Scale Matrix Factorization on GPUs

Wei Tan, Liangliang Cao|arXiv (Cornell University)|Mar 11, 2016
Matrix Theory and AlgorithmsComputer Science26 references6 citations
TL;DR

This paper presents cuMF, a CUDA-based matrix factorization library that accelerates large-scale matrix factorization using single or multiple GPUs by optimizing memory access, combining data and model parallelism, and employing a topology-aware parallel reduction. cuMF achieves 6–10× speedup and 33–100× cost efficiency over state-of-the-art distributed CPU systems on a single machine with four GPUs.

ABSTRACT

Matrix factorization (MF) is employed by many popular algorithms, e.g., collaborative filtering. The emerging GPU technology, with massively multicore and high intra-chip memory bandwidth but limited memory capacity, presents an opportunity for accelerating MF much further when appropriately exploiting the GPU architectural characteristics. This paper presents cuMF, a CUDA-based matrix factorization library that implements memory-optimized alternate least square (ALS) method to solve very large-scale MF. CuMF uses a variety set of techniques to maximize the performance on either single or multiple GPUs. These techniques include smart access of sparse data leveraging GPU memory hierarchy, using data parallelism in conjunction with model parallelism, minimizing the communication overhead between computing units, and utilizing a novel topology-aware parallel reduction scheme. With only a single machine with four Nvidia GPU cards, cuMF can be 6-10 times as fast, and 33-100 times as cost-efficient, compared with the state-of-art distributed CPU solutions. Moreover, this cuMF can solve the largest matrix factorization problem ever reported yet in current literature, while maintaining impressively good performance.

Motivation & Objective

  • Address the growing need for scalable and fast matrix factorization (MF) in industry-scale recommendation systems, which now involve up to 100+ billion ratings and billions of users.
  • Overcome the limitations of existing CPU-based distributed systems, which require large clusters (e.g., 50 nodes) and suffer from high latency and cost.
  • Leverage GPU architecture—especially high memory bandwidth and massive parallelism—despite its constraints in memory capacity and the memory-bound nature of sparse MF workloads.
  • Design a system that maximizes GPU utilization for sparse, large-scale MF by combining algorithmic and architectural optimizations.
  • Demonstrate that a single-machine GPU solution can outperform large-scale CPU clusters in both speed and cost-efficiency for MF workloads.

Proposed method

  • Implement an optimized, memory-access-aware version of the alternating least squares (ALS) algorithm tailored for sparse matrix factorization on GPUs.
  • Apply techniques such as reducing discontiguous memory access, caching hotspot variables in faster memory (e.g., shared or register memory), and aggressive register usage to improve memory bandwidth utilization.
  • Combine data parallelism (partitioning the rating matrix across GPUs) with model parallelism (distributing factor matrices) to scale across multiple GPUs.
  • Design a novel topology-aware parallel reduction scheme that minimizes inter-GPU communication overhead by exploiting the physical GPU interconnect topology.
  • Use a hybrid execution model where computation and communication are overlapped to hide latency and improve overall throughput.
  • Integrate these optimizations into a CUDA-based library (cuMF) that supports both single-GPU and multi-GPU deployments.

Experimental results

Research questions

  • RQ1Can GPU-based acceleration significantly outperform distributed CPU systems in speed and cost-efficiency for large-scale matrix factorization?
  • RQ2How can memory access patterns in sparse matrix factorization be optimized to better utilize GPU memory hierarchy and avoid bandwidth bottlenecks?
  • RQ3What is the optimal combination of data and model parallelism for scaling ALS-based MF across multiple GPUs while minimizing communication overhead?
  • RQ4How does a topology-aware parallel reduction scheme improve performance in multi-GPU matrix factorization compared to naive or non-topology-aware reduction?
  • RQ5Can a single-machine GPU system solve the largest reported matrix factorization problems with better performance and lower cost than existing cluster-based CPU solutions?

Key findings

  • cuMF achieves 6–10× speedup over state-of-the-art distributed CPU systems (e.g., NOMAD, SparkALS, Factorbird) on the same benchmark workloads using only a single machine with four GPUs.
  • cuMF reduces the overall cost of running large-scale MF by 33–100× compared to the baseline CPU systems, due to faster execution and fewer required nodes.
  • The system successfully solves the largest matrix factorization problem reported in the literature to date, demonstrating scalability beyond previous limits.
  • Memory access optimizations, including reduced discontiguous access and strategic use of registers and shared memory, bring cuMF’s performance closer to the GPU’s theoretical roofline.
  • The topology-aware parallel reduction scheme significantly reduces inter-GPU communication latency, enabling efficient scaling across multiple GPUs.
  • cuMF maintains high performance and scalability even on extremely large datasets—such as those from Facebook with over 100 billion ratings—where prior CPU-based systems struggle or fail to scale.

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.