Are Machine Learning Cloud APIs Used Correctly?
Are Machine Learning Cloud APIs Used Correctly?
复制标题
DOI:
10.1109/icse43902.2021.00024
复制
发表时间:
2021-05
期刊:
影响因子:
--
通讯作者:
Chengcheng Wan;Shicheng Liu;H. Hoffmann;M. Maire;Shan Lu
中科院分区:
文献类型:
--
作者:
Chengcheng Wan;Shicheng Liu;H. Hoffmann;M. Maire;Shan Lu
Machine learning (ML) cloud APIs enable developers to easily incorporate learning solutions into software systems. Unfortunately, ML APIs are challenging to use correctly and efficiently, given their unique semantics, data requirements, and accuracy-performance tradeoffs. Much prior work has studied how to develop ML APIs or ML cloud services, but not how open-source applications are using ML APIs. In this paper, we manually studied 360 representative open-source applications that use Google or AWS cloud-based ML APIs, and found 70% of these applications contain API misuses in their latest versions that degrade functional, performance, or economical quality of the software. We have generalized 8 anti-patterns based on our manual study and developed automated checkers that identify hundreds of more applications that contain ML API misuses.