一句话:首次系统实证比较主流深度学习框架与平台在开发与部署中的精度、鲁棒性、性能及兼容性差异,并发现缺陷与总结指南。
深度学习框架与平台的架构和实现差异给DL软件开发与部署带来兼容性、可靠性与性能挑战,但尚缺系统实证。本文用两种DNN架构和三个数据集,跨框架、跨平台开展研究:开发阶段在相同训练配置或相同权重/偏置下比较预测精度,并用对抗攻击评估鲁棒性;部署阶段考察模型从PC迁移/量化到移动端和Web浏览器后的精度、时间与内存。结果显示,框架计算差异可导致明显精度下降;迁移与量化仍存在兼容性和可靠性问题。作者还以结果为基准发现若干DL缺陷,经利益相关者确认和工业反馈验证,并总结实践指南、挑战与新方向。
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, such as understanding the characteristics of DL frameworks and platforms, avoiding compatibility and reliability issues, detecting DL software bugs, and reducing time cost and memory consumption towards developing and deploying high quality DL systems effectively.
DOI 原文 ·
@inproceedings{paperbot5209,
title = {An Empirical Study Towards Characterizing Deep Learning Development and Deployment Across Different Frameworks and Platforms},
author = {Qianyu Guo and Sen Chen and Xiaofei Xie and Lei Ma and Qiang Hu and Hongtao Liu and Yang Liu and Jianjun Zhao and Xiaohong Li},
booktitle = {ASE},
year = {2019},
doi = {10.1109/ase.2019.00080}
}