[Paper Review] MLI: An API for Distributed Machine Learning
MLI is a high-level API for distributed machine learning that simplifies the implementation of scalable, high-performance algorithms by providing intuitive abstractions for data loading and local linear algebra operations. Built on Apache Spark, MLI enables concise, readable code comparable to MATLAB/R while achieving performance within a small constant factor of specialized low-level systems like GraphLab and Vowpal Wabbit, significantly outperforming Mahout and handling larger datasets than MATLAB.
MLI is an Application Programming Interface designed to address the challenges of building Machine Learn- ing algorithms in a distributed setting based on data-centric computing. Its primary goal is to simplify the development of high-performance, scalable, distributed algorithms. Our initial results show that, relative to existing systems, this interface can be used to build distributed implementations of a wide variety of common Machine Learning algorithms with minimal complexity and highly competitive performance and scalability.
Motivation & Objective
- To bridge the gap between rapid prototyping in MATLAB/R and the complexity of scalable, industrial-grade distributed ML implementations.
- To address the usability and performance trade-off in existing distributed ML systems, which are either too low-level (e.g., MapReduce) or too complex to implement (e.g., high-level compilers with complex optimizers).
- To provide a developer-friendly API that supports efficient communication and parallelization patterns without requiring advanced knowledge of distributed systems.
- To enable ML researchers to implement scalable algorithms with minimal code complexity while maintaining high performance and strong horizontal scaling.
Proposed method
- MLI introduces two core abstractions: MLTable for data loading and transformation, and LocalMatrix for data-local linear algebra operations.
- The API is implemented on Apache Spark, leveraging its support for iterative in-memory computation to optimize performance for ML workloads.
- MLI enables developers to write high-level, readable code that closely resembles MATLAB or R pseudocode, abstracting away low-level distributed system details.
- The system uses SBT for dependency management and supports easy deployment via environment variable configuration and a single command to launch clusters.
- MLI avoids complex static analysis or compilation pipelines by giving developers explicit control over communication and parallelization patterns.
- The implementation supports modular extension, allowing new algorithms to be added as new Scala classes with minimal boilerplate.
Experimental results
Research questions
- RQ1Can a high-level API for distributed ML achieve both usability comparable to MATLAB/R and performance approaching that of low-level systems?
- RQ2How does the MLI API compare to existing systems like Mahout, GraphLab, and Vowpal Wabbit in terms of code conciseness and execution efficiency?
- RQ3To what extent can MLI scale across cluster sizes while maintaining performance and avoiding memory bottlenecks?
- RQ4How does the MLI-based implementation compare to MATLAB and MATLAB-Mex in handling large-scale datasets like the 16x and 25x Netflix datasets?
- RQ5What is the practical overhead of configuration and deployment for MLI compared to systems like GraphLab and Mahout?
Key findings
- MLI outperforms Mahout in both total execution time and scaling efficiency across cluster sizes for logistic regression and matrix factorization.
- MLI matches the scaling behavior of specialized systems like GraphLab and Vowpal Wabbit, remaining within a small constant factor (less than 4x) of GraphLab’s performance.
- While MATLAB and MATLAB-Mex run out of memory before completing on the 16x and 25x Netflix datasets, MLI successfully handles these workloads.
- The MLI implementation is about the same length as equivalent MATLAB code, demonstrating high code conciseness and readability.
- MLI’s setup and configuration are significantly simpler than GraphLab, which requires manual MPI setup, dependency compilation, and file-based data partitioning.
- In strong scaling experiments, MLI maintains performance and scalability, outperforming MATLAB and Mahout, and remaining within 4x of GraphLab on the 9x Netflix dataset.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.