[Paper Review] MLModelScope: A Distributed Platform for Model Evaluation and Benchmarking at Scale
MLModelScope is a distributed, framework- and hardware-agnostic platform that enables scalable, repeatable, and fair model evaluation and benchmarking through a standardized specification and extensible runtime. It supports parallel evaluation across diverse hardware and software stacks, with introspection capabilities revealing performance bottlenecks at the layer and library levels, demonstrating significant performance differences across frameworks like TensorRT and Caffe2 on the same model and hardware.
Machine Learning (ML) and Deep Learning (DL) innovations are being introduced at such a rapid pace that researchers are hard-pressed to analyze and study them. The complicated procedures for evaluating innovations, along with the lack of standard and efficient ways of specifying and provisioning ML/DL evaluation, is a major "pain point" for the community. This paper proposes MLModelScope, an open-source, framework/hardware agnostic, extensible and customizable design that enables repeatable, fair, and scalable model evaluation and benchmarking. We implement the distributed design with support for all major frameworks and hardware, and equip it with web, command-line, and library interfaces. To demonstrate MLModelScope's capabilities we perform parallel evaluation and show how subtle changes to model evaluation pipeline affects the accuracy and HW/SW stack choices affect performance.
Motivation & Objective
- To address the growing challenge of evaluating rapidly evolving ML/DL models, frameworks, and hardware stacks in a repeatable and fair manner.
- To reduce the complexity and time required for model evaluation by decoupling specification from hardware/software provisioning.
- To provide a standardized, extensible, and customizable platform that supports reproducible benchmarking across diverse ML frameworks and accelerators.
- To enable fine-grained introspection of model execution to identify performance bottlenecks at the layer and library levels.
- To support large-scale, parallel evaluation with consistent reporting and reproducibility guarantees.
Proposed method
- The platform uses a text-based model evaluation specification that decouples model pipeline stages (pre-processing, inference, post-processing) from the underlying HW/SW stack.
- A distributed runtime system consumes the specification and user-defined hardware constraints to provision and execute evaluations across heterogeneous environments.
- The system supports multiple ML frameworks (e.g., PyTorch, TensorFlow, Caffe2, TensorRT) and hardware platforms (x86, ARM, Power, CPU, GPU, FPGA).
- It provides three access interfaces: command-line, library, and web UI for ease of use and integration.
- The platform includes a profiler to capture latency and memory usage at the layer and library levels for performance introspection.
- Evaluation results are reported consistently, enabling fair comparison across models, frameworks, and hardware configurations.
Experimental results
Research questions
- RQ1How can model evaluation be made scalable, repeatable, and fair across diverse hardware and software stacks?
- RQ2To what extent do differences in framework implementations affect model inference performance on the same hardware?
- RQ3Can a unified specification and runtime system reduce the time and complexity of large-scale model benchmarking?
- RQ4How do hardware and software stack choices impact model accuracy and performance at the layer and library levels?
- RQ5What insights can be gained from introspecting model execution at sub-model granularity across different frameworks?
Key findings
- MLModelScope enables parallel, scalable evaluation of models across diverse hardware and software stacks with consistent, reproducible results.
- On the same hardware (Amazon p3.2xlarge), TensorRT fused the first conv2 and ReLU layers into a single kernel that executed in 1.95ms, while Caffe2 did not fuse them, resulting in a longer 2.63ms execution time.
- The platform’s introspection capability revealed that different frameworks implement the same model layers using different library functions, leading to measurable performance differences.
- MLModelScope successfully integrated models from benchmark suites such as MLPerf Inference and AI-Matrix, enabling their use with distributed evaluation and profiling.
- The platform demonstrated that subtle changes in the model evaluation pipeline, such as pre-processing operations, can affect final accuracy and performance outcomes.
- By decoupling specification from execution, MLModelScope reduces the time-to-test for model evaluators and supports consistent, fair comparisons across models and stacks.
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.