Introduction
The rapid pace of innovation in Machine Learning (ML) and Deep Learning (DL) has outstripped our ability to evaluate these advancements reliably. Researchers currently face a "reproducibility crisis" stemming from three primary challenges: the tight coupling of model performance to specific software/hardware stacks, the prevalence of ad hoc evaluation scripts with poor documentation, and "silent errors" caused by subtle differences in data pre-processing.
MLModelScope is an open-source, distributed platform designed to address these pain points. By decoupling model specifications from underlying infrastructure, it enables repeatable, fair, and scalable benchmarking across diverse frameworks and hardware with "push-button" ease.
System Architecture and Methods
At the heart of MLModelScope is the Model Evaluation Manifest, a text-based specification that defines the software stack (via Docker), model source (graph and weights), and explicit pipeline steps for pre- and post-processing. This abstraction ensures that evaluations are independent of the specific hardware used.
The platform employs a distributed runtime architecture consisting of:
- Agents: These run on various hardware (CPUs, GPUs, FPGAs) and register their capabilities with a central registry.
- Orchestration Layer: This layer matches user requests (e.g., "Run Inception-v3 on a Tesla V100") with appropriate agents and provisions the environment.
- Predictor API: A uniform C++ interface that wraps different frameworks (TensorFlow, PyTorch, MXNet, etc.), treating them as interchangeable plugins.
- Multi-level Introspection: Using tracers based on OpenTracing, the system captures performance data from high-level pipeline stages down to individual hardware instructions and library calls (e.g., cuDNN).
Evaluation and Key Insights
The authors populated MLModelScope with over 300 models and evaluated them using standard datasets like ImageNet and COCO across nine different Amazon EC2 instance types.
The Pre-processing Trap
One of the most significant findings is the sensitivity of model accuracy to "standard" pre-processing steps. Subtle variations—such as using RGB vs. BGR color layouts, different image decoding libraries (PIL vs. OpenCV), or failing to center-crop—can lead to "silent errors." For instance, failing to center-crop an image reduced Inception-v3's Top-1 accuracy from 78.41% to 71.26%. These errors are particularly insidious because the model continues to run without crashing, but with significantly degraded performance.
Framework and Hardware Efficiency
The platform's introspection tools revealed that frameworks are not created equal. For example, TensorRT achieves lower latency by fusing convolution and ReLU layers into a single kernel, a feature not always present in other frameworks like Caffe2.
Furthermore, the study highlighted the importance of the "Cost/Performance" metric. In cloud environments, high-end hardware like the Tesla V100, despite its higher hourly rate, often proves to be the most cost-effective option for large-scale inference due to its superior throughput.
Conclusion
MLModelScope provides a standardized, framework-agnostic infrastructure for ML evaluation. While currently focused on computer vision, its design is generalizable to other modalities like NLP. Future work aims to optimize the overhead of deep introspection and integrate with existing benchmark suites like MLPerf to provide a unified community interface.
Summary updated