[Paper Review] An Empirical Study towards Characterizing Deep Learning Development and Deployment across Different Frameworks and Platforms
This empirical study investigates how deep learning frameworks and platforms affect model development and deployment across different environments. By evaluating accuracy, robustness, and performance under identical configurations, the authors reveal significant discrepancies in prediction accuracy and reliability when models are migrated or quantized across frameworks and platforms, exposing critical software bugs and compatibility issues that impact real-world deployment.
Deep Learning (DL) has recently achieved tremendous success. A variety of DL frameworks and platforms play a key role to catalyze such progress. However, the differences in architecture designs and implementations of existing frameworks and platforms bring new challenges for DL software development and deployment. Till now, there is no study on how various mainstream frameworks and platforms influence both DL software development and deployment in practice. To fill this gap, we take the first step towards understanding how the most widely-used DL frameworks and platforms support the DL software development and deployment. We conduct a systematic study on these frameworks and platforms by using two types of DNN architectures and three popular datasets. (1) For development process, we investigate the prediction accuracy under the same runtime training configuration or same model weights/biases. We also study the adversarial robustness of trained models by leveraging the existing adversarial attack techniques. The experimental results show that the computing differences across frameworks could result in an obvious prediction accuracy decline, which should draw the attention of DL developers. (2) For deployment process, we investigate the prediction accuracy and performance (refers to time cost and memory consumption) when the trained models are migrated/quantized from PC to real mobile devices and web browsers. The DL platform study unveils that the migration and quantization still suffer from compatibility and reliability issues. Meanwhile, we find several DL software bugs by using the results as a benchmark. We further validate the results through bug confirmation from stakeholders and industrial positive feedback to highlight the implications of our study. Through our study, we summarize practical guidelines, identify challenges and pinpoint new research directions.
Motivation & Objective
- To understand the impact of different deep learning frameworks and platforms on model development and deployment quality.
- To identify accuracy discrepancies when training or inferring models under identical configurations across frameworks.
- To evaluate the reliability and performance of model migration and quantization from PC to mobile and web platforms.
- To detect and validate deep learning software bugs arising from framework and platform differences.
- To provide practical guidelines and identify new research directions for improving cross-platform deep learning deployment.
Proposed method
- Conducted systematic experiments using two DNN architectures and three standard datasets across multiple frameworks (e.g., TensorFlow, PyTorch).
- Evaluated prediction accuracy under identical runtime configurations and shared model weights/biases to isolate framework-specific differences.
- Assessed adversarial robustness using established attack techniques to test model consistency across frameworks.
- Migrated and quantized trained models from PC to real mobile devices and web browsers (via TensorFlow Lite, Core ML, TensorFlow.js).
- Measured performance impacts in terms of inference time, memory consumption, and accuracy degradation during cross-platform deployment.
- Validated findings through industrial feedback and stakeholder confirmation to confirm real-world software bugs.
Experimental results
Research questions
- RQ1RQ1: How does prediction accuracy vary across different deep learning frameworks when using the same runtime configuration or identical model weights/biases?
- RQ2RQ2: How does adversarial robustness differ across frameworks when trained with the same configuration and weights?
- RQ3RQ3: What are the accuracy and performance impacts when deploying models from PC to mobile and web platforms via migration and quantization?
- RQ4RQ4: What compatibility and reliability issues emerge during model migration and quantization across different platforms?
- RQ5RQ5: What deep learning software bugs are introduced by framework and platform differences during deployment?
Key findings
- Significant prediction accuracy degradation occurs when the same model is deployed across different frameworks, even with identical weights and hyperparameters.
- Adversarial robustness varies noticeably across frameworks despite identical training configurations, indicating framework-dependent model behavior.
- Model migration and quantization from PC to mobile and web platforms result in measurable accuracy loss, primarily due to platform-specific implementation differences.
- Performance metrics such as inference time and memory consumption vary substantially across platforms, with some platforms introducing unexpected overhead.
- Several real deep learning software bugs were identified and confirmed by stakeholders, particularly in quantization and tensor computation modules.
- The study reveals a critical need for cross-platform consistency and standardized model conversion pipelines to ensure reliable deployment.
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.