JAMPI: efficient matrix multiplication in Spark using Barrier Execution Mode

Tamas Foldi, Chris von Csefalvay, Nicolas A. Perez
6/27/2020
cs.DCcs.DSstat.ML

Official code: starschema/jampi-spark-dotmatrix (4 stars, Jupyter Notebook, BSD-3-Clause, last commit 2021-03-01).

Abstract

The new barrier mode in Apache Spark allows embedding distributed deep learning training as a Spark stage to simplify the distributed training workflow. In Spark, a task in a stage does not depend on any other tasks in the same stage, and hence it can be scheduled independently.

Show full abstract

However, several algorithms require more sophisticated inter-task communications, similar to the MPI paradigm. By combining distributed message passing (using asynchronous network IO), OpenJDK's new auto-vectorization and Spark's barrier execution mode, we can add non-map/reduce based algorithms, such as Cannon's distributed matrix multiplication to Spark. We document an efficient distributed matrix multiplication using Cannon's algorithm, which improves significantly on the performance of the existing MLlib implementation. Used within a barrier task, the algorithm described herein results in an up to 24 percent performance increase on a 10,000x10,000 square matrix with a significantly lower memory footprint. Applications of efficient matrix multiplication include, among others, accelerating the training and implementation of deep convolutional neural network based workloads, and thus such efficient algorithms can play a ground-breaking role in faster, more efficient execution of even the most complicated machine learning tasks.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Matrix Multiplication in Spark using Barrier Mode

41Jupyter Notebook, TeXMay 21, 20205 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{foldi2020jampi,
  title  = {JAMPI: efficient matrix multiplication in Spark using Barrier Execution Mode},
  author = {Tamas Foldi and Chris von Csefalvay and Nicolas A. Perez},
  year   = {2020},
  eprint = {2007.01811},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.01811}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.01811.svg)](https://codeofpaper.com/paper/2007.01811)

Discussion