Skip to main content
QUICK REVIEW

[Paper Review] PL-NMF: Parallel Locality-Optimized Non-negative Matrix Factorization

Gordon Euhyun Moon, Aravind Sukumaran-Rajam|arXiv (Cornell University)|Apr 16, 2019
Advanced Image and Video Retrieval TechniquesComputer Science27 references7 citations
TL;DR

This paper proposes PL-NMF, a parallel, locality-optimized Non-negative Matrix Factorization (NMF) algorithm based on the HALS scheme, which enhances data locality through algorithmic reordering and 3D tiling to reduce memory bandwidth bottlenecks. It achieves up to 287.1× speedup over state-of-the-art CPU and GPU NMF implementations by minimizing data movement while maintaining high convergence accuracy.

ABSTRACT

Non-negative Matrix Factorization (NMF) is a key kernel for unsupervised dimension reduction used in a wide range of applications, including topic modeling, recommender systems and bioinformatics. Due to the compute-intensive nature of applications that must perform repeated NMF, several parallel implementations have been developed in the past. However, existing parallel NMF algorithms have not addressed data locality optimizations, which are critical for high performance since data movement costs greatly exceed the cost of arithmetic/logic operations on current computer systems. In this paper, we devise a parallel NMF algorithm based on the HALS (Hierarchical Alternating Least Squares) scheme that incorporates algorithmic transformations to enhance data locality. Efficient realizations of the algorithm on multi-core CPUs and GPUs are developed, demonstrating significant performance improvement over existing state-of-the-art parallel NMF algorithms.

Motivation & Objective

  • To address the performance bottleneck in parallel NMF caused by high data movement costs in modern memory hierarchies.
  • To improve the efficiency of NMF algorithms by optimizing data locality without compromising convergence quality.
  • To develop a scalable, high-performance NMF implementation for multi-core CPUs and GPUs using locality-aware algorithmic transformations.
  • To systematically analyze data movement overheads and derive optimal tile sizes for performance.
  • To outperform existing state-of-the-art parallel NMF implementations in both speed and convergence efficiency.

Proposed method

  • Reformulates the FAST-HALS NMF algorithm using the associativity of addition to reorder additive contributions in matrix updates, enabling efficient 3D tiling.
  • Applies 3D tiling to the core computation of NMF—specifically, the $WH$ and $H^TH$ updates—to improve data reuse and reduce off-chip memory traffic.
  • Designs a two-phase update strategy for $W$ that replaces iterative dense matrix-vector multiplications with optimized dense matrix-matrix multiplications (DMM).
  • Uses the same BLAS primitives (e.g., cuBLAS on GPU, MKL on CPU) across all implementations for fair performance comparison.
  • Derives a data movement cost model as a function of tile size to guide optimal tile selection for different hardware platforms.
  • Implements PL-NMF on both multi-core CPUs and GPUs, with optimized memory access patterns and thread-level parallelism.

Experimental results

Research questions

  • RQ1How can data locality be systematically improved in parallel NMF to reduce memory bandwidth overhead?
  • RQ2What algorithmic transformations enable effective 3D tiling in the NMF computation without altering the mathematical result?
  • RQ3How does the choice of tile size impact data movement and overall performance in NMF workloads?
  • RQ4Can a locality-optimized NMF implementation achieve significant speedup over existing state-of-the-art parallel NMF algorithms?
  • RQ5To what extent does the proposed approach maintain convergence quality compared to standard HALS and other NMF variants?

Key findings

  • PL-NMF-cpu achieved 3.07×, 3.06×, 5.81×, 3.02×, and 3.07× speedup per iteration on 20 Newsgroups, TDT2, Reuters, AT&T, and PIE datasets with K=240, respectively.
  • PL-NMF-gpu achieved 3.49×, 9.74×, 26.41×, and 287.1× speedup over PL-NMF-cpu, planc-HALS-cpu, bionmf-MU-gpu, and planc-MU-cpu on the PIE dataset when reaching a relative error of 0.12.
  • The PL-NMF-cpu implementation reduced the time for updating $W$ by replacing iterative DMV operations with optimized DMM and phased computation, cutting the total time from 2.039s to 0.033s on the 20 Newsgroups dataset.
  • The data movement cost model enabled optimal tile size selection, which was critical for achieving high performance on both CPUs and GPUs.
  • PL-NMF maintained the same solution quality as the original FAST-HALS and planc-HALS-cpu, confirming that locality optimization does not degrade convergence accuracy.
  • The performance gains were most pronounced on dense matrices, with the highest speedup (287.1×) observed on the PIE image dataset, highlighting the effectiveness of the tiling strategy in memory-bound workloads.

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.