[Paper Review] An Orchestrated Empirical Study on Deep Learning Frameworks and Platforms
This paper presents a comprehensive empirical study comparing TensorFlow, Theano, and Torch across server, web, and mobile platforms using MNIST and CIFAR-10 datasets. It reveals significant performance, accuracy, and robustness differences across frameworks and platforms, highlighting critical compatibility issues and proposing a publicly available toolchain to enable future cross-framework and cross-platform DL system development.
Deep learning (DL) has recently achieved tremendous success in a variety of cutting-edge applications, e.g., image recognition, speech and natural language processing, and autonomous driving. Besides the available big data and hardware evolution, DL frameworks and platforms play a key role to catalyze the research, development, and deployment of DL intelligent solutions. However, the difference in computation paradigm, architecture design and implementation of existing DL frameworks and platforms brings challenges for DL software development, deployment, maintenance, and migration. Up to the present, it still lacks a comprehensive study on how current diverse DL frameworks and platforms influence the DL software development process. In this paper, we initiate the first step towards the investigation on how existing state-of-the-art DL frameworks (i.e., TensorFlow, Theano, and Torch) and platforms (i.e., server/desktop, web, and mobile) support the DL software development activities. We perform an in-depth and comparative evaluation on metrics such as learning accuracy, DL model size, robustness, and performance, on state-of-the-art DL frameworks across platforms using two popular datasets MNIST and CIFAR-10. Our study reveals that existing DL frameworks still suffer from compatibility issues, which becomes even more severe when it comes to different platforms. We pinpoint the current challenges and opportunities towards developing high quality and compatible DL systems. To ignite further investigation along this direction to address urgent industrial demands of intelligent solutions, we make all of our assembled feasible toolchain and dataset publicly available.
Motivation & Objective
- Investigate how different deep learning frameworks impact the development, deployment, and migration of DL software systems.
- Address the lack of systematic comparative studies on how frameworks and platforms affect model accuracy, performance, and robustness.
- Identify compatibility issues and implementation inconsistencies across frameworks and platforms in real-world deployment scenarios.
- Provide a validated, reusable toolchain and dataset to enable large-scale, reproducible empirical studies on DL frameworks and platforms.
- Support the development of portable, high-quality, and interoperable deep learning systems across heterogeneous environments.
Proposed method
- Conducted a comparative evaluation of three state-of-the-art deep learning frameworks—TensorFlow, Theano, and Torch—across three platforms: server/desktop, web (via TensorFlow.js), and mobile (via TensorFlow Lite).
- Trained identical DNN architectures with the same hyperparameters on MNIST and CIFAR-10 datasets across all framework-platform combinations.
- Measured and compared key metrics: training accuracy, inference performance, model size, robustness to adversarial examples, and energy efficiency.
- Employed standardized benchmarking procedures to ensure reproducibility and fairness in cross-framework comparisons.
- Collected and validated a comprehensive dataset of trained models and execution logs across all configurations.
- Released a fully assembled, manually validated toolchain to support future empirical studies on DL framework and platform interoperability.
Experimental results
Research questions
- RQ1RQ1: Given the same DNN design and runtime training configuration, does it exhibit different runtime behavior and training performance when implemented under different DL frameworks?
- RQ2RQ2: When DL models with the same design and runtime configuration are trained under different DL frameworks, what are their prediction performance differences across platforms?
- RQ3RQ3: How do framework and platform differences affect model robustness, especially under adversarial attacks?
- RQ4RQ4: What are the performance and efficiency trade-offs in model size, inference speed, and energy consumption across frameworks and platforms?
Key findings
- The same DNN architecture and training configuration produced varying accuracy and performance across frameworks, indicating implementation-dependent behavior even with identical designs.
- Significant performance discrepancies were observed in inference speed and model size, especially when deploying models on mobile and web platforms.
- Robustness to adversarial examples varied substantially across frameworks, with some models showing higher vulnerability depending on the framework used.
- Model conversion between frameworks introduced measurable accuracy loss and compatibility issues, particularly when migrating from desktop to mobile or web platforms.
- Energy efficiency and computational efficiency varied significantly across frameworks and platforms, with mobile-optimized frameworks like TensorFlow Lite showing better performance on mobile devices.
- The study revealed that current frameworks lack consistent behavior across platforms, making cross-platform deployment and reuse challenging without retraining or fine-tuning.
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.