JAMPI: Efficient Matrix Multiplication in Spark Using Barrier Execution Mode
Open Access
- 5 November 2020
- journal article
- research article
- Published by MDPI AG in Big Data and Cognitive Computing
- Vol. 4 (4) , 32
Abstract
The new barrier mode in Apache Spark allows for 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. 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 significantly improves on the performance of the existing MLlib implementation. Used within a barrier task, the algorithm described herein results in an up to 24% performance increase on a 10,000 × 10,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 the faster and more efficient execution of even the most complicated machine learning tasks.Keywords
All Related Versions
This publication has 28 references indexed in Scilit:
- Prediction of human protein subcellular localization using deep learningJournal of Parallel and Distributed Computing, 2018
- Deep Learning Trends for Focal Brain Pathology Segmentation in MRI2016
- Matrix Computations and Optimization in Apache Spark2016
- Deep learning for visual understanding: A reviewNeurocomputing, 2016
- On Deep Learning for Trust-Aware Recommendations in Social NetworksIEEE Transactions on Neural Networks and Learning Systems, 2016
- A deep learning framework for modeling structural features of RNA-binding protein targetsNucleic Acids Research, 2015
- Collaborative Deep Learning for Recommender Systems2015
- Predicting the sequence specificities of DNA- and RNA-binding proteins by deep learningNature Biotechnology, 2015
- A Deep Learning Network Approach to ab initio Protein Secondary Structure PredictionIEEE/ACM Transactions on Computational Biology and Bioinformatics, 2014
- Optimization of Parallel I/O for Cannon's Algorithm Based on Lustre2012