Skip to main content
QUICK REVIEW

[Paper Review] Efficient Distributed-Memory Parallel Matrix-Vector Multiplication with Wide or Tall Unstructured Sparse Matrices

Jonathan Eckstein, Gyorgy Matyasfalvi|arXiv (Cornell University)|Dec 3, 2018
Parallel Computing and Optimization TechniquesComputer Science5 references3 citations
TL;DR

This paper proposes a nonzero-based partitioning method for distributed-memory parallel matrix-vector multiplication in sparse, wide or tall matrices, distributing nonzeros rather than rows/columns to achieve balanced workloads and low communication costs. The approach enables efficient SpMV and SpVTM operations with minimal preprocessing and superior load balancing, especially on matrices with dense columns, outperforming column partitioning in unbalanced cases while maintaining low overhead.

ABSTRACT

This paper presents an efficient technique for matrix-vector and vector-transpose-matrix multiplication in distributed-memory parallel computing environments, where the matrices are unstructured, sparse, and have a substantially larger number of columns than rows or vice versa. Our method allows for parallel I/O, does not require extensive preprocessing, and has the same communication complexity as matrix-vector multiplies with column or row partitioning. Our implementation of the method uses MPI. We partition the matrix by individual nonzero elements, rather than by row or column, and use an "overlapped" vector representation that is matched to the matrix. The transpose multiplies use matrix-specific MPI communicators and reductions that we show can be set up in an efficient manner. The proposed technique achieves a good work per processor balance even if some of the columns are dense, while keeping communication costs relatively low.

Motivation & Objective

  • Address the challenge of load imbalance in distributed-memory SpMV and SpVTM for unstructured sparse matrices, particularly when some columns are dense.
  • Develop a parallel algorithm that maintains low communication complexity and avoids extensive preprocessing.
  • Achieve better work distribution and scalability than traditional row or column partitioning, especially for matrices with irregular sparsity patterns.
  • Enable efficient I/O and vector operations in large-scale HPC environments using MPI.
  • Ensure robust performance across varying processor counts and matrix sparsity structures.

Proposed method

  • Partition the sparse matrix by individual nonzero elements rather than by rows or columns, allowing even distribution of computational work across processors.
  • Use an 'overlapped' vector representation that aligns with the nonzero-based matrix partitioning to reduce communication and memory overhead.
  • Replicate short vectors (of size m) across all processors to minimize communication during SpMV and SpVTM operations.
  • Construct matrix-specific MPI communicators and use optimized reductions for transpose operations to minimize latency.
  • Apply a cover-based column assignment strategy where columns may be shared across processors, enabling load balancing even with dense columns.
  • Use a hybrid approach that dynamically adjusts data distribution based on sparsity patterns to maintain efficiency.

Experimental results

Research questions

  • RQ1Can nonzero-based partitioning achieve better load balancing than column or row partitioning in distributed-memory SpMV for unstructured sparse matrices?
  • RQ2Does the proposed method maintain low communication complexity comparable to standard partitioning techniques?
  • RQ3How does the method perform on matrices with highly unbalanced column densities, such as document-term matrices?
  • RQ4To what extent does the method reduce the need for preprocessing compared to traditional approaches?
  • RQ5Can the method scale effectively across large numbers of processors while maintaining work balance?

Key findings

  • The nonzero partitioning (NzP) method achieves significantly better load balance than column partitioning (ColP), especially for matrices with dense columns, reducing imbalance from 1,585% (ColP at 32 cores) to 1,124% (NzP at 32 cores) on the News20 matrix in native order.
  • In the worst-case scenario for vector operations, the complexity is O(Z/P + log P), which remains non-dominant compared to SpMV complexity, ensuring overall performance is not degraded.
  • For the random sparse matrix, NzP maintains low imbalance (22.50% at 512 cores) and scales well, while ColP shows increasing imbalance with higher processor counts.
  • The method reduces communication costs to the same level as column partitioning while avoiding the need for preprocessing to balance workloads.
  • Empirical results show that the overhead from unbalanced vector operations does not significantly impact overall computation time in first-order optimization methods like conjugate gradient.
  • The approach is robust across different sparsity patterns and maintains good scalability, even at 512 processors, with overlap zones increasing only moderately.

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.