Lune

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Compatibility Issues in Deep Learning Systems: Problems and Opportunities cites Understanding performance problems in deep learning systems
  • Compatibility Issues in Deep Learning Systems: Problems and Opportunities cites A comprehensive study on challenges in deploying deep learning based software
  • Demystifying Dependency Bugs in Deep Learning Stack cites Understanding performance problems in deep learning systems
  • Understanding performance problems in deep learning systems cites Demystifying Dependency Bugs in Deep Learning Stack
  • Demystifying Dependency Bugs in Deep Learning Stack cites A comprehensive study on challenges in deploying deep learning based software
  • Demystifying Dependency Bugs in Deep Learning Stack cites Taxonomy of real faults in deep learning systems
  • Understanding performance problems in deep learning systems cites A comprehensive study on challenges in deploying deep learning based software
  • Understanding performance problems in deep learning systems cites Taxonomy of real faults in deep learning systems
  • Discovering Repetitive Code Changes in Python ML Systems cites A comprehensive study on challenges in deploying deep learning based software
  • Discovering Repetitive Code Changes in Python ML Systems cites Taxonomy of real faults in deep learning systems
  • Discovering Repetitive Code Changes in Python ML Systems cites Is neuron coverage a meaningful measure for testing deep neural networks?
  • Model-based exploration of the frontier of behaviours for deep learning system testing cites Taxonomy of real faults in deep learning systems
  • A comprehensive study on challenges in deploying deep learning based software cites Taxonomy of real faults in deep learning systems
  • Demystifying and Detecting Misuses of Deep Learning APIs cites Taxonomy of real faults in deep learning systems
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Understanding performance problems in deep learning systemsJunming Cao, Bihuan Chen, Chao Sun, Longjie Hu et al.FSE 2022 · 33 citations
  2. Discovering Repetitive Code Changes in Python ML SystemsMalinda Dilhara, Ameya Ketkar, Nikhith Sannidhi, Danny DigICSE 2022 · 30 citations
  3. Demystifying Dependency Bugs in Deep Learning StackKaifeng Huang, Bihuan Chen, Susheng Wu, Junming Cao et al.FSE 2023 · 20 citations
  4. Compatibility Issues in Deep Learning Systems: Problems and OpportunitiesJun Wang, Guanping Xiao, Shuai Zhang, Huashan Lei et al.FSE 2023 · 13 citations
  5. Demystifying and Detecting Misuses of Deep Learning APIsMoshi Wei, Nima Shiri Harzevili, Yuekai Huang, Jinqiu Yang et al.ICSE 2024 · 13 citations

Builds on22

  1. Taxonomy of real faults in deep learning systemsNargiz Humbatova, Gunel Jahangirova, Gabriele Bavota, Vincenzo Riccio et al.ICSE 2020 · 281 citations
  2. DeepGini: prioritizing massive tests to enhance the robustness of deep neural networksYang Feng, Qingkai Shi, Xinyu Gao, Jun Wan et al.ISSTA 2020 · 206 citations
  3. Is neuron coverage a meaningful measure for testing deep neural networks?Fabrice Harel-Canada, Lingxiao Wang, Muhammad Ali Gulzar, Quanquan Gu et al.FSE 2020 · 149 citations
  4. Model-based exploration of the frontier of behaviours for deep learning system testingVincenzo Riccio, Paolo TonellaFSE 2020 · 134 citations
  5. A comprehensive study on challenges in deploying deep learning based softwareZhenpeng Chen, Yanbin Cao, Yuanqiang Liu, Haoyu Wang et al.FSE 2020 · 121 citations

Related papers

  1. Run-Time Prevention of Software Integration Failures of Machine Learning APIsChengcheng Wan, Yuhan Liu, Kuntai Du, Henry Hoffmann et al.OOPSLA 2023 · 5 citations
  2. ChameleonAPI: Automatic and Efficient Customization of Neural Networks for ML ApplicationsYuhan Liu, Chengcheng Wan, Kuntai Du, Henry Hoffmann et al.OSDI 2024 · 1 citation
  3. API-Misuse Detection Driven by Fine-Grained API-Constraint Knowledge GraphXiaoxue Ren, Xinyuan Ye, Zhenchang Xing, Xin Xia et al.ASE 2020 · 62 citations
  4. A Large-Scale Study of Model Integration in ML-Enabled Software SystemsYorick Sens, Henriette Knopp, Sven Peldszus, Thorsten BergerICSE 2025 · 3 citations
  5. SFA-Miner: Mining Path-Sensitive API Usage Patterns Via Symbolic Finite AutomataJiasheng Jiang, Mingwei Zheng, Qingkai Shi, Xiangyu ZhangS&P 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines