Abstract
Machine Learning (ML) and Deep Learning (DL) innovations are being introduced at such a rapid pace that model owners and evaluators are hard-pressed analyzing and studying them. This is exacerbated by the complicated procedures for evaluation. The lack of standard systems and efficient techniques for specifying and provisioning ML/DL evaluation is the main cause of this "pain point". This work discusses common pitfalls for replicating DL model evaluation, and shows that these subtle pitfalls can affect both accuracy and performance. It then proposes a solution to remedy these pitfalls called MLModelScope, a specification for repeatable model evaluation and a runtime to provision and measure experiments. We show that by easing the model specification and evaluation process, MLModelScope facilitates rapid adoption of ML/DL innovations.
Introduction
In the contemporary Deep Learning (DL) landscape, "open source" is frequently conflated with "reproducible." However, even when researchers share code and weights, peers often struggle to match reported accuracy or performance. This "reproducibility crisis" stems from the staggering complexity of the modern AI stack, which spans hardware configurations, software libraries like cuDNN, and subtle pre-processing choices. Discrepancies often arise from "silent errors"—small variations in cropping, normalization, or decoding that do not crash the program but quietly degrade model accuracy.
System Architecture
To address these challenges, we propose MLModelScope, a framework-agnostic platform designed to automate the complex setup of hardware and software stacks. The system is built on three main pillars:
- Model Manifest: A machine-readable specification (YAML-like) defining the required framework versions, container images, and the exact sequence of pre-processing steps.
- Distributed Runtime: An orchestration layer that uses manifests to automatically provision environments, managing container launching and hardware abstraction across x86, Power, and ARM architectures.
- Analysis Pipeline: A tracing tool that captures performance data across the application, framework, and hardware levels to pinpoint specific bottlenecks.
The Challenge of Silent Errors
A significant finding of our work is that pre-processing is often a "silent killer" of accuracy. The order of operations—such as converting to floats before or after normalization—can lead to different results due to floating-point precision. Furthermore, discrepancies in data layout or color channels can lead to catastrophic failures in classification that are difficult to debug without a standardized evaluation pipeline.
Key Results and Insights
We validated MLModelScope by populating it with over 300 models and testing heavily cited architectures like Inception-v3 and ResNet-50 on the ImageNet validation set.
- Accuracy Replication: We successfully reproduced reported Top-1 accuracies within a narrow margin of 0% to 5.5%.
- Quantifying Pitfalls: We demonstrated that common oversights, such as failing to center-crop an image, resulted in accuracy drops of 1.45% to 7.5%.
- Performance Transparency: The system identified performance gains from "fused layers" in TensorRT, which combined convolution and ReLU into a single kernel (1.95ms) compared to Caffe2's separate execution (2.63ms).
- The Python Tax: Our analysis quantified the overhead of Python benchmarking, showing that native C++ inference can be 3–11x faster on GPUs due to the elimination of object "unboxing."
Conclusion
MLModelScope shifts the burden of reproducibility from manual documentation to machine-readable standardization. By providing a unified interface for evaluation across diverse frameworks and hardware, it ensures that model measurements are consistent, repeatable, and transparent. Future work will focus on automated hardware suggestions and intelligent resource scheduling for complex AI workflows.
Summary updated