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.
The Reproducibility Crisis in Machine Learning
Reproducing state-of-the-art machine learning results is notoriously difficult. While researchers frequently share models via platforms like GitHub, "sharing" does not equate to "reproducibility." Evaluators often struggle to match reported accuracy or performance even with access to the original code.
The root cause is the immense complexity of the modern AI stack. A model's success depends on a fragile chain of dependencies across multiple layers: high-level application pipelines, specific framework versions (e.g., TensorFlow, PyTorch), low-level system libraries (e.g., cuDNN, MKL-DNN), and specific hardware configurations.
Small, undocumented choices in pre-processing—such as the order of cropping and resizing—can lead to significant discrepancies in results, creating a "reproducibility crisis" for both experts and the general public.
MLModelScope: A Unified Evaluation Framework
To address these challenges, the authors propose MLModelScope, a platform designed to make model evaluation repeatable and transparent. It consists of three primary components:
- Model Manifest: A standardized specification that acts as a "recipe" for the model, defining framework versions, hardware requirements, and the exact sequence of pre- and post-processing steps.
- Distributed Runtime: A system that uses these manifests to automatically provision environments. It abstracts framework APIs into a "Common Prediction Interface" using Predictor Agents to manage container launching and performance profiling.
- Analysis Pipeline: A tracing system that collects metrics across hardware, framework, and application levels to identify bottlenecks or accuracy drops.
Key Insights: The "Silent Error" Trap
A major finding of this work is the prevalence of "silent errors" in data processing. For instance, failing to center-crop an image before evaluation can drop Top-1 accuracy by as much as 7.5%. Because the code still executes without crashing, these errors often go unnoticed.
Furthermore, the order of operations for type conversion and normalization matters due to floating-point precision. The paper also quantifies the "Python tax," noting that native Python lists can be 3–11x slower than C++ implementations on GPUs. Finally, the authors emphasize that Docker containers alone are insufficient for reproducibility, as they cannot specify hardware-level configurations like CPU scaling.
Results and Evaluation
Using MLModelScope, the authors reproduced reported results for major models (Inception-v3, ResNet, VGG, MobileNet) within a tight margin of 0% to 5.5% for Top-1 accuracy. The system also proved efficient for researchers; in a case study, new models were integrated into the manifest format in under 10 minutes.
Performance profiling revealed deep-seated optimizations, such as how TensorRT outperforms Caffe2 on AlexNet by "fusing" specific layers into a single kernel—a detail typically hidden from high-level users.
Conclusion
MLModelScope facilitates the rapid adoption of ML/DL innovations by easing the model specification and evaluation process. While currently focused on computer vision, its architecture is general-purpose. Future work aims to provide automated hardware suggestions based on previous performance traces and address resource scheduling for complex workflows.
Summary updated